A simple data encryption that can be use in Next.js
npm i @nealalim122322/encryption
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}`);