Interface Encrypter<T>

High level encrypter.

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

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

Type Parameters

Properties

Properties

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

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