W3cubDocs

/Nim

Module sha1

Note: Import std/sha1 to use this module

Imports

strutils

Types

SecureHash = distinct Sha1Digest
Sha1State = array[0 .. 5 - 1, uint32]

Procs

proc init(result: var Sha1State) {...}{.raises: [], tags: [].}
proc secureHash(str: string): SecureHash {...}{.raises: [], tags: [].}
proc secureHashFile(filename: string): SecureHash {...}{.raises: [IOError],
    tags: [ReadIOEffect].}
proc `$`(self: SecureHash): string {...}{.raises: [], tags: [].}
iterates over each item of a.
proc parseSecureHash(hash: string): SecureHash {...}{.raises: [], tags: [].}
proc `==`(a, b: SecureHash): bool {...}{.raises: [], tags: [].}

© 2006–2018 Andreas Rumpf
Licensed under the MIT License.
https://nim-lang.org/docs/sha1.html