2017 © Pedro Peláez
 

library crypto

Easy encrypt and decrypt strings in PHP.

image

rafrsr/crypto

Easy encrypt and decrypt strings in PHP.

  • Wednesday, December 30, 2015
  • by rafrsr
  • Repository
  • 1 Watchers
  • 3 Stars
  • 6,958 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 7 % Grown

The README.md

Crypto

Build Status Coverage Status Latest Stable Version Latest Unstable Version Total Downloads License, (*1)

Easy encrypt and decrypt strings in PHP., (*2)

Features

  • Easy usage Crypto::build('secretKey')->encrypt('secret message')
  • Support most populars MCRYPT algorithms
  • Encryption verification through the method isEncrypted($data)
  • Prevent double encryption/decryption

Usage


use Rafrsr\Crypto\Crypto; $encryptor = Crypto::build('JH83UN177772JJASHGAGG38UABASDSD'); //$encryptor = Crypto::build('JH83UN177772JJASHGAGG38UABASDSD', MCRYPT_RIJNDAEL_128); //using specific algorithm $secret = $encryptor->encrypt('This is a secret message'); if ($encryptor->isEncrypted($secret)) { echo 'The messages is encrypted'; } $notSecret = $encryptor->decrypt($secret); if (!$encryptor->isEncrypted($notSecret)) { echo 'The message is not encrypted'; }

The Versions

30/12 2015

dev-master

9999999-dev

Easy encrypt and decrypt strings in PHP.

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-mcrypt *

 

The Development Requires

25/12 2015

2.0.1

2.0.1.0

Easy encrypt and decrypt strings in PHP.

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-mcrypt *

 

The Development Requires

25/12 2015

2.0.0

2.0.0.0

Easy encrypt and decrypt strings in PHP.

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-mcrypt *

 

The Development Requires

24/12 2015

1.0.0

1.0.0.0

Easy encrypt and decrypt strings in PHP.

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-mcrypt *

 

The Development Requires