4 ms·
On my desktop I have a python script that selects N random words from the list I obtained from the eff website (link below). Something to note is that the regu
by chlorion 4y ago
On my desktop I have a python script that selects N random words from the list I obtained from the eff website (link below).
Something to note is that the regular "random" standard library module in python is not intended for password generation or cryptographic purposes. Modern python has a module called "secrets" that provides secure random functions using randomness from the OS's CSPRNG.
If I need something like a binary key I just use /dev/urandom directly. You can pipe urandom through something like "tr" to remove non-printable bytes, or remove everything that's not in a set that you provide such as "a-zA-Z0-9!@#$%^&*()".
On Android I use the "pass" app, but I generate the passwords on my desktop and then share them with the phone after encrypting them with the phone's GPG key.
(wordlists) https://www.eff.org/dice https://www.eff.org/dice