PHPackages                             karavasilev/cryptomanana - 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. [Framework](/categories/framework)
4. /
5. karavasilev/cryptomanana

ActiveLibrary[Framework](/categories/framework)

karavasilev/cryptomanana
========================

CryptoManana is a cryptography framework for boosting your project's security.

v1.1.2(2y ago)18692MITPHPPHP ^5.5 || ^7.0 || 8.0.\* || 8.1.\* || 8.2.\* || 8.3.\*

Since Jan 27Pushed 2y ago2 watchersCompare

[ Source](https://github.com/TonyKaravasilev/CryptoManana)[ Packagist](https://packagist.org/packages/karavasilev/cryptomanana)[ Docs](http://cryptomanana.karavasilev.eu)[ RSS](/packages/karavasilev-cryptomanana/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (2)Versions (55)Used By (0)

CryptoMañana Framework
======================

[](#cryptomañana-framework)

[![GitHub tag (latest SemVer)](https://camo.githubusercontent.com/eb0e6ce2cf0703d8ed8428862b28a1f45e09f023b9290ddc11989f899874225f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f746f6e796b617261766173696c65762f63727970746f6d616e616e612e7376673f636f6c6f723d626c7565266c6162656c3d737461626c65267374796c653d737175617265)](https://packagist.org/packages/karavasilev/cryptomanana)[![PHP from Packagist](https://camo.githubusercontent.com/967bdcaad876cd7fc4098f343a309d57c092602d79b3b17ed5070d50112325fa/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d352e352532302d2d253230382e332d626c75653f7374796c653d737175617265)](https://packagist.org/packages/karavasilev/cryptomanana)[![PHP from Packagist](https://camo.githubusercontent.com/08cc777dfd049cdfff6b47db08cd20482208db4228673662ba59e3a6ecf5c631/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253343253344253230382e332d626c75652e7376673f7374796c653d737175617265)](https://packagist.org/packages/karavasilev/cryptomanana)[![GitHub](https://camo.githubusercontent.com/18aea4e02003ab6be114d3c69de904c15f0988515523ba51625af16ea2b78a48/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f746f6e796b617261766173696c65762f63727970746f6d616e616e612e7376673f636f6c6f723d626c7565266c6162656c3d6c6963656e7365267374796c653d737175617265)](https://github.com/TonyKaravasilev/CryptoManana/blob/master/LICENSE)[![DOI](https://camo.githubusercontent.com/15bfc66ec08979e104d08b3437a10898847f4d40a0076be1bd31b002c79f9f6c/68747470733a2f2f7a656e6f646f2e6f72672f62616467652f444f492f31302e353238312f7a656e6f646f2e323630343639332e737667)](https://doi.org/10.5281/zenodo.2604693)
[![Build Status](https://camo.githubusercontent.com/583970124c6ec0ab0812e2c58609f0149ba8688478a9521f0035206db44885fb/68747470733a2f2f6170702e7472617669732d63692e636f6d2f546f6e794b617261766173696c65762f43727970746f4d616e616e612e7376673f6272616e63683d6d6173746572)](https://app.travis-ci.com/github/TonyKaravasilev/CryptoManana)[![Code Coverage](https://camo.githubusercontent.com/98de73046f757b5c1d54afce1a136c63031eb292bdbd2a9987df4e8b44d1b22f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f546f6e794b617261766173696c65762f43727970746f4d616e616e612f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/TonyKaravasilev/CryptoManana/?branch=master)[![PHPDoc Coverage](https://camo.githubusercontent.com/85db01ee195608192b93fc481e3babfb55766037c47c65b9337aaf0df1de639a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f504850446f632d3130302532302532352d737563636573732e7376673f7374796c653d666c6174)](http://cryptomanana.karavasilev.eu/api/)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/47a26b2470be070455b55a4b2c7706e6a65b263d04828ff7b4cf269db5b05853/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f546f6e794b617261766173696c65762f43727970746f4d616e616e612f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/TonyKaravasilev/CryptoManana/?branch=master)[![Donate](https://camo.githubusercontent.com/8c40766d099f964228666b366056a2d9b77fadacdf08e26ef02588ad37070cd2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d50617950616c2d537563636573732e7376673f7374796c653d666c6174266c6f676f3d70617970616c)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=BFKJXWRLFTFQA&currency_code=USD&source=url)
[![CryptoManana Framework Workflow](https://github.com/TonyKaravasilev/CryptoManana/actions/workflows/cryptomanana.yml/badge.svg?branch=master)](https://github.com/TonyKaravasilev/CryptoManana/actions/workflows/cryptomanana.yml)[![Website](https://camo.githubusercontent.com/228df954bce66c7c61521fff95dbcfaaa21d2e8e5d01303120b622ea10d5d0cd/68747470733a2f2f696d672e736869656c64732e696f2f776562736974653f646f776e5f636f6c6f723d72656426646f776e5f6d6573736167653d4f66666c696e65266c6162656c3d446f63756d656e746174696f6e2675705f6d6573736167653d4f6e6c696e652675726c3d687474707325334125324625324663727970746f6d616e616e612e6b617261766173696c65762e6575)](https://cryptomanana.karavasilev.eu?github=badge)[![Total Downloads](https://camo.githubusercontent.com/dc31f19ca7f8f8fec564c2e0a8f9a567c1a826ffc68f6fb773c7c8371bfadc26/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f546f6e794b617261766173696c65762f43727970746f4d616e616e612f746f74616c3f636f6c6f723d636f6c6f7572266c6162656c3d546f74616c253230446f776e6c6f616473)](https://github.com/TonyKaravasilev/CryptoManana)

 [![CryptoManana Logo](https://github.com/TonyKaravasilev/CryptoMananaDocs/raw/master/images/CryptoMananaLogo.jpg?raw=true)](http://cryptomanana.karavasilev.eu)

Project Description
-------------------

[](#project-description)

CryptoMañana (CryptoManana) is a PHP cryptography framework that provides object-oriented solutions for boosting your project's security. The code base of the project follows the S.O.L.I.D/KISS/DRY principles and implements a few popular Software Design Patterns. The software framework provides a fully functional cryptography model with a vast of cryptography primitives, protocols and services. It is very useful for secure hashing, encryption, key exchange, data signing, random data generation and even more. CryptoMañana is here to make your development faster and more secure!

**Developer: [Tony Karavasilev](https://www.linkedin.com/in/tony-karavasilev)**

Project Installation
--------------------

[](#project-installation)

```
# Install the package at your project via Composer
composer require karavasilev/cryptomanana

# Optionally, check if your system is well-configured
php vendor/karavasilev/cryptomanana/check.php

# Or: ./vendor/karavasilev/cryptomanana/check
```

Project Requirements
--------------------

[](#project-requirements)

- `PHP Version`: 5.5, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2 or 8.3;
- The `spl` extension (bundles with PHP &gt;= 5.0.0, added to core since PHP &gt;= 5.3.0);
- The `hash` extension (bundled with PHP &gt;= 5.1.2, added to core since PHP &gt;= 7.4.0);
- The `openssl` extension (added by default for PHP &gt;= 5.0.0, needs the OpenSSL Library);
- The `OpenSSL Library` installed by default with many Operating Systems and LAMP servers;
- The `Composer Dependency Manager` for PHP or manual autoloading via `src/autoload.php`;
- *Optional Extensions:* `libsodium` or`sodium`, `mbstring`, `zend-opcache` and `apcu`.

Project Documentation
---------------------

[](#project-documentation)

- [**Framework Manual and Documentation**](http://cryptomanana.karavasilev.eu/);
- [**Technical API Documentation**](http://cryptomanana.karavasilev.eu/api/);
- [**Agile Software Documentation**](http://cryptomanana.karavasilev.eu/testdox/).

Project Citation via DOI
------------------------

[](#project-citation-via-doi)

**The CryptoMañana Framework** - [DOI 10.5281/zenodo.2604693](https://doi.org/10.5281/zenodo.2604693) *(as a concept)*

Running The Tests Locally (OPTIONAL)
------------------------------------

[](#running-the-tests-locally-optional)

```
git clone --depth=1 https://github.com/TonyKaravasilev/CryptoManana.git
cd CryptoManana && composer install --profile
vendor/bin/phpunit --testdox --no-coverage
vendor/bin/phpcs
```

*Note: Do not forget to set the `sys_temp_dir` or `upload_tmp_dir` location at your php.ini configuration file.*

Enable 8-bit Unicode Transformation Format Support via 3rd Party Extension (OPTIONAL)
-------------------------------------------------------------------------------------

[](#enable-8-bit-unicode-transformation-format-support-via-3rd-party-extension-optional)

- Install and enable the `mbstring` PHP extension;
- Configure the encoding and enable CryptoManana to use it:

```
// Autoload packages via Composer class autoloader
require 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';

// Configure PHP internal encoding (default is `UTF-8` for PHP >= 5.6)
ini_set('default_charset', 'UTF-8');

// Configure `mbstring` to use your favourite UTF-8 encoding
mb_regex_encoding('UTF-8');
mb_internal_encoding('UTF-8');
mb_http_output('UTF-8');

// Enable the `mbstring` support for CryptoManana components
\CryptoManana\Core\StringBuilder::useMbString(true);

// Start coding hard...
```

*Note: The framework works without the extension and does not enable the usage of it by default for performance reasons.*

PHP Backward Compatibility (OPTIONAL)
-------------------------------------

[](#php-backward-compatibility-optional)

By default, the CryptoManana Framework provides compatibility for different older PHP versions (polyfill). You can disable the compatibility check (located at `src/compatibility.php`) via a constant definition. There are not a lot of reasons for disabling this, but you may want your own/others Polyfill logic, etc. The global constant must be defined before autoloading or before the first class usage (access), like:

```
define('CRYPTO_MANANA_COMPATIBILITY_OFF', true); // const CRYPTO_MANANA_COMPATIBILITY_OFF = 1;
```

*Note: In most cases you do NOT need to do this. The script is called only once per HTTP request (or CLI execution).*

Performance And Security Tips (OPTIONAL)
----------------------------------------

[](#performance-and-security-tips-optional)

- Always update your OpenSSL/Sodium Library to the latest version;
- Always update your Operating System and Kernel;
- Always update your PHP and used extensions;
- Always update your Composer dependencies;
- Separate the dependencies per environment;
- Backup vigorously and preferably often;
- Live by the least privilege principle;
- Never output system technical errors;
- Never expose your platform versioning;
- Never trust the users' input, it's evil;
- Never reuse keys, salts or nonce strings;
- Harvest the power of Zend OPcache/JIT;
- Use the Composer APCu optimization;
- Increase the resources for PHP;
- Increase the realpath cache.

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity89

Battle-tested with a long release history

 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 ~35 days

Recently: every ~106 days

Total

53

Last Release

817d ago

Major Versions

v0.9.0 → v1.0.0-alpha2020-02-17

PHP version history (7 changes)v0.0.1PHP ^5.5 || ^5.6 || ^7.0

v0.0.5PHP ^5.6 || ^7.0

v0.0.13PHP ^5.5 || ^7.0

v1.0.1PHP ^5.5 || ^7.0 || 8.0.\*

v1.0.2PHP ^5.5 || ^7.0 || 8.0.\* || 8.1.\*

v1.0.3PHP ^5.5 || ^7.0 || 8.0.\* || 8.1.\* || 8.2.\*

v1.1.2PHP ^5.5 || ^7.0 || 8.0.\* || 8.1.\* || 8.2.\* || 8.3.\*

### Community

Maintainers

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

---

Top Contributors

[![TonyKaravasilev](https://avatars.githubusercontent.com/u/45144688?v=4)](https://github.com/TonyKaravasilev "TonyKaravasilev (220 commits)")

---

Tags

asymmetric-cryptographyauthenticated-encryptionauthenticationcryptographycryptography-and-data-securitycryptography-modelcryptomananadigital-envelopedigital-signaturesencryptionhashingkey-exchange-protocolphpphp-frameworkphp7php8random-number-generatorssecuritysolid-principlessymmetric-key-cryptographypolyfillcsprngphpframeworkutf-8unicodesecuritycryptographyencryptionsigningrsaaestranslationAuthenticationencodingmultibytepasswordhashingPrivate Keypublic keypkcsserializationhashopensslciphermatrixasciirandom-numbersrandom-stringskeypaddingsecuredecodingtransformationCBCdigestMD5modulusPRNGrc4verificationhmacidentificationRijndaelprotectionpbkdf2php frameworkPHP Librarypkcs7digital-signatureMACrepresentationsodiumargon2Argon2ibcryptkeccaksha-3integritydecryptionchecksumfeistel-networkrotationreverseprime numbersdsasha1file-encryptionsaltkey pairkey-generation3desECBdivisionmultiplicationhkdfpowerderivationsha-256SHA-384SHA-512symmetric-encryptiontwo-way encryptionAES-256PKCS1Shiftencryption key128-bitctrCFBrandomnesswhirlpooladvanced encryption standardTDESIVsecret keyDSSAsymmetric encryptionDHokmcryptomananacrypto-mananarandom-generatorshashing-libraryencryption-librarykaravasilevcryptography-frameworkQRNGtrue-randomnesscomputer-randomnesssecure-randomnesscrypto-randomnesspseudo-randomnessquasi-randomnessArgon2idIKMstretchinggpu-resistantasic-resistanthardware-resistantparameterized-hashingdigest-verificationone-way-encryptionfile-hashingslow-hashingSHA-1SHA-2SHA-224timing-attack-safesubstitution-permutation-networkadvanced-encryptionencryption-standardsecret-key-encryptionsymmetric-ciphersblock-ciphersinitialization-vectorblock-operation-modeoperation-modeblock-modeblock-sizekey-sizeiv-sizeblock-paddingpadding-standardzero-byte-paddingzero-paddingsecure-padding160-bit192-bit224-bit256-bit384-bit512-bitzero-bytenull-bytenull-terminatorbyte-hashingtext-hashingobject-hashingbyte-encryptionbyte-decryptiontext-encryptiontext-decryptionfile-decryptionobject-encryptionobject-decryptionstring-format8-bit7-bitAES-128AES-192CamelliaCamellia-128Camellia-192Camellia-256OFBpublic-key-encryptionasymmetric-ciphersdecryption-keykey-importkey-exportdata-chunks1024-bit2048-bit3072-bit4096-bitcommon-divisorOAEPRSA-1024RSA-2048RSA-3072RSA-4096signature-standardRC4-128DSA-1024DSA-2048DSA-3072DSA-4096key-exchangeDiffie-HellmanRIPEMDRIPEMD-128RIPEMD-160RIPEMD-256RIPEMD-320Triple-DESthree-pass-deletionsecure-file-erasedata-destructiondata-deletiondata-clearingdata-erasuredata-wipingDOD-5220.22-Mcryptography-modelcryptography-hierarchycryptography-primitivescryptographic-protocolssecurity-models

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/karavasilev-cryptomanana/health.svg)

```
[![Health](https://phpackages.com/badges/karavasilev-cryptomanana/health.svg)](https://phpackages.com/packages/karavasilev-cryptomanana)
```

###  Alternatives

[poly-crypto/poly-crypto

High-level cryptographic functions that are interoperable between NodeJS and PHP 7.1+

127.8k1](/packages/poly-crypto-poly-crypto)[paragonie/halite

High-level cryptography interface powered by libsodium

1.2k9.4M63](/packages/paragonie-halite)[phpseclib/phpseclib

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

5.6k434.8M1.3k](/packages/phpseclib-phpseclib)[yiisoft/security

Security utilities

43451.3k6](/packages/yiisoft-security)[spomky-labs/pki-framework

A PHP framework for managing Public Key Infrastructures. It comprises X.509 public key certificates, attribute certificates, certification requests and certification path validation.

2725.9M11](/packages/spomky-labs-pki-framework)[vlucas/pikirasa

PKI public/private RSA key encryption using the OpenSSL extension

104101.1k1](/packages/vlucas-pikirasa)

PHPackages © 2026

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