diff --git a/hmac.nim b/hmac.nim index 832e23f..eca4827 100644 --- a/hmac.nim +++ b/hmac.nim @@ -32,7 +32,7 @@ proc hash_md5*(s: string): MD5Digest {.procvar.} = toMD5(s) proc toHex*[T](x: T): string {.inline.} = when x is Sha1Digest: - result = toLowerAscii($x.SecureHash) + result = toLowerAscii($SecureHash(x)) elif x is MD5Digest: result = toLowerAscii($x) else: diff --git a/hmac.nimble b/hmac.nimble index 7f56f8c..d3f9b3d 100644 --- a/hmac.nimble +++ b/hmac.nimble @@ -1,4 +1,4 @@ -version = "0.3.1" +version = "0.3.2" author = "Huy Doan" description = "HMAC hashing in Nim" license = "MIT"