Methods
(static) download_file(contents, filename, mime_type)
Dynamically creates and enacts a download link for a provided file. This is necessary if the contents of the file can change after the button is loaded but before it is clicked.
Parameters:
Name | Type | Description |
---|---|---|
contents |
string | |
filename |
string | The name of the downloaded file. |
mime_type |
string | The MIME type of the file. |
(static) encrypt(message, password) → {string}
Derive a key from a password supplied by the user, and use the key to encrypt the message. Update the "ciphertextValue" box with a representation of part of the ciphertext.
Parameters:
Name | Type | Description |
---|---|---|
message |
string | |
password |
string |
Returns:
Type | Description |
---|---|
string |