Skip to content

Base32 decoder with support for multiple variants

Notifications You must be signed in to change notification settings

LinusU/base32-decode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Base32 Decode

Base32 decoder with support for multiple variants.

Installation

npm install --save base32-decode

Usage

const base32Decode = require('base32-decode')

console.log(base32Decode('EHJQ6X0', 'Crockford'))
//=> ArrayBuffer { 4 }

console.log(base32Decode('ORSXG5A=', 'RFC4648'))
//=> ArrayBuffer { 4 }

console.log(base32Decode('EHIN6T0=', 'RFC4648-HEX'))
//=> ArrayBuffer { 4 }

API

base32Decode(input, variant)

  • input <String>
  • variant <String>
  • Return: <ArrayBuffer> The decoded raw data

Decode the data in input. variant should be one of the supported variants listed below.

See also

About

Base32 decoder with support for multiple variants

Resources

Stars

Watchers

Forks

Packages

No packages published