Skip to content
FutureBlitz

    Install

    Import std.crypto.hashes

    Sha512

    std.crypto.hashes

    class

    Public Class Sha512 Implements Hasher

    SHA-512's 64 bytes.

    Examples

    Expect(Sha512.Hash("abc").Count == 64)

    std/crypto/hashes.fb, line 179

    • Public New() constructor #

      A new Sha512, of nothing.

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

      The SHA-512 of data.

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

      The SHA-512 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 64-byte SHA-512 of what was added, after which it starts again, empty.

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