Skip to content

Instantly share code, notes, and snippets.

View shuguet's full-sized avatar
👋
Have questions? Reach out!

Sylvain Huguet shuguet

👋
Have questions? Reach out!
View GitHub Profile
@shuguet
shuguet / keybase.md
Created August 1, 2019 17:43
keybase.md

Keybase proof

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:

@shuguet
shuguet / create_key.ps1
Last active April 27, 2020 16:04
How to use encrypted password in NTNX PowerShell script
#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