base32-codecs
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i base32-codecs

Weekly Downloads

282

Version

1.0.4

License

MIT

Unpacked Size

6.24 kB

Total Files

8

Last publish

Collaborators

  • leichtgewicht
  • dkastl
  • rangermauve