const { encode, decode, compress, decompress } = require('bazar.js')
function cipher(string) {
return encode(compress(string))
}
function decipher(string) {
return decompress(decode(string))
}
cipher('company:12345') // 76BCabc
decipher('76BCabc') // company:12345
-
Notifications
You must be signed in to change notification settings - Fork 0
didierfranc/bazar
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
bazar
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published