Skip to content
forked from mhauri/base45

PHP based base45 encoder/decoder that is fully compatible with draft-faltstrom-base45-03

License

Notifications You must be signed in to change notification settings

FLYEfit-Keith/base45

 
 

Repository files navigation

Base45

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 [email protected] instead of using the issue tracker.

License

The MIT License (MIT). Please see License File for more information.

About

PHP based base45 encoder/decoder that is fully compatible with draft-faltstrom-base45-03

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 81.3%
  • Makefile 18.7%