1.0.3 • Published 2 years ago

aes-enc-dec v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago
import { decrypt, encrypt } from "aes-enc-dec";

const sample = `This is a sample text`;
const superSecret = "zOZH6sdMpNWjRRIqCc7rdxs01lwHZfr9";

const hash = encrypt(Buffer.from(sample, "utf8"), superSecret);

console.log(hash);

const text = decrypt(hash, superSecret);

console.log(text);
1.0.3

2 years ago

1.0.2

3 years ago

1.0.1

3 years ago