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.
|
<?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 |
|
); |
|
} |
|
} |
|
} |