tc-crypto
v1.1.15
Published
It's a npm package to encrypt or decrypt data using many crypto-graphy algorithms.
Readme
tc-crypto
It's a npm package to encrypt or decrypt data using many crypto-graphy algorithms.
Node.js (Install)
Requirements:
- Node.js
- npm (Node.js package manager)
npm install tc-cryptoUsage
ES6 import for typical API call signing use case:
AES Encryption
Plain text encryption
import convert from 'tc-crypto'
// Encrypt
let cipherText = convert("aes", "enc", 'my message', 'secret key 123');
// Decrypt
let originalText = convert("aes", "dec", cipherText, 'secret key 123');
console.log(originalText);
This package provides a convert() function which have 4parameters
covert(cryptoMode, conversionMode, text, key)
cryptoMode values:
tc
aes
des
des3
rc4
md5
sha1
sha2
sha3
ripe
conversionMode values:
enc
dec
It's created by Mahim & Effas....