mhauri/base45
base45 encoder/decoder
Maintainers
Requires
- php: ^7.1|^8.0
Requires (Dev)
- overtrue/phplint: ^1.0.0
- phpbench/phpbench: ^0.13.0|1.0.0-alpha3
- phpstan/phpstan: ^0.12.37
- phpunit/phpunit: ^7.0|^8.0|^9.0
- squizlabs/php_codesniffer: ^3.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
MIT 0b1c1e3b6463245f3fc2cdbb74d510eff90598f8
- Marcel Hauri <marcel.woop@hauri.dev>
README
base45 is a PHP based base45 encoder/decoder that is fully compatible with draft-faltstrom-base45-03.
👁 GitHub Workflow Status (event)
👁 Codecov
👁 Software License
Introduction
When using QR or Aztec codes a different encoding scheme is needed than the already established base 64, base 32 and base 16 encoding schemes that are described in RFC RFC4648. The difference from those and base 45 is the key table and that the padding with '=' is not required.
Install
Install with composer.
$ composer require mhauri/base45
Usage
$base45 = new \Mhauri\Base45(); $encoded = $base45->encode(random_bytes(128)); $decoded = $base45->decode($encoded);
Testing
$ make test
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email marcel@hauri.dev instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.
