diff --git a/108.md b/108.md index e724105e..f073f2f8 100644 --- a/108.md +++ b/108.md @@ -121,7 +121,7 @@ APP.get("/:noteId/:paymentHash") ### Encryption/Decryption -To encrypt/decrypt `kind:56` key notes, we use [NIP-04](https://github.com/nostr-protocol/nips/blob/master/04.md)'s encrypt/decrypt functions between the gated note's creator's pubkey and your pubkey. +To encrypt/decrypt `kind:56` key notes, we use [NIP-04](https://github.com/nostr-protocol/nips/blob/master/04.md)'s encrypt/decrypt functions between the gated note's creator's pubkey and your prikey. To encrypt/decrypt the gated note, we use `aes-256-cbc`. Below is a simple implementation in ts: