0.1.2 • Published 1 year ago

@tawasukha/crypt v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago