Browse Source

add Kevacoin utils

main
ghost 10 months ago
parent
commit
0e33447c91
  1. 26
      src/Kevacoin.php

26
src/Kevacoin.php

@ -0,0 +1,26 @@
<?php
declare(strict_types=1);
namespace Kvazar\Crypto;
class Kevacoin
{
function decode(string $value)
{
if (is_numeric($string) && $string < 0xFFFFFFFF)
{
return mb_chr(
$string,
'ASCII'
);
}
else
{
return hex2bin(
$string
);
}
}
}
Loading…
Cancel
Save