Yes, I write credentials in a file and encrypt them with my public key. Then I use my private key to decrypt them when needed.
I use gpg to encrypt my passwords with my public key. Benefit is that adding credentials to a new file doesn’t require me to type the master password (password for private key). I trust gpg the most for security.
Yes, I write credentials in a file and encrypt them with my public key. Then I use my private key to decrypt them when needed.