PHPackages                             dolutech/cryptnote-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. dolutech/cryptnote-php

ActiveLibrary[Security](/categories/security)

dolutech/cryptnote-php
======================

A PHP library for creating encrypted, self-destructing messages with view limits and optional password protection

10PHP

Since Jan 11Pushed 5mo agoCompare

[ Source](https://github.com/dolutech/cryptnote-php)[ Packagist](https://packagist.org/packages/dolutech/cryptnote-php)[ RSS](/packages/dolutech-cryptnote-php/feed)WikiDiscussions main Synced today

READMEChangelog (2)DependenciesVersions (2)Used By (0)

CryptNote PHP Library
=====================

[](#cryptnote-php-library)

[![Version](https://camo.githubusercontent.com/e1bf91c65adbd37d8859690277cceeec20738fab6b51f68abaf8d2a584111b4d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d302e322e302d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/dolutech/cryptnote-php/releases/tag/v0.2.0)[![PHP](https://camo.githubusercontent.com/d332c02139e0abd65c7c603532e2abdeca3fa33577802313a9d1f5d42633971b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344382e302d3838393242462e7376673f7374796c653d666c61742d737175617265)](https://php.net)[![License](https://camo.githubusercontent.com/6c711032aff1ca0eb6b211aa6cb3649ce7fd64a7714e1181d4bb457f9680e7cf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/dolutech/cryptnote-php/blob/main/LICENSE)[![Packagist](https://camo.githubusercontent.com/2f5f71ea1414175971291abb1e9992c136241b2c7984ff8ec76b3a561b30ce24/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7061636b61676973742d646f6c757465636825324663727970746e6f74652d2d7068702d6f72616e67652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dolutech/cryptnote-php)[![CodeRabbit](https://camo.githubusercontent.com/a16c60d4ecf912ff283f1c4853457d97f951e75f6e16b0b59a6607deeb71e97b/68747470733a2f2f696d672e736869656c64732e696f2f636f64657261626269742f7072732f6769746875622f646f6c75746563682f63727970746e6f74652d7068703f7374796c653d666c61742d737175617265266c6f676f3d636f6465726162626974266c6f676f436f6c6f723d7768697465266c6162656c3d636f6465726162626974)](https://coderabbit.ai)

A standalone PHP library for creating encrypted, self-destructing messages with view limits and optional password protection. Based on the [CryptNote.pro](https://cryptnote.pro) encryption system.

Features
--------

[](#features)

- 🔐 **AES-256-GCM (default) with AEAD** — authenticated encryption by default; legacy v1 CBC+HMAC remains for compatibility
- 🔑 **Optional Password Protection** — PBKDF2 + versioned encryption; configurable min length and validator
- 👁️ **View Limits** — Messages self-destruct after a specified number of views
- ⏰ **Time Expiration** — Set messages to expire after a certain time
- 📝 **Markdown/HTML Support** — Store and retrieve formatted content
- 🗄️ **SQLite Storage** — Zero-configuration database included
- 🧹 **Auto Cleanup** — Automatic removal of old, unviewed messages
- 🔒 **Secure Deletion** — Optional SQLite secure\_delete/DELETE journal for stronger erasure
- 🛡️ **Privacy Mode** — Obfuscate status for missing/expired notes
- 🗝️ **Key Wrapping** — Optional wrapping key to protect stored per-note keys

Requirements
------------

[](#requirements)

- PHP 8.0 or higher
- OpenSSL extension
- PDO extension with SQLite driver

Installation
------------

[](#installation)

### Via Composer

[](#via-composer)

```
composer require dolutech/cryptnote-php
```

### Manual Installation

[](#manual-installation)

1. Download or clone this repository
2. Include the autoloader or require the files directly:

```
require_once 'path/to/library-open/src/CryptNote.php';
require_once 'path/to/library-open/src/CryptNoteStandalone.php';
```

Quick Start
-----------

[](#quick-start)

### Basic Usage (with built-in storage)

[](#basic-usage-with-built-in-storage)

```
