000020618 - Want to encrypt without getting Base64 encoded result

Document created by RSA Customer Support Employee on Jun 14, 2016Last modified by RSA Customer Support Employee on Apr 22, 2017
Version 2Show Document
  • View in full screen mode

Article Content

Article Number000020618
Applies ToKey Manager Client 1.5.x
IssueWant 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).

Legacy Article IDa36810

Attachments

    Outcomes