Decrypt des3-cbc-encrypted-string using confd_cmd or maapi

Hi,
I am using des3-cbc-encrypted-string to store the passwords.
I understand that this can be decrypted using maapi_install_crypto_keys() and confd_decrypt() but is there a equivalent of this in confd_cmd or maapi which can be used in shell script?

Thanks

No, but you can, for example, write a simple Python script that decrypts the password.
Example from the NSO documentation (replace _ncs with _confd):

Otherwise, ConfD comes with the source code to confd_cmd (see confd_cmd.c), so you can extend that tool with your own command that uses confd_decrypt() if you wish.

1 Like