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