2017 © Pedro Peláez
 

library dynamic-crypto

A php library to encrypt and decrypt strings with dynamic keys

image

testinaweb/dynamic-crypto

A php library to encrypt and decrypt strings with dynamic keys

  • Monday, March 23, 2015
  • by testinaweb
  • Repository
  • 1 Watchers
  • 2 Stars
  • 38 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Dynamic Crypto - Encrypter for PHP 5.4+

Total Downloads Latest Stable Version, (*1)

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

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., (*3)

Install

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

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

or run this command as a bash command:, (*5)

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

Usage

<?php

use DynamicCrypto\DynamicCryptoFactory;

$passPhrase = 'ILoveDC';
$input = 'Your string here';

$dynamicEncrypt = DynamicCryptoFactory::buildDynamicEncrypter($passPhrase);
$dynamicDecrypt = DynamicCryptoFactory::buildDynamicDecrypter($passPhrase);

$encryptedString = $dynamicEncrypt->encrypt($input);
$decryptedString = $dynamicDecrypt->decrypt($encryptedString);

Author

Manuel Kanah - testinaweb@testinaweb.com - http://www.labna.it
Special thanks to Gabriele Giuranno - https://github.com/giordan83, (*6)

License

Dynamic Crypto is licensed under the MIT License, (*7)

The Versions

23/03 2015

dev-master

9999999-dev https://github.com/testinaweb/dynamic-crypto

A php library to encrypt and decrypt strings with dynamic keys

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

encrypt decrypt mcrypt encrypter decrypter

23/03 2015

1.0.4

1.0.4.0 https://github.com/testinaweb/dynamic-crypto

A php library to encrypt and decrypt strings with dynamic keys

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

encrypt decrypt mcrypt encrypter decrypter

21/03 2015

1.0.3

1.0.3.0 https://github.com/testinaweb/dynamic-crypto

A php library to encrypt and decrypt strings with dynamic keys

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

encrypt decrypt mcrypt encrypter decrypter

20/03 2015

1.0.2

1.0.2.0 https://github.com/testinaweb/dynamic-crypto

A php library to encrypt and decrypt strings with dynamic keys

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

encrypt decrypt mcrypt encrypter decrypter

20/03 2015

1.0.1

1.0.1.0 https://github.com/testinaweb/dynamic-crypto

A php library to encrypt and decrypt strings with dynamic keys

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

encrypt decrypt mcrypt encrypter decrypter