An interface

interface Encryption {
    decrypt(password: string, data: string): Promise<string>;
    encrypt(password: string, data: string): Promise<string>;
}

Methods

  • Parameters

    • password: string
    • data: string

    Returns Promise<string>

  • Parameters

    • password: string
    • data: string

    Returns Promise<string>