Crypto Tools for PHP 8
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
416 B

<?php
declare(strict_types=1);
namespace Kvazar\Crypto;
class Kevacoin
{
public static function decode(string $value): mixed
{
if (is_numeric($value) && $value < 0xFFFFFFFF)
{
return mb_chr(
(int) $value,
'ASCII'
);
}
else
{
return hex2bin(
$value
);
}
}
}