PHPackages                             abmmhasan/safeguard - 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. abmmhasan/safeguard

ActiveLibrary[Security](/categories/security)

abmmhasan/safeguard
===================

Modern cryptography, token, password and data-protection toolkit for PHP.

1.0.1(1mo ago)40MITPHPPHP &gt;=8.4CI passing

Since May 14Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/infocyph/Epicrypt)[ Packagist](https://packagist.org/packages/abmmhasan/safeguard)[ RSS](/packages/abmmhasan-safeguard/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (1)Dependencies (2)Versions (7)Used By (0)

Epicrypt
========

[](#epicrypt)

[![Security & Standards](https://github.com/infocyph/Epicrypt/actions/workflows/security-standards.yml/badge.svg)](https://github.com/infocyph/Epicrypt/actions/workflows/security-standards.yml)[![Documentation](https://camo.githubusercontent.com/0facea80b5c19d43699babeab533f67769ba3f947de2553af450eca2d140e4de/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f63756d656e746174696f6e2d45706963727970742d626c75653f6c6f676f3d72656164746865646f6373266c6f676f436f6c6f723d7768697465)](https://docs.infocyph.com/projects/Epicrypt/)[![Packagist Downloads](https://camo.githubusercontent.com/a93da019d6a91dd7fe264ae55e6f33120d69074e8bfd3d5ec04e8c694f9a4e91/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696e666f637970682f45706963727970743f636f6c6f723d677265656e266c696e6b3d68747470732533412532462532467061636b61676973742e6f72672532467061636b61676573253246696e666f637970682532464570696372797074)](https://camo.githubusercontent.com/a93da019d6a91dd7fe264ae55e6f33120d69074e8bfd3d5ec04e8c694f9a4e91/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696e666f637970682f45706963727970743f636f6c6f723d677265656e266c696e6b3d68747470732533412532462532467061636b61676973742e6f72672532467061636b61676573253246696e666f637970682532464570696372797074)[![License: MIT](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](https://opensource.org/licenses/MIT)[![Packagist Version](https://camo.githubusercontent.com/1e0c991f1f282616ddedeee69758fbb84f43731723b68a437b58d0d75650c140/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696e666f637970682f4570696372797074)](https://camo.githubusercontent.com/1e0c991f1f282616ddedeee69758fbb84f43731723b68a437b58d0d75650c140/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696e666f637970682f4570696372797074)[![Packagist PHP Version](https://camo.githubusercontent.com/13496fc05bafa0a08b4b22f62f4c4d27f424d5fdbaf730a8a853ad854e6a0af5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f696e666f637970682f45706963727970742f706870)](https://camo.githubusercontent.com/13496fc05bafa0a08b4b22f62f4c4d27f424d5fdbaf730a8a853ad854e6a0af5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f696e666f637970682f45706963727970742f706870)[![GitHub Code Size](https://camo.githubusercontent.com/3844873367e6b31e8c3e32937c258317fccc017dc404fd0158cc16f1f91d4cb9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f696e666f637970682f4570696372797074)](https://camo.githubusercontent.com/3844873367e6b31e8c3e32937c258317fccc017dc404fd0158cc16f1f91d4cb9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f696e666f637970682f4570696372797074)

Epicrypt is a capability-first PHP security toolkit.

It provides focused security building blocks for:

- Certificate / PKI / key exchange
- Crypto primitives
- Token security (JWT, payload, opaque)
- Password and secret protection
- Integrity verification
- Secure generation
- Data protection workflows
- Security utilities (signed URL, CSRF, reset/action tokens)

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

[](#installation)

```
composer require infocyph/epicrypt
```

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

[](#requirements)

- PHP `>=8.4`
- `ext-sodium`, `ext-openssl`, `ext-json`, `ext-mbstring`, `ext-hash`

Usage Examples
--------------

[](#usage-examples)

### Encrypt and decrypt a string

[](#encrypt-and-decrypt-a-string)

```
