Licence
ISC
Version
1.0.0
Deps
4
Size
10 kB
Vulns
0
Weekly
0
EDCRYPT
nodejs cli tool to encrypt and decrypt images using xor operation
![]() Image |
![]() Encrypted image |
![]() Key |
Installation
npm i -g image-encrypt-decrypt
Usage
edcrypt <command> [option]
commands
help #prints help info
options
-e, --encrypt # The image to encrypt
-d, --decrypt # The image to decrypt
-v, --version # Print CLI version Default: false
-k, --key # The key to use for decryption Default: false
-i, --outputImageFileName # The output image
-p, --outputKeyFileName # The output key
For encrypting an image myImage.png to encryptedImage.png and saving the key to key.txt
imcrypt -e myImage.png -i encryptedImageName.png -p keyFile.txt
For decrypting an image encryptedImage.png with its key key.txt to decryptedImage.png
imcrypt -d encryptedImage.png -k key.txt -i decryptedImage.png


