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