0.1.2 • Published 1 year ago
@tawasukha/crypt v0.1.2
Crypt
Library for encrypt and decrypt text with zero dependency
Installation
pnpm add @tawasukha/crypt
Commands
import { crypt } from "@tawasukha/crypt"
const crypto = crypt({
secret: "www88a8078385d0c",
output:"hex"
})
const text = "Hello World"
const encrypted = crypto.encrypt(text)
const decrypted = crypto.decrypt(encrypted)
console.log("encrypted",ecrypted)
console.log("decrypted",decrypted)
Special Thanks
base64url - for polyfill base64url