mirror of
https://github.com/AtHeartEngineer/2fa_mnemonic.git
synced 2026-01-07 23:03:55 -05:00
Create word_list_generation.py
This commit is contained in:
17
word_list_generation.py
Normal file
17
word_list_generation.py
Normal file
@@ -0,0 +1,17 @@
|
||||
import random
|
||||
word_list = []
|
||||
|
||||
with open('bip39_english.txt') as f:
|
||||
word_list = f.read().splitlines()
|
||||
|
||||
for x in range(48):
|
||||
selection = random.randint(0, len(word_list)-1)
|
||||
word_list.pop(selection)
|
||||
|
||||
twofa_list = word_list[::2][:1000]
|
||||
|
||||
with open('2fa_english.txt', "w") as f:
|
||||
for x in twofa_list:
|
||||
f.write(x + "\n")
|
||||
|
||||
print(twofa_list[random.randrange(0,999)]+ " " +twofa_list[random.randrange(0,999)])
|
||||
Reference in New Issue
Block a user