encryptNip04
Encrypt plaintext messages with the NIP-04 legacy standard for Nostr encrypted DMs. Requires recipient's public key and optionally your private key; can use remote signing if configured.
Instructions
Encrypt text with NIP-04 (legacy)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plaintext | Yes | Text to encrypt | |
| recipientPubkey | Yes | Recipient pubkey (hex or npub) | |
| privateKey | No | Private key (nsec or hex). Optional when NOSTR_BUNKER_URI is configured. |