singpolyma / openpgp-php

OpenPGP.php is a pure-PHP implementation of the OpenPGP Message Format (RFC 4880).
http://singpolyma.github.io/openpgp-php/
The Unlicense
180 stars 70 forks source link

Bug decrypt #72

Closed hoangnguyengia closed 5 years ago

hoangnguyengia commented 6 years ago

[8192] Function mcrypt_decrypt() is deprecated (File: vendor/singpolyma/openpgp-php/lib/openpgp_mcrypt_wrapper.php Line: [28] Trace: )

singpolyma commented 6 years ago

[8192] Function mcrypt_decrypt() is deprecated (File: /tiki/www/tala/vendor/singpolyma/openpgp-php/lib/openpgp_mcrypt_wrapper.php Line: [28] Trace: )

In latest master, it will use OpenSSL if available before falling back to mcrypt. In either case, these are only used for CAST5 decryption. Also, even when deprecated the mcrypt version should still work (though it's removed in really, really new PHP)‎

hoangnguyengia commented 6 years ago

Hi @singpolyma , I used php 7.1, some method mcrypt_encrypt, mcrypt_module_get_algo_key_size at file vendor/singpolyma/openpgp-php/lib/openpgp_mcrypt_wrapper.php it will deprecate, you would upgrade it to new php version. Thanks

singpolyma commented 6 years ago

Hi @singpolyma ,I used php 7.1, some method mcrypt_encrypt, mcrypt_module_get_algo_key_size at file vendor/singpolyma/openpgp-php/lib/openpgp_mcrypt_wrapper.php it will deprecate, would you upgrade it to new php version.

Latest master will already use OpenSSL if available.‎