Archived Forum Post

Index of archived forum posts


Encrypt/Decrypt with HEX Data Input

Feb 09 '15 at 08:10

We are working with below example for DES/TDES encryption. The example uses an ANSI string input whereas we need to use HEX data input. Can you please let us know (possibly with example code) how to do this?


Starting in v9.5.0.47, the Crypt2's Charset property can now also be “hex” or “base64″ , which allows for binary (non-text) encoded data to be passed to any method where the input data is a string. Rather than converting to an actual charset (such as utf-8, iso-8859-1), the binary data is decoded, and the decoded bytes are passed to the underlying encryptor, hashing, signing, etc.