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
- On Success :
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
- On Success :