@nealalim122322/encryption
v1.0.1
Published
Data encryption in Next.js
Downloads
5
Maintainers
Readme
Data encryption for Next.js
A simple data encryption that can be use in Next.js
Installation
npm i @nealalim122322/encryption
Usage
import NealCrypto from "@nealalim122322/encryption";
const crypto = new NealCrypto(process.env.NEXT_PUBLIC_SECRET_KEY);
const encryptedPassword = await crypto.encrypt("YOUR STRING");
console.log(`Encrypted: ${encryptedPassword}`);
const decryptedPassword = await crypto.decrypt(encryptedPassword);
console.log(`Decrypted: ${decryptedPassword}`);