Socket
Socket
Sign inDemoInstall

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


Version published
Weekly downloads
116K
decreased by-12.89%
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc