ImageCrypto is a Ruby-based encryption tool that uses an image and a secret key to generate a cryptographic key. It employs AES-256-CBC encryption to securely encrypt and decrypt messages.
- Derives a cryptographic key from an image and a secret key (stored in
.env
). - Encrypts and decrypts messages using AES-256-CBC encryption.
- Uses Base64 encoding for handling image data.
-
Clone the repository:
git clone https://github.com/yourusername/imagecrypto.git cd imagecrypto
-
Install dependencies:
bundle install
-
Set up environment variables by creating a .env file in the root directory:
SECRET_KEY=your_secret_key