Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Author thomstark

    (@thomstark)

    You know what. I *gulp* haven’t tested it yet.

    Plugin Author thomstark

    (@thomstark)

    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?

    Plugin Author thomstark

    (@thomstark)

    (You know what DOESN’T work in a fileaframe though… the durn flightbox.)

    Plugin Author thomstark

    (@thomstark)

    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.

    Plugin Author thomstark

    (@thomstark)

    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!

    Plugin Author thomstark

    (@thomstark)

    Try rolling back to 2.8.2. I changed encryption methods in 3.0.

    Plugin Author thomstark

    (@thomstark)

    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.

    Plugin Author thomstark

    (@thomstark)

    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.

    Plugin Author thomstark

    (@thomstark)

    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.

    Plugin Author thomstark

    (@thomstark)

    Never mind this comment.

    Plugin Author thomstark

    (@thomstark)

    Never mind above comment.

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Encryption vs. File-a-Frame’ is closed to new replies.