diff options
Diffstat (limited to 'lib/wrappers')
-rw-r--r-- | lib/wrappers/openssl.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/wrappers/openssl.nim b/lib/wrappers/openssl.nim index ff18fc2c2..40b54b08d 100644 --- a/lib/wrappers/openssl.nim +++ b/lib/wrappers/openssl.nim @@ -588,13 +588,13 @@ proc md5*(d: ptr cuchar; n: csize; md: ptr cuchar): ptr cuchar{.importc: "MD5".} proc md5_Transform*(c: var MD5_CTX; b: ptr cuchar){.importc: "MD5_Transform".} {.pop.} -from strutils import toHex,toLower +from strutils import toHex, toLowerAscii proc hexStr (buf:cstring): string = # turn md5s output into a nice hex str result = newStringOfCap(32) for i in 0 .. <16: - result.add toHex(buf[i].ord, 2).toLower + result.add toHex(buf[i].ord, 2).toLowerAscii proc md5_File* (file: string): string {.raises: [IOError,Exception].} = ## Generate MD5 hash for a file. Result is a 32 character |