F4st_Crypt (or F4cry)
An NPM module (nodeJS) that uses crypto to encrypt/decrypt files and text in a robust way, that does not damage the file and also in small functions.
How to Use?
You can easily use this module in some simple functions:
var f4cry = ;var ncryptxt = f4cry;console;
"null, null" is telling to the program to auto-generate the algorithm and iv processor.
And it will return like:
var f4cry = ;var dcryptxt = f4cryconsole;
We are using encrypt text json response with "ncryptxt".
And it will return it like:
A foo and a bar
Easily encrypt files with this function:
var f4cry = ;var ncrypt = f4cry;console
It will return a json string like(useful for saving/using auto-generated IV processors):
Easily decrypt files with this function:
var f4cry = ;var dcrypt = f4cryconsole
It will return a json string too:
AES-128-CBC, AES-128-CBC-HMAC-SHA1, AES-128-CBC-HMAC-SHA256, AES-128-CFB, AES-128-CFB1, AES-128-CFB8, AES-128-CTR, AES-128-ECB, AES-128-OFB, AES-128-XTS, AES-192-CBC, AES-192-CFB, AES-192-CFB1, AES-192-CFB8, AES-192-CTR, AES-192-ECB, AES-192-OFB, AES-256-CBC, AES-256-CBC-HMAC-SHA1, AES-256-CBC-HMAC-SHA256, AES-256-CFB, AES-256-CFB1, AES-256-CFB8, AES-256-CTR, AES-256-ECB, AES-256-OFB, AES-256-XTS, AES128 => AES-128-CBC, AES192 => AES-192-CBC, AES256 => AES-256-CBC.
(We're also accepting improvements, don't be afraid, even if it's simple, make your commit!)