Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ba0f3 committed Jun 30, 2017
1 parent 0d7e4ea commit bdc34af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion hmac.nim
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ proc `%`*[T: SecureHash|SHA256Digest|MD5Digest](x: T): string =
when x is SecureHash:
toLower($x)
elif x is SHA256Digest:
toLower(toHex(x))
toLower(nimSHA2.toHex(x))
elif x is MD5Digest:
$x
else:
Expand Down
8 changes: 2 additions & 6 deletions hmac.nimble
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
[Package]
name = "hmac"
version = "0.1.1"
version = "0.1.2"
author = "Huy Doan"
description = "HMAC hashing in Nim"
license = "MIT"

[Deps]
Requires: "nim"
Requires: "nimSHA2"
requires "nim", "nimSHA2"

0 comments on commit bdc34af

Please sign in to comment.