document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. # code from http://aperturescience.su
  2. Function Get-FileHash
  3. {
  4.  
  5. [CMDLetBinding()]
  6. param
  7. (
  8.   [Parameter(mandatory=$true, valuefrompipeline=$true)] [ValidateScript({Test-Path $_ -PathType \'lea\'})] [String] $File,
  9.   [ValidateSet("sha1", "sha256", "sha384", "sha512", "md5", "ripemd160")] $HashAlgorithm = "sha256",
  10.   [switch] $Group
  11. )
  12.  
  13. Process
  14. {
  15.         #variable to store hash of the file
  16.         $hash
  17.  
  18. # code from http://aperturescience.su
');