A simple encryption module for Next.JS edge runtime.
npm install next-cryptonpm install next-crypto
yarn add next-crypto
pnpm add next-crypto
javascript
import NextCrypto from 'next-crypto';
const crypto = new NextCrypto('secret key');
const encrypted = await crypto.encrypt('hello!');
const decrypted = await crypto.decrypt(encrypted);
``