The module encrypts and decrypts text using a password. By default uses the aes-256-ctr algorithm
npm install cryptonger$ cryptongerThe module encrypts and decrypts text using a password. By default uses the aes-256-ctr algorithm
``sh`
$ npm i cryptonger
`sh`
$ npm i -g cryptonger
Then, run cryptonger --help and see what the CLI tool can do.
Here is an example how to use this package as library.
`js
const cryptonger = require("cryptonger/cryptonger");
// Encrypt the text using the password "123456"
console.log(cryptonger.encrypt("123456", "Cool text to be crypted")); // 'b3e15ab6b57967c72bdcb5a88ce3708adf1167da641db5'
// Decrypt the text using the password "123456"
console.log(cryptonger.decrypt("123456", "b3e15ab6b57967c72bdcb5a88ce3708adf1167da641db5")); // 'Cool text to be crypted'
``
For full API reference, see the [DOCUMENTATION.md][docs] file.
[license]: /LICENSE
[contributing]: /CONTRIBUTING.md
[docs]: /DOCUMENTATION.md