A Cipher that derives a shared secret using X25519 and then uses DeoxysII for encrypting using that secret.

This is the default cipher.

Hierarchy (view full)

Constructors

Properties

epoch: undefined | number
kind: X25519DeoxysII = CipherKind.X25519DeoxysII
publicKey: Uint8Array

Methods

  • Parameters

    • plaintext: Uint8Array
    • nonce: Uint8Array = ...

    Returns {
        ciphertext: Uint8Array;
        nonce: Uint8Array;
    }

    • ciphertext: Uint8Array
    • nonce: Uint8Array