You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

base32

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

base32

Base32 encoding and decoding

0.0.7
latest
Source
npm
Version published
Weekly downloads
198K
-37.31%
Maintainers
1
Weekly downloads
 
Created

What is base32?

The base32 npm package provides utilities for encoding and decoding data using the Base32 encoding scheme. This encoding is often used in applications where data integrity is crucial, such as in QR codes, OTP (One-Time Password) generation, and data storage.

What are base32's main functionalities?

Encoding

This feature allows you to encode a string into Base32 format. The example encodes the string 'Hello, World!' into its Base32 representation.

const base32 = require('base32');
const encoded = base32.encode('Hello, World!');
console.log(encoded); // Outputs: 'JBSWY3DPEBLW64TMMQ======'

Decoding

This feature allows you to decode a Base32 encoded string back to its original form. The example decodes the Base32 string 'JBSWY3DPEBLW64TMMQ======' back to 'Hello, World!'.

const base32 = require('base32');
const decoded = base32.decode('JBSWY3DPEBLW64TMMQ======');
console.log(decoded); // Outputs: 'Hello, World!'

Other packages similar to base32

FAQs

Package last updated on 27 Sep 2022

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