0.3.3 • Published 1 year ago

@tawasukha/urlcrypt v0.3.3

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

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

0.3.3

1 year ago

0.3.2

1 year ago

0.3.1

1 year ago

0.3.0

1 year ago

0.2.3

1 year ago

0.2.2

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.0

1 year ago