tishotm / crockford-base32
Crockford Base32 Encoding
Installs: 1 526
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=7.1
- moontoast/math: ^1.2
Requires (Dev)
- mockery/mockery: ~1.0
- phpunit/phpunit: ~6.0 || ~7.0 || ~8.0
This package is auto-updated.
Last update: 2024-10-16 01:32:27 UTC
README
"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
- BCMath PHP extension - https://www.php.net/manual/en/book.bc.php
- moontoast/math - Apache-2.0 License
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);