Password encryption with C++ config library
Hello,
My task is to write an app that behaves exactly the same as the Calendar configuration (PBX Manager > AP calendar > Configure) by using the Config API.
All works fine except for the Exchange server password.
When the password is "ABC", AP calendar sends "exchangeSyncPassword":{"value":"38ad60","key":"0.rrh1yrcwrzr"} in a WriteConfig message.
But ...
1. ConfigString::Decrypt("0.rrh1yrcwrzr", "38ad60", decoded.data(), maxSize); does not return "ABC".
2. ConfigString::Encrypt("0.rrh1yrcwrzr", "ABC", decoded.data(), maxSize); returns "c7790b" instead of "38ad60"
3. The Calendar App database contains "exchangeSyncPassword | f7c407" in the config table.
While the docu (https://sdk.innovaphone.com/13r2/sdk/common/lib/config.htm#ConfigString) says: "the password itself will be saved unencrypted to the database."
My question: How should the C++ config library be used to write "f7c407" in the config table when the password is "ABC"?
Best regards,
Sam