module Crypto
Overview
wraps various hasing functions for convenience
Defined in:
crypto.crConstant Summary
-
BASE_58 =
"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"
-
the base-58 alphabet
Class Method Summary
-
.base58(h : String)
encode a string as base-58
-
.bin_to_hex(b : Bytes)
helper function to convert byte arrays to hex strings
-
.hex_to_bin(s : String)
helper function to convert hex strings to byte arrays
-
.keccak256(h : String)
operating a keccak-256 hash on the byte array
-
.keccak256_string(h : String)
operating a keccak-256 hash on the actual string literal
-
.ripemd160(h : String)
operating a ripemd-160 hash on the byte array
-
.sha256(h : String)
operating a sha2-256 hash on the byte array
-
.sha3(h : String)
operating a sha3-256 hash on the byte array
-
.sha3_string(h : String)
operating a sha3-256 hash on the actual string literal