# Email Encrypt Plugin

**URL:** <https://forum.getkirby.com/t/email-encrypt-plugin/35449>\
**Category:** Plugins\
**Tags:** v4, v5\
**Created:** [June 9, 2026, 2:03pm UTC](https://forum.getkirby.com/t/email-encrypt-plugin/35449 "2026-06-09T14:03:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kesabr](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/kesabr/32/16711_2.png) [@kesabr](https://forum.getkirby.com/u/kesabr)\
**Post date:** [June 9, 2026, 2:03pm UTC](https://forum.getkirby.com/t/email-encrypt-plugin/35449/1 "2026-06-09T14:03:37Z")

</div>

I built a small plugin that protects email addresses from scrapers. I originally wrote it for a specific client project, so it might not be fully refined for general use yet — but it  
works and I figured it’s worth sharing.

Instead of putting a `mailto:` link in the markup, it encrypts each address into a token using **sodium\_crypto\_secretbox**. A small JS handler resolves the token on click via an API call  
and opens the mail client. The address never appears in the HTML source.

It can be used for Email fields and on the writer fields.

Check it out: [GitHub - kesabr/kirby-email-encrypt · GitHub](https://github.com/kesabr/kirby-email-encrypt)

Feedback welcome
