Created
December 7, 2017 22:59
-
-
Save pywebdesign/c482e630a61c4ad5255298066a4a4734 to your computer and use it in GitHub Desktop.
chercher le dernier mots
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
from mnemonic import Mnemonic | |
import binascii | |
import bisect | |
import hashlib | |
import hmac | |
import itertools | |
import os | |
import sys | |
import unicodedata | |
from pbkdf2 import PBKDF2 | |
mn = Mnemonic("english") | |
words = [ | |
"piano", | |
"load", | |
"auction", | |
"wrap", | |
"quality", | |
"rhythm", | |
"blind", | |
"dwarf", | |
"small", | |
"zebra", | |
"egg", | |
"yard", | |
"vocal", | |
"nice", | |
"chicken", | |
"muffin", | |
"vessel", | |
"myself", | |
"scorpion", | |
"eight", | |
"dynamic", | |
"umbrella", | |
"knee", | |
"ask" | |
] | |
#print(mn.to_entropy(words)) | |
for word in mn.wordlist: | |
words = words[0:23] + [word] | |
if(mn.check(" ".join(words))): | |
print(words[-1]) | |
print(mn.to_entropy(words)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment