tw5-typed / utils/Crypto / Crypto
Class: Crypto
utils/Crypto.Crypto
Table of contents
Constructors
Methods
Constructors
constructor
• new Crypto(): Crypto
Returns
Methods
decrypt
▸ decrypt(text, password): string
Parameters
| Name | Type |
|---|---|
text | string |
password | string |
Returns
string
Defined in
encrypt
▸ encrypt(text, password): string
Parameters
| Name | Type |
|---|---|
text | string |
password | string |
Returns
string
Defined in
hasPassword
▸ hasPassword(): boolean
Returns
boolean
Defined in
setPassword
▸ setPassword(newPassword): void
Parameters
| Name | Type |
|---|---|
newPassword | string |
Returns
void
Defined in
updateCryptoStateTiddler
▸ updateCryptoStateTiddler(): void
Returns
void