Skip to content

Instantly share code, notes, and snippets.

@SteveFromTheOffice
Last active January 21, 2018 07:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SteveFromTheOffice/c0d974868a1f736dc948fd278b6fe35d to your computer and use it in GitHub Desktop.
Save SteveFromTheOffice/c0d974868a1f736dc948fd278b6fe35d to your computer and use it in GitHub Desktop.
Powershell IOTA Seed Generator
## CURRENTLY IN TESTING, DO NOT USE! ##
$len = 81
$chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ9"
$bytes = new-object "System.Byte[]" $len
$rnd = new-object System.Security.Cryptography.RNGCryptoServiceProvider
$rnd.GetBytes($bytes)
$result = ""
for( $i=0; $i -lt $len; $i++ ) {
$result += $chars[ $bytes[$i] % $chars.Length ]
}
$result
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment