static-crypto-dex

1.2.0 • Public • Published

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

Package Sidebar

Install

npm i static-crypto-dex

Weekly Downloads

0

Version

1.2.0

License

ISC

Unpacked Size

3.4 kB

Total Files

3

Last publish

Collaborators

  • allixina