Module for computing MD5 checksums.
MD5Digest* = array[0 .. 15, int8]
-
MD5Context* {.final.} = object
state: MD5State
count: array[0 .. 1, int32]
buffer: MD5Buffer
-
proc md5Init*(c: var MD5Context)
-
initializes a MD5Context
proc md5Update*(c: var MD5Context; input: cstring; len: int)
-
updates the MD5Context with the input data of length len
proc md5Final*(c: var MD5Context; digest: var MD5Digest)
-
finishes the MD5Context and stores the result in digest
proc toMD5*(s: string): MD5Digest
-
computes the MD5Digest value for a string s
proc `$`*(D: MD5Digest): string
-
converts a MD5Digest value into its string representation
proc getMD5*(s: string): string
-
computes an MD5 value of s and returns its string representation
proc `==`*(D1, D2: MD5Digest): bool
-
checks if two MD5Digest values are identical