@skunkplatform-team/encrypter
v1.0.0
Published
Lightweight encryption module for SkunkPlatform (AES-based)
Maintainers
Readme
@skunkplatform/encrypter
Lightweight encryption module for SkunkPlatform.
📦 Installation
npm install @skunkplatform/encrypter🚀 Usage
const { enc, dec } = require("@skunkplatform/encrypter");
const encrypted = enc({
data: "hello world",
secret: "my-secret"
});
console.log(encrypted);
const decrypted = dec({
data: encrypted,
secret: "my-secret"
});
console.log(decrypted);🔐 Features
- AES-256-CBC encryption
- Simple API
- Base64 output
⚙️ API
enc({ data, secret })
Encrypts a string.
dec({ data, secret })
Decrypts a string.
📄 License
MIT
