ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Decrypt with TIEDBBitmap
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

chouk

Algeria
28 Posts

Posted - Apr 25 2023 :  14:17:39  Show Profile  Reply
Hi,
I update a project by changing the ImageEnDBView to TIEDBBitmap, I store the images on disk, everything works fine.
When I use image encryption it works, but I can't decrypt them to display in Imageenview,
for example:

Load picture:
fDBBitmap.LoadImage();

Decrypt image:
Imageenview.Proc.Decrypt('Captiva',ieeaTEA2);

The image always remains encrypted.
I use PNG images.

Thank's for help.
Chouk

xequte

38610 Posts

Posted - Apr 25 2023 :  18:21:45  Show Profile  Reply
Hi Chouk

This works fine in my testing:

  fDBBitmap.LoadImage();
  Imageenview1.Proc.Decrypt('Captiva',ieeaTEA2);


Are you sure the password and/or encryption method is correct?

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

chouk

Algeria
28 Posts

Posted - Apr 26 2023 :  12:55:29  Show Profile  Reply
Hi,
I found the problem, I decrypted the image twice.
Is there a way to tell if an image is encrypted?
Regards
Chouk
Go to Top of Page

xequte

38610 Posts

Posted - Apr 26 2023 :  15:32:45  Show Profile  Reply
Hi

No, I'm afraid there is not. You could use meta-data to store its current status, e.g. TextKeys for PNG images:

http://www.imageen.com/help/TIOParams.PNG_TextKeys.html

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: