interface Encryption { decrypt(password: string,
data: string): Promise<string>; encrypt(password: string,
data: string): Promise<string>; } Methods
decrypt
- decrypt(password, data): Promise<string>
Parameters
- password: string
- data: string
Returns Promise<string>
encrypt
- encrypt(password, data): Promise<string>
Parameters
- password: string
- data: string
Returns Promise<string>
An interface