Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
How to create an encrypted password for the Native API
-
Hi,
I am trying to use the Native API for Otter to add a new Credential but need to provide a password that will be stored encrypted using aes128.
I am using the method Credentials_CreateOrUpdateCredential via SOAP.
I am using the key from the config file but am unable to work out the correct way to create the encrypted value. I have tried different padding modes but with no success.
Alternatively, is there a way of providing the plain text value and Otter automatically encrypt when its stored?
Many Thanks,
GaryProduct: Otter
Version: 2.1.3
-
Unfortunately the Native API is essentially a database wrapper, and one of the few things that can't be handled at the database layer is encryption.
While we want to create a resource credential API at some point, in the meantime, the only workaround would be to encrypt/decrypt the secrets yourself, using the Encryption Key stored in your configuration file.