Skip to content

Instantly share code, notes, and snippets.

@pv8
Last active December 15, 2017 17:17
Show Gist options
  • Save pv8/9c509a8ebcb3de1e7ceb8ea5d02e6f23 to your computer and use it in GitHub Desktop.
Save pv8/9c509a8ebcb3de1e7ceb8ea5d02e6f23 to your computer and use it in GitHub Desktop.
IOTA Seed Generator

Generating seed via command line

$ curl -s https://gist.githubusercontent.com/pv8/9c509a8ebcb3de1e7ceb8ea5d02e6f23/raw/152a24f470c96643180e6faded4c77b1c737e1d7/iota_seed_gen.py | python3
#!/usr/bin/env python3
from random import SystemRandom
LENGTH = 81
alphabet = b'9ABCDEFGHIJKLMNOPQRSTUVWXYZ'
sys_random = SystemRandom()
print(''.join([chr(sys_random.choice(alphabet)) for _ in range(LENGTH)]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment