1.2.2 • Published 2 years ago

@moonstack/encdec v1.2.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

ENCDEC (Encryption and Decryption)

Installation

npm install @moonstack/encdec

Usage

import * as encdec from "@moonstack/encdec";

const key = "mysecretkeymysecretkey1234567890";
const plaintext = "hello world";
const encrypted = encdec.encrypt(plaintext, key);

const decrypted = encdec.decrypt(encrypted, key);
console.log(decrypted);

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details

1.2.2

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago