Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Function Get-MD5
- {
- Param([string[]]$string)
- $md5 = New-Object -TypeName System.Security.Cryptography.MD5CryptoServiceProvider
- $hash = [System.BitConverter]::ToString($md5.ComputeHash($string))
- return $hash
- }
- $md5 = Get-MD5([System.IO.File]::ReadAllBytes("C:\windows\fonts\arial.ttf"))
- write-host $md5
- if ($md5 -eq "FE-6B-41-F2-C2-D2-C7-65-5E-C1-E4-45-20-66-7A-14")
- {
- write-host "Equal"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement