interface MessageEncryptor {
    decryptData(payload, sharedSecet): string | Promise<string>;
    encryptData(plaintext, sharedSecet): MessageEncryptorPayload | Promise<MessageEncryptorPayload>;
    getSharedSecret(privateKey, publicKey): Uint8Array | Promise<Uint8Array>;
}

Implemented by

Methods

  • Parameters

    Returns string | Promise<string>

  • Parameters

    • privateKey: string
    • publicKey: string

    Returns Uint8Array | Promise<Uint8Array>

Generated using TypeDoc