tishotm/crockford-base32

Crockford Base32 Encoding

v1.0.1 2021-06-15 18:20 UTC

This package is auto-updated.

Last update: 2024-04-16 00:34:31 UTC


README

Build Status Version Total Downloads License

"Base 32 is a textual 32-symbol notation for expressing numbers in a form that can be conveniently and accurately transmitted between humans and computer systems. It can be used for out of band communication of public keys."

https://www.crockford.com/base32.html

Requirements

Installation

composer require tishotm/crockford-base32

Usage

use TishoTM\Crockford\Base32 as Crockford;

// "14S-C0P-JV"
$encoded = Crockford::encode("1234567890", true, 3);

// 1234567890
$decoded = Crockford::decode("14S-C0P-JV", true);

License

MIT license.

Credits