I use this with the aes compatibility module and backup and migrate module with library (status page OKs it) and key installed. When making an AES encrypted backup I get this error.

CommentFileSizeAuthor
#2 2859510-2.patch899 bytesrlhawk
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ñull created an issue. See original summary.

rlhawk’s picture

Status: Active » Needs review
FileSize
899 bytes

The module is trying to throw an exception from the PHP Encryption library, but the cause of the exception is that the PHP Encryption library isn't available. Here's a patch that changes the exception to a generic PHP Exception.

ñull’s picture

Yes, now it says:

Exception: PHP-encryption library is not available. in aes_encrypt() (line 46 of /var/www/sites/all/modules/real_aes/aes/aes.module).

I downloaded version 1.2.1 from github in a tar.gz file and installed its file tree in sites/all/libraries/php-encryption. Status page confirms that it is installed. So what am I doing wrong?

I tried different versions. The one referred to in README, this version 1.2.1 as referred to in one of the issues, and https://www.drupal.org/node/2727047#comment-11209741 I read that from 7.x-1.2 on version 2 should be compatible, so I tried 2.0.3 and now 2.0.0. All give the same error.

rlhawk’s picture

Status: Needs review » Reviewed & tested by the community

The PHP Encryption library that you need to use is not tagged. It is a very specific download, as mentioned in the Real AES documentation. Unfortunate, but that's how it is.

  • rlhawk committed daef339 on 7.x-1.x
    Issue #2859510 by rlhawk: Fatal error: Class 'Defuse\Crypto\Exception\...
rlhawk’s picture

Status: Reviewed & tested by the community » Fixed

Since the exception that gets thrown is now correct, I'm going to mark this issue as fixed. If you continue to have trouble, create a new support request issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.