Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 548 Bytes

README.md

File metadata and controls

30 lines (21 loc) · 548 Bytes

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