Skip to content

tawasukha/urlcrypt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URL Crypt

Library for encrypt and decrypt URL

Installation

pnpm add @tawasukha/urlcrypt

Commands

import { urlcrypt } from "@tawasukha/urlcrypt"

const crypto = urlcrypt({
  secret: "www88a8078385d0c", 
  pattern: "http://example.com/api/auth/:id"
})
const link = "https://sub.domain.com/api/oauth2/secret_path?secretparam=secretvalue"

const encrypted = crypto.encrypt(link)
const decrypted = crypto.decrypt(encrypted)
console.log("encrypted",ecrypted)
console.log("decrypted",decrypted)

Inspired from

About

Library for encrypt and verify URL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published