As security breaches are discovered regularly, and so leakage happens, it is recommended to have a different password on each account. However, this task is obviously a pain to maintain by hand. I did use a notebook back in 2003, which I lost within a month, given that I'm a very organized person.
Hopefully, many password managers exist, with similar features: cross-platform (especially smartphone support), password generation,browser integration…
Here are just some commands I often use.
pass generate -i <pass-name>
To regenerate a password, the
-i is important to avoid overwritting the whole file and having to rely on dirty git to withdraw your mistake (
pass <cmd> will automatically commit your change)… I sometimes forget it, so let's put it here as a reminder.
pass git <whatever you want>
To do whatever you want with git, especially dirty git 😉
And finally, I'm using password-store on my android phone.