Password is very important, so theres safety and complexity too. Specially in this time where the power of GPU is increasing and the hashrate too Bruteforce on weaks passwords is working, check the number of tentatives per secondes using the new generation of GPU and a tools like hashcat, 3080 benchmark However if your password is generated with a long length, alpha numeric, digits and all, you will be safe.
There is some passwords managers online, from keepass, to bitwarden. If found this one, pass, its really simple use GPG, and filesystems, so the dude bind it with git. I think its awsome.
Is available everywhere just use your favorite package manager and install it
The default directoy to saving password will be: $HOME/.password-store
sudo apt install pass
sudu pacman install pass
brew install pass
nix-env -iA nixos.pass
pass init <GPG KEY ID>
pass generate user/website 64
pass user/website
pass -c user/website
Pass will forward your git command. Create a commit for each password insert or generated
# Init the repository
pass git init
# Add origin remote
pass git remote add origin git@example.com:user/passwords
You just need to push when ever you want, like after generated a new password Simple use:
pass git push
Since you use gpg, you probably have a Signing key. You can easly tell pass to sign the commit with:
pass git config pass.signcommits true