PHPackages                             testinaweb/dynamic-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. testinaweb/dynamic-crypto

ActiveLibrary[Security](/categories/security)

testinaweb/dynamic-crypto
=========================

A php library to encrypt and decrypt strings with dynamic keys

1.0.4(11y ago)2641MITPHPPHP &gt;=5.4.0

Since Mar 20Pushed 11y ago1 watchersCompare

[ Source](https://github.com/testinaweb/dynamic-crypto)[ Packagist](https://packagist.org/packages/testinaweb/dynamic-crypto)[ Docs](https://github.com/testinaweb/dynamic-crypto)[ RSS](/packages/testinaweb-dynamic-crypto/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (5)Used By (0)

Dynamic Crypto - Encrypter for PHP 5.4+
=======================================

[](#dynamic-crypto---encrypter-for-php-54)

[![Total Downloads](https://camo.githubusercontent.com/4b2027c15da726c1d9ee9f9a62f375c28faf6e2eb762ddad79d3062a4515caff/68747470733a2f2f706f7365722e707567782e6f72672f74657374696e617765622f64796e616d69632d63727970746f2f646f776e6c6f6164732e737667)](https://packagist.org/packages/testinaweb/dynamic-crypto)[![Latest Stable Version](https://camo.githubusercontent.com/290a88d1c8dc5a3a3a0837bbd7f5d6be156f1a40fde5903fe03bb7371fd40118/68747470733a2f2f706f7365722e707567782e6f72672f74657374696e617765622f64796e616d69632d63727970746f2f762f737461626c652e737667)](https://packagist.org/packages/testinaweb/dynamic-crypto)

A php library to encrypt and decrypt strings with dynamic keys. This was be implemented to guarantee a quite high security level.

The dynamic key is based on a substring of the hash of the passPhrase. The position of the first char of the key is saved in the end of the encrypted string to revert the encryption process. Because of the random substring, every encrypted string will be different from the previous one.

Install
-------

[](#install)

Before using Dynamic Crypto in your project, add it to your "composer.json" file:

```
{
    "require": {
        "testinaweb/dynamic-crypto": "1.0.*@dev"
    }
}

```

or run this command as a bash command:

```
./composer.phar require testinaweb/dynamic-crypto 1.0.*@dev

```

Usage
-----

[](#usage)

```
