An interface

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

Methods

  • Parameters

    • password: string
    • data: string

    Returns Promise<string>

  • Parameters

    • password: string
    • data: string

    Returns Promise<string>