PHPackages                             creative-world/crypto - 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. creative-world/crypto

ActiveLibrary[Security](/categories/security)

creative-world/crypto
=====================

A PHP package for cryptography management using the CryptoModel class.

1.0.0(1y ago)03MITPHPPHP ^8.1

Since Mar 19Pushed 1y ago1 watchersCompare

[ Source](https://github.com/LittleJ/creative-world-crypto)[ Packagist](https://packagist.org/packages/creative-world/crypto)[ Docs](https://github.com/creative-world/crypto)[ RSS](/packages/creative-world-crypto/feed)WikiDiscussions main Synced 1mo ago

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

Crypto
======

[](#crypto)

Overview
--------

[](#overview)

Crypto provides a robust and secure way to handle cryptographic operations in your PHP applications. It includes a `CryptoModel` class that offers methods for encryption, decryption, token generation, and password hashing. This package is designed to be easy to use while ensuring high security standards.

Features
--------

[](#features)

- **Encryption and Decryption**: Securely encrypt and decrypt data using industry-standard algorithms.
- **Token Generation**: Generate secure tokens for session management or API authentication.
- **Password Hashing**: Hash passwords securely and verify them with ease.
- **Custom Exception Handling**: Utilize the `CryptoException` class for handling cryptographic errors.

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

[](#installation)

You can install the package via Composer. Run the following command in your terminal:

```
composer require creative-world/crypto

```

Usage
-----

[](#usage)

### Basic Example

[](#basic-example)

```
use CreativeWorld\Crypto\CryptoModel;

$crypto = new CryptoModel();

// Encrypt data
$encryptedData = $crypto->encrypt('Sensitive Data', 'your-key');

// Decrypt data
$decryptedData = $crypto->decrypt($encryptedData, 'your-key');

// Generate a secure token
$token = $crypto->generateToken();

// Hash a password
$hashedPassword = $crypto->hashPassword('your-password');

// Verify a password
$isPasswordValid = $crypto->verifyPassword('your-password', $hashedPassword);
```

Testing
-------

[](#testing)

To run the tests for this package, ensure you have PHPUnit installed. You can run the tests using the following command:

```
vendor/bin/phpunit

```

License
-------

[](#license)

This package is licensed under the MIT License. See the LICENSE file for more details.

Contributing
------------

[](#contributing)

Contributions are welcome! Please submit a pull request or open an issue for any enhancements or bug fixes.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance45

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

Unknown

Total

1

Last Release

424d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/048909461e2d33a444586fefe951a3a31f0cfa07d2c536af8b3f2b277959ae95?d=identicon)[contact@littlej.fr](/maintainers/contact@littlej.fr)

---

Top Contributors

[![LittleJ](https://avatars.githubusercontent.com/u/45337552?v=4)](https://github.com/LittleJ "LittleJ (3 commits)")

---

Tags

securitycryptographyencryptioncrypto

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/creative-world-crypto/health.svg)

```
[![Health](https://phpackages.com/badges/creative-world-crypto/health.svg)](https://phpackages.com/packages/creative-world-crypto)
```

###  Alternatives

[phpseclib/phpseclib

PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.

5.6k434.8M1.3k](/packages/phpseclib-phpseclib)[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[ionux/phactor

Phactor is a high-performance PHP implementation of the elliptic curve math functions required to generate &amp; verify private/public (asymmetric) EC keypairs and ECDSA signatures based on secp256k1 curve parameters. This library also includes a class to generate Service Identification Numbers (SINs) based on the published Identity Protocol v1 spec.

5275.0k30](/packages/ionux-phactor)[asymmetricrypt/asymmetricrypt

A simple PHP public key cryptography library

114.1k](/packages/asymmetricrypt-asymmetricrypt)

PHPackages © 2026

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