Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
windows powershell random number base64
05776215D594997C8BBA9502AA509920E43A442F873738E7C19CCA9E3DF3BA6F
(1..64|%{'{0:X}' -f (Get-Random -Max 16)}) -join ''
[System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes("hello"))
[Convert]::ToBase64String((1..64| % {Get-Random -Minimum 0 -Maximum 256}))
dM1UzhgQdVNk1LMjnoAmhPAj18xy76TUGDjohT6wJR4=
yzsjBizYXFKbZdqEzcpT0B897MjXSKdIdK3SBrYte5o=
44
https://tio.run/##K8gvTy0qzkjNyfn/Pzm1qKS0JDNH4f9/AA
[Convert]::ToBase64String((1..32| % {Get-Random -Minimum 0 -Maximum 255}))
2sLqBWg5PNsi3rydlpw8flFcRG61UDUfazmLZIZEH7g=
Base 64 letters = 4 * (n/3), where n=original length in letters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.