Optional
aInstancePtr: objectA run time mechanism for interface discovery.
NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.
aInstancePtr must not be null.
[in] A requested interface IID
[out] A pointer to an interface pointer to receive the result.
Run decryptString on multiple strings, asynchronously. This will allow you to not jank the browser if you need to decrypt a large number of strings all at once.
A promise that resolves with the list of decrypted strings in Unicode.
the strings to decrypt, encoded as Base64.
Run encryptString on multiple strings, asynchronously. This will allow you to not jank the browser if you need to encrypt a large number of strings all at once. This method accepts an array of wstrings which it will convert to UTF-8 internally before encrypting.
A promise for the list of encrypted strings, encoded as Base64.
the strings to encrypt.
Encrypt to Base64 output. Note that the input must basically be a byte array (i.e. the code points must be within the range [0, 255]). Hence, using this method directly to encrypt passwords (or any text, really) won't work as expected. Instead, use something like nsIScriptableUnicodeConverter to first convert the desired password or text to UTF-8, then encrypt that. Remember to convert back when calling decryptString().
The encrypted text, encoded as Base64.
The text to encrypt.
Generated using TypeDoc
Increases the reference count for this interface. The associated instance will not be deleted unless the reference count is returned to zero.
Returns
The resulting reference count.