Interface Encrypter<T>

High level encrypter.

This captures both the encryption key and the wire format of encrypted content.

interface Encrypter {
    encrypt: ((pkt) => Promise<void>);
}

Type Parameters

Properties

Properties

encrypt: ((pkt) => Promise<void>)

Type declaration

    • (pkt): Promise<void>
    • Encrypt a packet. The packet is modified in-place.

      Parameters

      • pkt: T

      Returns Promise<void>

Generated using TypeDoc