We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb73ce3 commit 017c3f4Copy full SHA for 017c3f4
Crypto.AES/Public/Protect-Data.ps1
@@ -21,6 +21,7 @@ function Protect-Data {
21
Write-Verbose "Cmdlet Protect-Data - Process"
22
if (!$Nonce) {
23
$Nonce = [byte[]]::new(12)
24
+ [System.Security.Cryptography.RandomNumberGenerator]::Fill($Nonce)
25
}
26
$cipherOutput = [byte[]]::new($Data.Length)
27
$tag = [byte[]]::new(16)
0 commit comments