Is there away to encrypt a variable that is passed to a release pipeline?

Is there away to encrypt a variable that is passed to a release pipeline? I need to pass login creds to a powershell script. Please and thank you