glesha
Documentation for Glesha.
Types
Represents available hash algorithms.
pub type HashAlgorithm {
Sha224
Sha256
Sha384
Sha512
}
Constructors
-
Sha224
-
Sha256
-
Sha384
-
Sha512
Functions
pub fn encode_hex(input: BitArray) -> String
Converts BitArray
into a lowercase hexadecimal string.
pub fn hash(
input: BitArray,
algorithm: HashAlgorithm,
) -> BitArray
Computes the hash of the given input using the specified HashAlgorithm
.