Last active
January 21, 2018 07:00
-
-
Save SteveFromTheOffice/c0d974868a1f736dc948fd278b6fe35d to your computer and use it in GitHub Desktop.
Powershell IOTA Seed Generator
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
## 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