Public Member Functions

nsILoginManagerCrypto Interface Reference

import "nsILoginManagerCrypto.idl";

List of all members.

Public Member Functions

AString encrypt (in AString plainText)
 encrypt
AString decrypt (in AString cipherText)
 decrypt

Member Function Documentation

AString nsILoginManagerCrypto::decrypt ( in AString  cipherText  ) 

decrypt

Parameters:
cipherText The string to be decrypted.

Decrypts the specified string, returning the plaintext value.

Can throw if the user cancels entry of their master password, or if the cipherText value can not be successfully decrypted (eg, if it was encrypted with some other key).

AString nsILoginManagerCrypto::encrypt ( in AString  plainText  ) 

encrypt

Parameters:
plainText The string to be encrypted.

Encrypts the specified string, returning the ciphertext value.

NOTE: The current implemention of this inferface simply uses NSS/PSM's "Secret Decoder Ring" service. It is not recommended for general purpose encryption/decryption.

Can throw if the user cancels entry of their master password.


The documentation for this interface was generated from the following file: