[scriptable, uuid(0ec80360-075c-11d4-9fd4-00c04f1b83d8)]
interface nsISecretDecoderRing : nsISupports

Methods

 Prompt the user to change the password on the SDR key.
void changePassword()
 Decrypt a buffer - callable only from C++.

 @return The length of the data in the output buffer.
[noscript] long decrypt(in buffer data, in long dataLen, out buffer result)
 Decrypt BASE64 input to nul-terminated string output.  There is
 no check for embedded nul values in the decrypted output.
string decryptString(in string crypt)
 Encrypt a buffer - callable only from C++.

 @return The length of the data in the output buffer.
[noscript] long encrypt(in buffer data, in long dataLen, out buffer result)
 Encrypt nul-terminated string to BASE64 output.
string encryptString(in string text)
 Logout of the security device that protects the SDR key.
void logout()
 Logout of the security device that protects the SDR key and tear
 down authenticated objects.
void logoutAndTeardown()