Skip to content

Commit

Permalink
Merge pull request #11 from inv2004/master
Browse files Browse the repository at this point in the history
move sha1,md into checksums module
  • Loading branch information
ba0f3 authored Sep 13, 2023
2 parents d850e73 + 9141c0f commit 536dd2b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion hmac.nim
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@

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

import std/[sha1, md5, strutils]
import std/strutils
import checksums/[md5, sha1]
import nimSHA2 except toHex
import nimcrypto

Expand Down
2 changes: 1 addition & 1 deletion hmac.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ author = "Huy Doan"
description = "HMAC hashing in Nim"
license = "MIT"

requires "nim >= 1.6.10", "nimSHA2", "nimcrypto >= 0.5.4"
requires "nim >= 1.6.10", "nimSHA2", "nimcrypto >= 0.5.4", "checksums >= 0.1.0"
2 changes: 1 addition & 1 deletion tests/thmac.nim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import unittest, strutils, sha1, hmac
import unittest, strutils, hmac

proc hexToString(s: string): string =
var pair: string
Expand Down

0 comments on commit 536dd2b

Please sign in to comment.