=== CryptNote Secure Links ===
Contributors: cryptnote
Tags: security, privacy, encryption, email, links
Requires at least: 5.8
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Integrates CryptNote.pro to generate encrypted links directly from the WordPress dashboard and replace emails with secure links.

== Description ==

Create messages with expiration/limited views via the **CryptNote.pro** API without leaving WordPress.

* Admin form to generate `share_url` and token via API.
* Option to replace all sent emails (`wp_mail`) with a secure link (attachments are removed).
* Customizable placeholders in the email body: `{share_url}`, `{token}`, `{max_views}`, `{expire_minutes}`.
* Support for optional password, expiration in minutes, and Markdown/HTML flags.
* Configurable endpoint (default `https://cryptnote.pro/api/v1`) and optional `X-API-Key` header.

== Installation ==

1. Upload the `plugin-wordpress` folder to `wp-content/plugins/` or compress it as `.zip` and upload via the Plugins panel.
2. Activate **CryptNote Secure Links**.
3. In the sidebar menu, open **CryptNote** and configure the base endpoint, API key (if used), and defaults.
4. (Optional) Check "Enable secure links for all emails" to protect all `wp_mail` content.

== Frequently Asked Questions ==

= Do I need an API key? =
Only if your CryptNote instance requires it. The plugin sends it in the `X-API-Key` header when provided.

= Which endpoints are used? =
`POST {api_base}/create.php` to generate the link. The default is `https://cryptnote.pro/api/v1`.

= What happens to email attachments? =
They are removed when email protection is active, to prevent data leakage outside the secure link.

= Can I use Markdown or HTML? =
Yes. Enable the desired format in the defaults or per submission. The plugin sends `is_markdown=true` or `is_html=true`.

== Privacy ==

This plugin uses the external **CryptNote** service to generate and host the secure link and token. When creating a link, the protected content and metadata (views, expiration, optional password) are sent to `https://cryptnote.pro/api/v1`. See the service's privacy policy at https://cryptnote.pro/privacy.php?lang=en.

== Screenshots ==

1. Settings screen and form to generate a secure link.

== Changelog ==

= 1.0.0 =
* Initial release: create links from admin and option to protect all emails with CryptNote link.

== Upgrade Notice ==

= 1.0.0 =
Initial plugin version. Update if you need fixes or new features.
