@nealalim122322/encryption

1.0.1 • Public • Published

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}`);

Package Sidebar

Install

npm i @nealalim122322/encryption

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

4.2 kB

Total Files

4

Last publish

Collaborators

  • nealalim122322