Package Exports
- static-crypto-dex
- static-crypto-dex/static-crypto.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (static-crypto-dex) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
static-crypto
Simplify encryption and decryption using CryptoJS with static result. The key derived from the user password (or any string).
Installation
Use the package manager npm to install static-crypto.
npm install static-crypto
Usage
const static_crypto = require("static-crypto")
let user_password = "RawUserPasswd";
//encrypt
let encryption = static_crypto.encrypt(user_password,"hello world")
console.log(encryption)
//decrypt
let decryption = static_crypto.decrypt(
user_password,
"ff47603fbb9278799dade5")
console.log(decryption)
//one way encryption
let save_password = static_crypto.one_way (user_password)
console.log(save_password)
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.