decryptBinary


Purpose

Accepts a Base-64 encoded string containing encrypted data to return decrypted binary data.

The data is decrypted using the RSA private key, generated using the generateKeys method.

Signature

encryption.RSA.decryptBinary ( message, privateKey, callback )

Returns

This method does not return anything.

Parameters

Name Description Type Use
message Base-64 encoded string of data to be decrypted. string required
privateKey A private key, matching the public key generated using the generateKeys method. string required
callback Passed to inform of the results of the decryption process. object required

Callback structure

The callback may be structured as follows:

{
	onFailure: function(error) { ... },
	onSuccess: function(decryptedBinaryString) { ... }
}

Methods

Name Description Return type
onFailure Indicates that it was impossible to decrypt the message. undefined
onSuccess Indicates that the encryption process completed. Passes a Base-64 encoded binary string that contains decrypted data. undefined

Related topics

Overview
Legal notice | Copyright © 2015 and Confidential to Pegasystems Inc. All rights reserved. | Feedback
Advanced...