You know what. I *gulp* haven’t tested it yet.
Encryption is working fine for me in a fileaframe. Have you tried more than one file? Does encryption work on those same files when not using fileaframe?
(You know what DOESN’T work in a fileaframe though… the durn flightbox.)
Your server isn’t running php 5.6 yet is it? Cause they put stricter requirements on the mcrypt() function set in 5.6.
Thread Starter
uamv
(@uamv)
Nope. Running 5.4.24.
I thought I had encryption working before, but it appears to be broken now. I’ll have to do some more testing.
Try resetting your key. Delete it, save, and refresh the page.
Thread Starter
uamv
(@uamv)
No luck. Now that I’m poking around, I did indeed have it working earlier. Tried rolling back to 3.0 with no luck, either. Maybe something changed on my server. I’ll have to investigate later. Off for some ultimate!
Try rolling back to 2.8.2. I changed encryption methods in 3.0.
Let me know when you find something out ’cause I want to hold of on releasing 3.2 until I know whether I need to make a change to the encryption system.
Thread Starter
uamv
(@uamv)
Yes, encryption is working fine for my use cases with 2.8.3. It breaks beyond that. That’s all I’ve got at the moment. Let me know if I can assist in any other way.
If you could enable your debug log and hit the page with encryption running on 3.0 or later see if you get any errors or warnings. And/or add a small little plugin or in your functions.php, grab your key from your File Away config page and do this:
$key = PUTYOURKEYHERE;
$file = PUTAURLHERE;
$encrypted = urlencode(trim(base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $key, $file, MCRYPT_MODE_ECB, mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB), MCRYPT_RAND)))));
$decrypted = urldecode(trim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $key, base64_decode($encrypted), MCRYPT_MODE_ECB, mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB), MCRYPT_RAND))));
echo $encrypted.'<br>'.$decrypted;
See if you get any errors.
Edited, so grab it from here, not the email.
Thread Starter
uamv
(@uamv)
I’ll have to check my php install tomorrow. Encryption may have got disabled, because adding the above function stalls my site. Commenting out the middle lines loads fine. Very likely my issue.
Never mind above comment.