Skip to content

Commit

Permalink
use std/sha1 instead of packages/sha1
Browse files Browse the repository at this point in the history
  • Loading branch information
ba0f3 committed Aug 16, 2019
1 parent e018998 commit 6d26503
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions hmac.nim
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@

## This module implements HMAC-SHA1 and HMC-MD5 hashing methods

import md5, strutils
import sha1
import md5, strutils, std/sha1
import nimSHA2 except toHex

proc hash_sha1*(s: string): Sha1Digest {.procvar.} =
sha1.compute(s)
secureHash(s).Sha1Digest

proc hash_sha256*(s: string): SHA256Digest {.procvar.} =
computeSHA256(s)
Expand Down
4 changes: 2 additions & 2 deletions hmac.nimble
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version = "0.1.7"
version = "0.1.8"
author = "Huy Doan"
description = "HMAC hashing in Nim"
license = "MIT"

requires "nim", "nimSHA2", "sha1"
requires "nim", "nimSHA2"

0 comments on commit 6d26503

Please sign in to comment.