Generating Seed Phrases in Python
So, we all know how we need to keep our Bitcoin stash safe, right? Well, one way to do that is with seed words. These are the key to your crypto vault, and you can use them to get secure access.
What could be even more secure than seedwords though? How about, control over how you access them? Apps, websites and hardware wallets have you reliant on companies and brands. Yes a lot have a lot of trust and backing but is that really good enough? If like me you do not feel that is good enough, consider writing your own code to access seed words instead. Heres an example.
(All examples are performed in Visual Studio Code)
First install the mnemonics library:
This pretty much imports the library(package of commands that interacts with mnemonics)
Next you can use the ‘generate’ command to generate your seed words and the print command to view. Here is an example:
To summarize:
The ‘mnemonic’ library, adept at mnemonic phrase manipulation, is imported to the script.
The function generate_seed_words
is invoked to produce a default 12-word mnemonic phrase, with the option to modify the length according to one's preference.
Upon execution, the script prints the generated Bitcoin seed words.
I believe the best way to protect crypto is to avoid letting anyone know you have it, thus avoiding becoming a target. By avoiding sites/apps, you have no cookies tracing a link between you and crypto and can keep all crypto related activity entirely private in python.