SealingKey
A key made from a password. It can lock a text (make it unreadable) and unlock it again, and it can do nothing else. The plugin never sees the key itself.
Methods
Section titled “Methods”open()
Section titled “open()”open(sealed, place): string;Gives back the original text.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
sealed |
string |
the locked text |
place |
string |
the place it was locked for. Any other place fails |
Returns
Section titled “Returns”string
Throws
Section titled “Throws”an error whose reason is wrong-key (the password was wrong, or the text was changed) or not-sealed (the text was never locked)
seal()
Section titled “seal()”seal(text, place): string;Turns a text into locked text, which cannot be read without the key.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
text |
string |
the text to lock |
place |
string |
what the text belongs to, for example row:a. It is required and cannot be empty. A locked text can only be unlocked in the place it was locked for |
Returns
Section titled “Returns”string
the locked text
