🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

base32-codecs

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

base32-codecs

'codecs' compatible base32-encode and base32-decode adapter.

latest
Source
npmnpm
Version
1.0.4
Version published
Weekly downloads
232
-11.45%
Maintainers
3
Weekly downloads
 
Created
Source

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

Keywords

codec

FAQs

Package last updated on 15 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts