Created
February 1, 2017 21:17
-
-
Save lordsutch/eb0d9438f72cbc4e5ee0dbc86ad0112a to your computer and use it in GitHub Desktop.
Generate a password/key for a MoCA network with Python 3.6+
This file contains hidden or 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
#!/usr/bin/env python3.6 | |
import string | |
import secrets | |
while True: | |
password = secrets.randbelow(100000000000000000) | |
if password >= 100000000000: | |
break | |
print(password) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment