Import std.crypto.hashes
Sha256
class
Public Class Sha256 Implements Hasher
SHA-256's 32 bytes.
Examples
Expect(Hex.Encode(Sha256.Hash("abc")) ==
"ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad")
Local hasher = Sha256()
hasher.Add("ab")
hasher.Add("c".Bytes)
Expect(hasher.Finish() == Sha256.Hash("abc"))std/crypto/hashes.fb, line 141
-
A new Sha256, of nothing.
-
The SHA-256 of
data. -
The SHA-256 of
text's UTF-8 bytes. -
Adds
datato what it hashes. -
Adds
text's UTF-8 bytes to what it hashes. -
The 32-byte SHA-256 of what was added, after which it starts again, empty.
Report an issue with this page or with FutureBlitz on GitHub.