Sha256: 2be11c59179484d54727de4edd5fb5030b72e048c1781374a856aeb096aaeb42
Contents?: true
Size: 489 Bytes
Versions: 5
Compression:
Stored size: 489 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-Host $md5 }
Version data entries
5 entries across 4 versions & 2 rubygems