Skip to content

Library for encrypt decrypt text with zero dependency

License

Notifications You must be signed in to change notification settings

tawasukha/crypt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Library for encrypt decrypt text with zero dependency

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published