1.2.0 • Published 3 years ago

static-crypto v1.2.0

Weekly downloads
57
License
ISC
Repository
-
Last release
3 years ago

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.

License

MIT