[개발] PowerShell에서 HMACSHA256 키 생성

메이야 2026.09.03 22:36 댓글 0 조회 191


Text
> $rng = [System.Security.Cryptography.RandomNumberGenerator]::Create()
> $valBytes = New-Object byte[] 64
> $decBytes = New-Object byte[] 32
> "validationKey=" + (($valBytes | % { $_.ToString('X2') }) -join '')
> "decryptionKey=" + (($decBytes | % { $_.ToString('X2') }) -join '')


목록
댓글 0