/RubyEncrypt-visual

Second version of RubyEncrypt, a homemade RSA encryption program. Original can be found at https://github.com/bthuilot/RubyEncrypt.

Primary LanguageRuby

RubyEncrypt

A homemade RSA encryption program.

An Encryption algorithm made in ruby after learning about RSA encryption standards in CS1800.

Made by Bryce Thuilot and Ryan Drew

RubyEncrypt-visual

This update provides a ruby gem to RubyGems.org featuring a GUI for RubyEncrypt, built using visual ruby and glade.

To Install:

gem install rbencrypt2

To Run:

rubyencrypt

After typing the correct email into the text box, a user can:

  • Create keys using the Create button.
    • a public and private keypair will be created and stored in ~/.bre, and registered to ~/.bre/keys.json.
  • Add an existing public key to the keychain using the Add button.
    • the key must be placed on the desktop, with its name being "local-part-of-email.pub".
    • for example, if the entered email is bob01@test.com, the file name would need to be "bob01.pub".
  • Encrypt and decrypt text using the Encrypt button
    • its corresponding key must have already been added to the keychain.
    • the Encrypt button opens a window where the message can be entered into a text box and encrypted or decrypted.

About

The encryption schemes creates a key pair (public and private) and stores them in a folder called ~/.bre located in the user's home directory, recording them inside a .json file which serves as the "keychain".

Existing keys can also be added, copying them into the ~/.bre directory and adding them to the keychain .json file.

Usage (old)

Run encryption.rb with arguments

  • -c to create a pair
  • -a to add a key to the keychain
  • -s to add a secret key to the keychain
  • -e to encrypt the contents of a file
  • -d to decrypt the contents of a file