PHPackages                             alphasoft-fr/ascrypto-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. alphasoft-fr/ascrypto-php

ActiveLibrary[Security](/categories/security)

alphasoft-fr/ascrypto-php
=========================

ASCrypto is an encryption library that offers a secure solution for encrypting and decrypting data using only a password, eliminating the need for key management.

1.0.1(2y ago)098MITPHPPHP &gt;=7.4

Since Aug 6Pushed 2y ago1 watchersCompare

[ Source](https://github.com/alphasoft-fr/ascrypto-php)[ Packagist](https://packagist.org/packages/alphasoft-fr/ascrypto-php)[ RSS](/packages/alphasoft-fr-ascrypto-php/feed)WikiDiscussions main Synced 2w ago

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

ASCrypto
========

[](#ascrypto)

ASCrypto is a PHP encryption library providing a simple and secure solution for encrypting and decrypting data solely with a password. This library does not require additional key management.

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

[](#installation)

To install ASCrypto:

```
composer require alphasoft-fr/ascrypto-php
```

### Encryption

[](#encryption)

To encrypt data, use the `encrypt` method:

```
$plaintext = 'Text to encrypt';
$password = 'secure_password';

$crypto = new AsCrypto();
$ciphertext = $crypto->encrypt($plaintext, $password);
echo $ciphertext;
```

### Decryption

[](#decryption)

To decrypt data, use the `decrypt` method:

```
$ciphertext = 'Encrypted text to decrypt';
$password = 'secure_password';

$crypto = new AsCrypto();
$plaintext = $crypto->decrypt($ciphertext, $password);
echo $plaintext;
```

Security
--------

[](#security)

- **Cipher Method**: The default method is `aes-128-cbc`. Ensure that the method used meets your security requirements.
- **Key Management**: The library uses PBKDF2 to derive the encryption key from the password, avoiding the need for direct key management.

License
-------

[](#license)

This project is licensed under the [MIT License](https://opensource.org/licenses/MIT). See the [LICENSE](LICENSE) file for details.

---

ASCrypto
========

[](#ascrypto-1)

ASCrypto est une bibliothèque de cryptage en PHP offrant une solution simple et sécurisée pour chiffrer et déchiffrer des données uniquement avec un mot de passe. Cette bibliothèque ne nécessite pas de gestion de clés supplémentaires.

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

[](#installation-1)

Pour installer ASCrypto :

```
composer require alphasoft-fr/ascrypto-php
```

### Chiffrement

[](#chiffrement)

Pour chiffrer des données, utilisez la méthode `encrypt` :

```
$plaintext = 'Texte à chiffrer';
$password = 'mot_de_passe_securise';

$crypto = new AsCrypto();
$ciphertext = $crypto->encrypt($plaintext, $password);
echo $ciphertext;
```

### Déchiffrement

[](#déchiffrement)

Pour déchiffrer des données, utilisez la méthode `decrypt` :

```
$ciphertext = 'Texte chiffré à déchiffrer';
$password = 'mot_de_passe_securise';

$crypto = new AsCrypto();
$plaintext = $crypto->decrypt($ciphertext, $password);
echo $plaintext;
```

Sécurité
--------

[](#sécurité)

- **Méthode de Chiffrement** : La méthode par défaut est `aes-128-cbc`. Assurez-vous que la méthode utilisée est appropriée pour vos besoins de sécurité.
- **Gestion des Clés** : La bibliothèque utilise PBKDF2 pour dériver la clé de chiffrement à partir du mot de passe, évitant ainsi la nécessité de gérer des clés directement.

Licence
-------

[](#licence)

Ce projet est sous la licence [MIT](https://opensource.org/licenses/MIT). Voir le fichier [LICENSE](LICENSE) pour plus de détails.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 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

Every ~0 days

Total

2

Last Release

742d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/16d039ec08222c08df4ce84493c64510bd5ed36587656f21b4f55bb55fecb1b2?d=identicon)[alphasoft-fr](/maintainers/alphasoft-fr)

---

Top Contributors

[![alphasoft-fr](https://avatars.githubusercontent.com/u/97884492?v=4)](https://github.com/alphasoft-fr "alphasoft-fr (6 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/alphasoft-fr-ascrypto-php/health.svg)

```
[![Health](https://phpackages.com/badges/alphasoft-fr-ascrypto-php/health.svg)](https://phpackages.com/packages/alphasoft-fr-ascrypto-php)
```

###  Alternatives

[phpids/phpids

PHPIDS (PHP-Intrusion Detection System) is a simple to use, well structured, fast and state-of-the-art security layer for your PHP based web application

791150.0k2](/packages/phpids-phpids)[paragonie/ecc

PHP Elliptic Curve Cryptography library

25866.3k44](/packages/paragonie-ecc)[sansec/magento2-module-shield

15218.6k](/packages/sansec-magento2-module-shield)[nicobleiler/php-passphrase

Passphrase generator with Laravel integration, inspired by Bitwarden. Uses the EFF long word list by default with support for custom wordlists.

4912.6k](/packages/nicobleiler-php-passphrase)[dwgebler/encryption

Encryption wrapper for PHP using libsodium — simple API for symmetric and asymmetric encryption, password hashing, digital signing, and message authentication.

317.5k](/packages/dwgebler-encryption)

PHPackages © 2026

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