Skip to content

Commit 81b03e3

Browse files
committed
compatible fix for 1.6.14
1 parent 536dd2b commit 81b03e3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

hmac.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ proc hash_md5*(s: string): MD5Digest {.procvar.} = toMD5(s)
3232

3333
proc toHex*[T](x: T): string {.inline.} =
3434
when x is Sha1Digest:
35-
result = toLowerAscii($x.SecureHash)
35+
result = toLowerAscii($SecureHash(x))
3636
elif x is MD5Digest:
3737
result = toLowerAscii($x)
3838
else:

hmac.nimble

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "0.3.1"
1+
version = "0.3.2"
22
author = "Huy Doan"
33
description = "HMAC hashing in Nim"
44
license = "MIT"

0 commit comments

Comments
 (0)