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: BitString) -> String
Converts BitString
into a lowercase hexadecimal string.
pub fn hash(input: BitString, algorithm: HashAlgorithm) -> BitString
Computes the hash of the given input using the specified Algorithm
.