Function encryptMessage

  • Encrypt a message using sender's private key and recipients's public key.

    Parameters

    • message: string

      The message to be encrypted.

    • sender_private_key: string

      The sender's private key.

    • recipient_public_key: string

      The recipient's public key.

    Returns HexCipher

    HexCipher - The encrypted ciphertext and nonce.

Generated using TypeDoc