Skip to content

codecs compatible base32-encode and base32-decode adapter.

License

Notifications You must be signed in to change notification settings

consento-org/base32-codecs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

base32-codecs

base32-codecs is a codecs compatible adapter to base32-encode and base32-decode.

Usage

const {
  base32, // RFC4648, unpadded
  base32c, // Crockford
  base32h, // RFC4648-HEX, unpadded
  base32hp, // RFC4648-HEX, padded
  base32p // RFC4648, Padded 
} = require('base32-codecs')

for (const codec of [base32, base32c, base32h, base32hp, base32p]) {
  codec.encode(
    codec.decode(crypto.randomBytes(10))
  )
}

License

MIT

About

codecs compatible base32-encode and base32-decode adapter.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published