Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
juerg committed Dec 6, 2023
1 parent 8815e7d commit 0126621
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
*
* Supported hash algorithms:
* <ul>
* <li>MD5</li>
* <li>MD5 (default)</li>
* <li>SHA-1</li>
* <li>SHA-512</li>
* </ul>
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/com/github/jlangch/venice/crypt.venice
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,7 @@

([file salt algorithm]
(assert (string? salt) "The salt must be a string")
(assert (string? algorithm) "The algorithm must be a string")
(. :FileHasher :hashFile (io/slurp file :binary true) salt algorithm)))


Expand Down Expand Up @@ -506,6 +507,7 @@
([file salt hash algorithm]
(assert (string? salt) "The salt must be a string")
(assert (string? hash) "The hash must be a string")
(assert (string? algorithm) "The algorithm must be a string")
(. :FileHasher :verifyFileHash (io/slurp file :binary true) salt hash algorithm)))


Expand Down

0 comments on commit 0126621

Please sign in to comment.