1.1.4 • Published 1 year ago

@dotsenkodanylo/quick-encrypt v1.1.4

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Quick En-Crypt

Small package dependent on Tweetnacl encryption library that streamlines some encryption/decryption for a few JS-centric data types.

Examples:

fs.readFile('file.bin', function (err, data) {
    // Decode the buffer returned by the `readFile` method. 
    let decrypted = decryptJson(data, key);

    // Pass the decrypted encoding to a new Buffer. 
    let buffer = Buffer.from(decrypted);

    // Create file with the encoding. 
    fs.writeFileSync('assets/file.txt', buffer, function (err) {
       console.log('Success!');
    });
});
1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago