How to encrypt and store passwords?

I want to store my passwords in an encrypted format and then decrypt them when using in integration. Is there a way to do that?

  Discussion posts and replies are publicly visible