Import std.crypto.hashes
Sha1
class
Public Class Sha1 Implements Hasher
SHA-1's 20 bytes, only for checksums and the formats that ask for it, like Git's.
Examples
Expect(Hex.Encode(Sha1.Hash("abc")) == "a9993e364706816aba3e25717850c26c9cd0d89d")-
A new Sha1, of nothing.
-
The SHA-1 of
data. -
The SHA-1 of
text's UTF-8 bytes. -
Adds
datato what it hashes. -
Adds
text's UTF-8 bytes to what it hashes. -
The 20-byte SHA-1 of what was added, after which it starts again, empty.
Report an issue with this page or with FutureBlitz on GitHub.