Skip to content

Commit

Permalink
format_hash(): format hashes to lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
r15ch13 committed Jul 29, 2018
1 parent 8804097 commit 5d56f8f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/core.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,7 @@ function substitute($entity, [Hashtable] $params) {
}

function format_hash([String] $hash) {
$hash = $hash.toLower()
switch ($hash.Length)
{
32 { $hash = "md5:$hash" } # md5
Expand Down

0 comments on commit 5d56f8f

Please sign in to comment.