• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CI3 Encrypt/Decrypt Images

#1
I have successfully encrypted and decrypted other file types on the fly so, i believe my code is correct but I can post it if you want to see it.

How do you encrypt/decrypt images? Must you Base64_encode before encrypting and base64_decode after decrypting? When I do I get: (top portion of the file only, I actually get alot more)

����JFIFxx��>CREATOR: gd-jpeg v1.0 (using IJG JPEG v80), default quality ��C    $.' ",#(7),01444'9=82<.342��C  2!!22222222222222222222222222222222222222222222222222����"�� ���}!1AQa"q2���#B��R��$3br� %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz��������������������������������������������������������������������������� ���w!1AQaq"2�B���� #3R�br� $4�%�

So, it looks like it decode/decrypts but I keep getting the It has an Error message when I add the header for image/jpg before echoing it out to the browser.

Any and All assistance appreciated.
Reply


Messages In This Thread
CI3 Encrypt/Decrypt Images - by nuke - 09-10-2019, 06:34 PM
RE: CI3 Encrypt/Decrypt Images - by InsiteFX - 09-11-2019, 02:41 AM
RE: CI3 Encrypt/Decrypt Images - by nuke - 09-11-2019, 11:20 AM
RE: CI3 Encrypt/Decrypt Images - by InsiteFX - 09-11-2019, 05:54 PM
RE: CI3 Encrypt/Decrypt Images - by nuke - 09-12-2019, 03:36 AM
RE: CI3 Encrypt/Decrypt Images - by InsiteFX - 09-12-2019, 08:08 AM
RE: CI3 Encrypt/Decrypt Images - by nuke - 09-12-2019, 08:15 AM
RE: CI3 Encrypt/Decrypt Images - by InsiteFX - 09-12-2019, 11:10 AM
RE: CI3 Encrypt/Decrypt Images - by nuke - 09-12-2019, 04:00 PM
RE: CI3 Encrypt/Decrypt Images - by nuke - 09-16-2019, 07:03 AM
RE: CI3 Encrypt/Decrypt Images - by InsiteFX - 09-16-2019, 08:21 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.