stellar-php/stellar

View on GitHub
src/Encoding/Base32/Base32Hex.php

Summary

Maintainability
B
5 hrs
Test Coverage
<?php declare(strict_types=1);

namespace Stellar\Encoding\Base32;

// https://tools.ietf.org/html/rfc2938
class Base32Hex extends AbstractBase32Variant
{
    public const ALPHABET = [
        '00000' => '0',
        '00001' => '1',
        '00010' => '2',
        '00011' => '3',
        '00100' => '4',
        '00101' => '5',
        '00110' => '6',
        '00111' => '7',
        '01000' => '8',
        '01001' => '9',
        '01010' => 'A',
        '01011' => 'B',
        '01100' => 'C',
        '01101' => 'D',
        '01110' => 'E',
        '01111' => 'F',
        '10000' => 'G',
        '10001' => 'H',
        '10010' => 'I',
        '10011' => 'J',
        '10100' => 'K',
        '10101' => 'L',
        '10110' => 'M',
        '10111' => 'N',
        '11000' => 'O',
        '11001' => 'P',
        '11010' => 'Q',
        '11011' => 'R',
        '11100' => 'S',
        '11101' => 'T',
        '11110' => 'U',
        '11111' => 'V',
    ];
}