Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 711 Bytes

README.md

File metadata and controls

20 lines (16 loc) · 711 Bytes

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.

Features

  • 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.

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/imagecrypto.git
    cd imagecrypto
  2. Install dependencies:

    bundle install
  3. Set up environment variables by creating a .env file in the root directory:

    SECRET_KEY=your_secret_key