Function decryptMessage

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

    Parameters

    • ciphertext: string

      The encrypted ciphertext.

    • nonce: string

      The nonce used for encryption.

    • sender_public_key: string

      The sender's public key.

    • recipient_private_key: string

      The recipient's private key.

    Returns null | string

    string | null - The decrypted message or null if decryption fails.

Generated using TypeDoc