std.crypto.digest Package

Function Description

The std.crypto.digest package provides universal APIs for common digest algorithms, including MD5, SHA1, SHA224, SHA256, SHA384, SHA512, HMAC, and SM3.

API List

Function

NameDescription
digest<T>(T, Array<Byte>) where T <: DigestProvides the digest generic function to perform digest operation using a specified digest algorithm.
digest<T>(T, String) where T <: DigestProvides the digest generic function to perform digest operation using a specified digest algorithm.

API

NameDescription
DigestSpecifies a universal interface for the digest algorithm.