Alby Developer Guide
Alby Browser Extension APIs
Ask or search…
K
Links

nip04.encrypt

Method
async function nip04.encrypt(pubkey: string, plaintext: string): string;
Response
Returns ciphertext and iv as specified in nip-04.
Code Example
const encrypted = await window.nostr.nip04.encrypt(pubkey, "Secret message");
Last modified 7mo ago