Sha256: f18599c7103dea5966ef99561fe5fe9f356e766a4ce1527f0b34b0d098b3b733
Contents?: true
Size: 491 Bytes
Versions: 7
Compression:
Stored size: 491 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
7 entries across 7 versions & 3 rubygems