Skip to content

This is a sample script of encryption and decryption in node js with command-line arguments.

Notifications You must be signed in to change notification settings

s1davide/Node-js-encryption-and-decryption-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node js encryption and decryption example

To encrypt file

With the video example:

npm run enc-file orgPath=videoTest.mp4 destPath=enc/videoTestEncrypted.mp4 algorithm=aes-128-ofb  key=1234567890123456 iv=1234567890123456

To decrypt the file

npm run dec-file orgPath=enc/videoTestEncrypted.mp4 destPath=dec/videoTestDecrypted.mp4  algorithm=aes-128-ofb  key=1234567890123456 iv=1234567890123456

About

This is a sample script of encryption and decryption in node js with command-line arguments.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published