Utilities
class Utilities (View source)
Helper Utilities
Methods
static string
hash256(string $data, bool $raw = false)
Run sha256 hash on $data twice
static string
sha256(string $data, bool $raw = false)
Run sha256 hash on $data
static int|float|string
swapEndian(string $hex, bool $hexdec = true)
Swap endianness of an hexadecimal string.
Details
static string
hash256(string $data, bool $raw = false)
Run sha256 hash on $data twice
static string
sha256(string $data, bool $raw = false)
Run sha256 hash on $data
static int|float|string
swapEndian(string $hex, bool $hexdec = true)
Swap endianness of an hexadecimal string.