ssCore.Crypto.decryptString

Decrypt a string.


Availability:

First available in version 3.0 build 2039.


Input Parameters:

key - The same key that was used to encrypt the string.

data - The encrypted data (in hex string format).


Output Parameters:

result - The decrypted data.


Asynchronous Mode:

When this method is called asynchronously, a return object containing the output parameters is passed to the specified callback function.

ssCore.Crypto.decryptString( paramsObject [, callbackParamsObject] [, errorParamsObject] );


Synchronous Mode:

When this method is called synchronously, a return object containing the output parameters is returned to the caller immediately.

var returnObject = ssCore.Crypto.decryptString( paramsObject );


Notes:

None.


Examples:

The following example decryptes a string that was previously encrypted using ssCore.Crypto.encryptString. The decrypted string is then displayed in the SWF Studio Trace tab.

var return_obj = ssCore.Crypto.decryptString({data:encryptedString, key:"secret01"});

ssDebug.trace(return_obj.result);