Interface Encrypter<T>

High level encrypter.

Remarks

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

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

Type Parameters

Properties

Properties

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

Encrypt a packet. The packet is modified in-place.

Type declaration

    • (pkt): Promise<void>
    • Parameters

      • pkt: T

      Returns Promise<void>

Generated using TypeDoc