Skip to content

Releases: noprotocol/php-mysql-aes-crypt

Now supporting php 7.4

02 Dec 14:45
c70c88c
Compare
Choose a tag to compare

The openssl_random_pseudo_bytes() function will now throw an exception in error situations, similar to random_bytes(). In particular, an Error is thrown if the number of requested bytes is less than or equal to zero, and an Exception is thrown if sufficient randomness cannot be gathered. The $crypto_strong output argument is guaranteed to always be TRUE if the function does not throw, so explicitly checking it is not necessary.

We don't have to get an $iv when $iv length equals zero.
This fixes support for php 7.4

Allow for different encryption methods

25 Jun 09:47
v2.0.1
15afcbf
Compare
Choose a tag to compare

Constructor now supports different encryption methods, for example:

<?php
$crypter = new Crypter('mykeystring', 'AES-256-ECB');

openssl crypt

18 Apr 10:07
79773e9
Compare
Choose a tag to compare

Now compatible with PHP 7.2

Thanks @renanmpimentel for porting from mcrypt to openssl

mcrypt

18 Apr 10:13
Compare
Choose a tag to compare

For php 7.0 and older