Examples/Safe_CustomCryptographicAlgorithm_1.ps1
|
function Get-SafeHash1 { param([string]$input) $sha = [System.Security.Cryptography.SHA256]::Create() $bytes = [System.Text.Encoding]::UTF8.GetBytes($input) return $sha.ComputeHash($bytes) } |