Want to encrypt without getting Base64 encoded result
2 years ago
Originally Published: 2007-09-13
Article Number
000053125
Applies To
Key Manager Client 1.5.x
Issue
Want to encrypt without getting Base64 encoded result
How to use the Key Manager Client's Java API to encrypt data such that the encrypted data returned is not in Base64 encoding.
Resolution

In the encryptData() method,

public byte[] encryptData(java.lang.String keyClass,

byte[] inputData,

boolean base64Encode)

the last argument is a boolean indicating base64encode. So, if you set it to false, you won't get Base64 encoded data back (you'll get the encrypted data back in binary form).