Picture of Wim 4127
Registered 6 years 252 days
Wim 4127 Tuesday, 7 December 2021, 11:36 AM
Best way to encrypt/decrypt data
is there something in the SDK that allows us to easily encrypt a string and store it (in the DB) and the later on fetch it and decrypt that value again?

Thx,

Wim
Andreas Fink
Moderator Registered 13 years 52 days
Andreas Fink (innovaphone) Tuesday, 7 December 2021, 12:28 PM
Re: Best way to encrypt/decrypt data
Hello Wim,

what about the cypher library (Reference -> cipher)?
https://sdk.innovaphone.com/13r2/doc/reference.htm#CPP_library

Best Regards
Andreas Fink
Picture of Wim 4127
Registered 6 years 252 days
Wim 4127 Tuesday, 7 December 2021, 02:54 PM
Re: Best way to encrypt/decrypt data
Hi Andreas,

they might be useful depending on the next question: is the encrypted output binary data or base64 encoded data. I guess it's binary data? How to convert this to base64 so it is easier to pass along (in the db, in http, in json, ...)?

WIm
Andreas Fink
Moderator Registered 13 years 52 days
Andreas Fink (innovaphone) Wednesday, 8 December 2021, 10:28 AM
Re: Best way to encrypt/decrypt data
Hello Wim,

no, it is not base64 encoded.

There is a base64 library linked from the same page, that you could use:
https://sdk.innovaphone.com/13r2/common/ilib/base64.htm

Best Regards
Andreas Fink
← You can define your color theme preference here