Built-In Namespace _global_
| Method Attributes | Method Name and Description |
|---|---|
|
decodeBase64(base64)
Decode a base64 string to a typed array of uint8.
|
|
|
decryptAttachment(ciphertextBuffer, info)
Decrypt an attachment.
|
|
|
encodeBase64(uint8Array)
Encode a typed array of uint8 as base64.
|
|
|
encryptAttachment(plaintextBuffer)
Encrypt an attachment.
|
Method Detail
{Uint8Array}
decodeBase64(base64)
Decode a base64 string to a typed array of uint8.
Defined in: index.js.
Defined in: index.js.
- Parameters:
- {string} base64
- The unpadded base64 to decode.
- Returns:
- {Uint8Array} The decoded data.
{Promise}
decryptAttachment(ciphertextBuffer, info)
Decrypt an attachment.
Defined in: index.js.
Defined in: index.js.
- Parameters:
- {ArrayBuffer} ciphertextBuffer
- The encrypted attachment data buffer.
- {EncryptInfo} info
- The information needed to decrypt the attachment.
- Returns:
- {Promise} A promise that resolves with an ArrayBuffer when the attachment is decrypted.
{string}
encodeBase64(uint8Array)
Encode a typed array of uint8 as base64.
Defined in: index.js.
Defined in: index.js.
- Parameters:
- {Uint8Array} uint8Array
- The data to encode.
- Returns:
- {string} The base64 without padding.
{Promise}
encryptAttachment(plaintextBuffer)
Encrypt an attachment.
Defined in: index.js.
Defined in: index.js.
- Parameters:
- {ArrayBuffer} plaintextBuffer
- The attachment data buffer.
- Returns:
- {Promise} A promise that resolves with a EncryptResult when the attachment is encrypted.