Skip to content

Instantly share code, notes, and snippets.

@pywebdesign
Created December 7, 2017 22:59
Show Gist options
  • Save pywebdesign/c482e630a61c4ad5255298066a4a4734 to your computer and use it in GitHub Desktop.
Save pywebdesign/c482e630a61c4ad5255298066a4a4734 to your computer and use it in GitHub Desktop.
chercher le dernier mots
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