plinth/browser/crypto/subtle

Types

pub type DigestAlgorithm {
  SHA1
  SHA256
  SHA384
  SHA512
}

Constructors

  • SHA1
  • SHA256
  • SHA384
  • SHA512

Functions

pub fn digest(
  algorithm: DigestAlgorithm,
  data: BitArray,
) -> Promise(Result(BitArray, String))
pub fn digest_algorithm_to_string(
  algorithm: DigestAlgorithm,
) -> String
Search Document