Sha256: 75c040ed3b3a57f86b43e7dc743c433be3e3ef415aa5ede25b2880cc9ed9cea6
Contents?: true
Size: 504 Bytes
Versions: 14
Compression:
Stored size: 504 Bytes
Contents
$p = $ExecutionContext.SessionState.Path $path = $p.GetUnresolvedProviderPathFromPSPath("<%= path %>") if (Test-Path $path -PathType Leaf) { $cryptoProv = New-Object -TypeName System.Security.Cryptography.MD5CryptoServiceProvider $file = [System.IO.File]::Open($path, [System.IO.Filemode]::Open, [System.IO.FileAccess]::Read) $md5 = ([System.BitConverter]::ToString($cryptoProv.ComputeHash($file))) $md5 = $md5.Replace("-","").ToLower() $file.Close() Write-Output $md5 }
Version data entries
14 entries across 14 versions & 3 rubygems