Skip to content
FutureBlitz

    Install

    Import std.crypto.hashes

    Md5

    std.crypto.hashes

    class

    Public Class Md5 Implements Hasher

    MD5's 16 bytes, only for checksums.

    Examples

    Expect(Hex.Encode(Md5.Hash("")) == "d41d8cd98f00b204e9800998ecf8427e")

    std/crypto/hashes.fb, line 58

    • Public New() constructor #

      A new Md5, of nothing.

    • Public Static Method Hash(data: UInt8[]): UInt8[] static method #

      The MD5 of data.

    • Public Static Method Hash(text: String): UInt8[] static method #

      The MD5 of text's UTF-8 bytes.

    • Public Method Add(data: UInt8[]) method #

      Adds data to what it hashes.

    • Public Method Add(text: String) method #

      Adds text's UTF-8 bytes to what it hashes.

    • Public Method Finish(): UInt8[] method #

      The 16-byte MD5 of what was added, after which it starts again, empty.

    Report an issue with this page or with FutureBlitz on GitHub.