How to decrypt a Configuration Parameter in the script?

I want to decrypt the value in Password that is encrypted:

Dim userName = Connection.GetConfigParm("Custom\Authentication\User")
Dim password = Session.Decrypt(Connection.GetConfigParm("Custom\Authentication\Pass"))

I know this works if I use this password in a Proccess, but I don't know how to do this inside the script.