crypto

HashAlgorithm

enum HashAlgorithm {
    Md5,
    Sha1,
    Sha224,
    Sha256,
    Sha384,
    Sha512,
    Sha512256,
    Sha512T256,
    Sha3224,
    Sha3256,
    Sha3384,
    Sha3512,
}

Hash algorithms

hash

fun hash(HashAlgorithm algo, str data) > str 

Returns hash of data using given algorithm

  • algo: Hash aglorithm to use
  • data: Data to hash

Returns: Hash of data has hex string

Last Updated:
Contributors: Benoit Giannangeli