I'm writing a CLI with Go and I want to save the password to a config file that is saved in the user home directory.
Should I encrypt the password on save and decrypt it when sending it to the server the CLI interact with?
And if so, is there a good built in library in go library to do so? I want to keep it as simple as possible and without using any additional outside packages. All the answers I saw was quite complex.
Should be something like this:
func Encrypt(password string) string
func Decrypt(password string) string
Any ideas?