Skip to content

A CLI that helps in encrypting and decrypting an image with the help of a key , so that the user has the control of the images.

Notifications You must be signed in to change notification settings

saivarun1410/Cryptocom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CryptoCom

A CLI that helps in encrypting and decrypting an image with the help of a key , so that the user has the control of the images. You have to install the latest version of NODE and Windows 10 or even higher version OS. JPG/JPEG are lossy formats and hence few pixels are changed in the process. PNG format is a non lossy format and hence images are perfect in this process.

TechStack

Installation

  • Command : npm i -g imcrypt

Encryption

  • Command : imcrypt -e (ImageName.format) -i (encryptedImageName.format) -p keyFile.txt
    • On Success :
      • √ Image read successfully
      • √ Output image file name is valid
      • √ Output key file name is valid
      • √ Image data read successfully
      • √ Key generated successfully
      • √ Image encrypted successfully
      • √ Image saved successfully
      • √ Key saved successfully
    • On Failure :
      • ‼ Invalid file path Please provide a valid file path

Decryption

  • Command : imcrypt -d (encryptedImageName.format) -k keyFile.txt -i (decryptedImageName.format)
    • On Success :
      • √ Image read successfully
      • √ Key read successfully
      • √ Decryption successful
      • √ Image saved successfully
    • On Failure :
      • ‼ Invalid file path Please provide a valid file path

Example :

  • Image to be encrypted :
  • image

  • Encrypted Image :
  • image

  • Key :
  • image

  • Decrypted Image :
  • image

    About

    A CLI that helps in encrypting and decrypting an image with the help of a key , so that the user has the control of the images.

    Topics

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published