Class YlideUnencryptedKeyPair

Description

Class to represent unencrypted communication key which could be used to decrypt/encrypt message content

Hierarchy

  • YlideUnencryptedKeyPair

Constructors

Properties

Accessors

Methods

Constructors

Properties

keypair: BoxKeyPair

Accessors

Methods

  • Method to decrypt data sent from a certain sender

    Returns

    Decrypted data

    Parameters

    • data: Uint8Array

      Encrypted data

    • theirPublicKey: Uint8Array

      Sender's public key

    Returns Uint8Array

  • Method to encrypt some data for a certain recipient

    Returns

    Encrypted bytes

    Parameters

    • data: Uint8Array

      Data to encrypt

    • theirPublicKey: Uint8Array

      Recipient's public key

    Returns Uint8Array

Generated using TypeDoc