PHPackages                             claudye/php-crypter - 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. claudye/php-crypter

ActiveLibrary[Security](/categories/security)

claudye/php-crypter
===================

Secure the data of your websites by encrypting them. They will be decrypted only in your applications with your secret key

v1.0(3y ago)7522MITPHPPHP &gt;=7.3 || 8.2

Since Sep 1Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Claudye/php-crypter)[ Packagist](https://packagist.org/packages/claudye/php-crypter)[ Docs](https://github.com/Claudye/php-crypter)[ RSS](/packages/claudye-php-crypter/feed)WikiDiscussions master Synced yesterday

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

PHP Crypter
===========

[](#php-crypter)

Secure the data of your websites by encrypting them. They will be decrypted only in your applications with your secret key

How to install ?
================

[](#how-to-install-)

With composer
-------------

[](#with-composer)

- Firstly you need composer
- Run the command `composer require claudye/php-crypter`

Clone or download from github
-----------------------------

[](#clone-or-download-from-github)

- Clone or download from [github](https://github.com/Claudye/php-crypter)
- Be sure you have [composer](https://getcomposer.org/) installed
- Goto the root of your project and open there a shell (terminal)
- Run `composer install`

Usage
=====

[](#usage)

When php crypter is successful installed, please import the Encryption class like :

`use PHPCrypter\Encryption\Encryption;`

- To encrypt a data, you use `Encryption::encrypt(string $text, string $algo_method="AES-128-CBC", string $token=null)`This method requires the data to be encrypted, other arguments are optional. It returns encrypted data that you can store or write somewhere for reuse
- To decrypt the encrypted information later you can use the method `Encryption::decrypt(string $data_encrypted)`This method will use the generated key for you to decrypt the data which was encrypted. This key must be secret

Example
=======

[](#example)

 ```

  use PHPCrypter\Encryption\Encryption;
  //You can define your key any where you want

  //define("ENC_TOKEN_PATH", "your/dir/example");

  require 'vendor/autoload.php';
  // Encrypt the text "The only limit of a developer is his imagination"
  $encrypt = Encryption::encrypt("The only limit of a developer is his imagination");

  //You store the encrypted data in a file or in a database, or any where you can reuse it
  //After you want to use it again on your site
  //Get your text: $encrypt and then decrypt it
  $decrypt = Encryption::decrypt($encrypt);

  //All right !

```

Change encryption key path!
===========================

[](#change-encryption-key-path)

It is possible to change the encryption key path (file or directory) where you want to store the secret key! It's a good idea to choose a very secure path All you have to do is define a constant called: `ENC_TOKEN_PATH` , in your project where our script can find it

Information
===========

[](#information)

The encryption method used by default is : AES-128-CBC [Find all the methods here](https://www.php.net/manual/fr/function.openssl-get-cipher-methods.php)

### Attention!

[](#attention)

**When your data is encrypted with a key, only this key can decrypt it, so be careful not to lose your keys or change your keys carelessly.**

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1401d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d7d8e8fcdd2c322c0ca54bc495bced6c7bf9b8a7296abfbae4e5ad0ae0834de9?d=identicon)[Claudy](/maintainers/Claudy)

---

Top Contributors

[![Claudye](https://avatars.githubusercontent.com/u/73280595?v=4)](https://github.com/Claudye "Claudye (5 commits)")

---

Tags

phpphp-cryptphp-encryption

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/claudye-php-crypter/health.svg)

```
[![Health](https://phpackages.com/badges/claudye-php-crypter/health.svg)](https://phpackages.com/packages/claudye-php-crypter)
```

###  Alternatives

[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k18.7M143](/packages/mews-purifier)[paragonie/ecc

PHP Elliptic Curve Cryptography library

24820.0k37](/packages/paragonie-ecc)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
