1 2 3 4 5 6 |
$hmacsha = New-Object System.Security.Cryptography.HMACSHA256 $hmacsha.key = [Text.Encoding]::ASCII.GetBytes("Clave secreta") $signature = $hmacsha.ComputeHash([Text.Encoding]::ASCII.GetBytes("Mensaje secreto")) $signature = [Convert]::ToBase64String($signature) $signature |