Sto usando lo strumento da riga di comando pwgenper generare password perché adoro la ripetibilità che ottieni con il sha1flag della riga di comando. Per citare la pagina man:
-H, --sha1=/path/to/file[#seed]
Will use the sha1's hash of given file and the optional seed to
create password. It will allow you to compute the same password
later, if you remember the file, seed, and pwgen's options used.
ie: pwgen -H ~/your_favorite.mp3#your@email.com gives a list of
possibles passwords for your pop3 account, and you can ask this
list again and again.
WARNING: The passwords generated using this option are not very
random. If you use this option, make sure the attacker can not
obtain a copy of the file. Also, note that the name of the file
may be easily available from the ~/.history or ~/.bash_history
file.
Lo sto usando per generare (e recuperare) password come questa:
pwgen -1cnsy --sha1=/path/to/my/gpg/private-key.asc#username@example.com
L'unico problema è che non riesco a capire un modo per specificare quanti caratteri voglio che sia la password. Per impostazione predefinita, genera una password di 8 caratteri, che è più suscettibile alla forza bruta.
In alternativa, potrei usare apg, il che mi permette di specificare il numero di caratteri, ma non vedo un modo per fare apgprendere un file e una stringa come seme per darmi caratteri ripetibili.
Esiste un modo per pwgengenerare password di una lunghezza specificata?