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

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 4mo ago