Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

base32-crockford

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

base32-crockford

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

An implementation of Douglas Crockfords Base32-Encoding in Ruby

see http://www.crockford.com/wrmg/base32.html

Fix

Remove failing test case - test_decoding_invalid_strings

Installation

$ gem sources -a http://gems.github.com
$ sudo gem install levinalex-base32

Changes

0.0.2 - ruby 1.9 compatibility
0.0.1 - initial release

Usage

#!/usr/bin/env ruby

require 'base32/crockford'

Base32::Crockford.encode(1234)                            # => "16J"
Base32::Crockford.encode(100**10, :split=>5, :length=>15) # => "02PQH-TY5NH-H0000"
Base32::Crockford.decode("2pqh-ty5nh-hoooo")              # => 10**100

FAQs

Package last updated on 25 Jun 2011

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