Skip to main content

tw5-typed / utils/Crypto / Crypto

Class: Crypto

utils/Crypto.Crypto

Table of contents

Constructors

Methods

Constructors

constructor

new Crypto(): Crypto

Returns

Crypto

Methods

decrypt

decrypt(text, password): string

Parameters

NameType
textstring
passwordstring

Returns

string

Defined in

src/utils/Crypto.d.ts:7


encrypt

encrypt(text, password): string

Parameters

NameType
textstring
passwordstring

Returns

string

Defined in

src/utils/Crypto.d.ts:6


hasPassword

hasPassword(): boolean

Returns

boolean

Defined in

src/utils/Crypto.d.ts:5


setPassword

setPassword(newPassword): void

Parameters

NameType
newPasswordstring

Returns

void

Defined in

src/utils/Crypto.d.ts:3


updateCryptoStateTiddler

updateCryptoStateTiddler(): void

Returns

void

Defined in

src/utils/Crypto.d.ts:4