I hereby claim:
- I am shuguet on github.
- I am shuguet (https://keybase.io/shuguet) on keybase.
- I have a public key ASAGjVpNPmcgFX01umSxW3c_Psl7RJ3XnvZwfR_1HQzeoAo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Creating AES key with random data and export to file: | |
$KeyFile = "c:\AES.key" | |
$Key = New-Object Byte[] 16 # You can use 16, 24, or 32 for AES | |
[Security.Cryptography.RNGCryptoServiceProvider]::Create().GetBytes($Key) | |
$Key | out-file $KeyFile |