Home > Back-end >  Image encryption
Image encryption

Time:09-23

Now I'd like to but the picture is too big to encrypt images 10 MB decryption can have what kind of method is slow or algorithm can decrypt hurry
thank you

CodePudding user response:

Encryption algorithm is simple,

CodePudding user response:

Divided into several small images, in turn, according to decrypt time does not change fast, the user experience for many

CodePudding user response:

reference 1st floor lhylhy response:
simple encryption algorithm,
this I know but I don't know how to simple some

CodePudding user response:

refer to the second floor LXDDDXL response:
split into several small images, in turn, according to decrypt time does not change quickly, the user feel good many

Now don't want to let the feeling a lot better but improve the loading speed,

CodePudding user response:

reference asdweresewqss reply: 3/f
Quote: refer to 1st floor lhylhy response:

Encryption algorithm is simpler,
this I know but I don't know how to simple


Simplified algorithm based on your original algorithm to simplify, others also is bad to answer how to simplify,
Such as shortening the length of key
In short, reduced cycle times

CodePudding user response:

reference 4 floor asdweresewqss response:
Quote: refer to the second floor LXDDDXL response:

Divided into several small pictures, in turn, according to decrypt time does not change quickly, the user feel good many

Now not want feel a lot better but improve the loading speed,

Not all data encryption to decrypt, use JPEG compression and then you just to decrypt the former 1024 - byte encryption

CodePudding user response:

reference asdweresewqss reply: 3/f
Quote: refer to 1st floor lhylhy response:

Encryption algorithm is simpler,
this I know but I don't know how to simple

Choose a simple, different algorithms can estimate the complexity,

CodePudding user response:

Only 1 k or 2 k bytes before encrypted files, in writing

CodePudding user response:

If your pictures, only in the software implementation, don't care about whether other software can read,
The image file header can be changed by blank bytes, encrypted, so fast,

CodePudding user response:

references 9 f lyhoo163 response:
if your photos, only in the software implementation, don't care about whether other software can read,
Can modify the image file header byte, blank is encrypted, so fast,

Well just can own use, I try to write but not written, a great god can stick a a code

CodePudding user response:

refer to 6th floor LXDDDXL response:
Quote: refer to 4th floor asdweresewqss response:

Quote: refer to the second floor LXDDDXL response:

Divided into several small pictures, in turn, according to decrypt time does not change quickly, the user feel good many

Now not want feel a lot better but improve the loading speed,

Not all data encryption to decrypt, use JPEG compression and then only to decrypt the former 1024 - byte encryption can

Well, I try to write but I didn't write, a great god can stick a a code

CodePudding user response:

Image transfer into TBytes array
For TBytes behind the front of the array of N bytes N bytes encrypted processing
Then turn it back flow images

CodePudding user response:

The
refer to 12 floor aniugee reply:
image flow into TBytes array
For TBytes behind the front of the array of N bytes N bytes encrypted processing
Return to image flow

Now I found not decrypt problem
But a bit. The Assign (JPEGDecrypted); Questions I've jpeg to flow into BMP or image can't load in this sentence, could you tell me what's the solution

CodePudding user response:

Add pngimage controls give it a try

CodePudding user response:

reference 13 floor asdweresewqss reply:
Quote: refer to 12 floor aniugee reply:

Image transfer into TBytes array
For TBytes behind the front of the array of N bytes N bytes encrypted processing
Return to image flow

Now I found not decrypt problem
But a bit. The Assign (JPEGDecrypted); Question I gave flow into BMP or jpeg image can't load in this sentence, do you have any solution for


Who rules the image must be loaded TBitmap
USES jpeg.
 var 
NewGraphic: TGraphic;
The begin
NewGraphic:=TJPEGImage. Create;
Try
NewGraphic. LoadFromStream (... );
Except,
NewGraphic. Free;
Raise;
end;
APicture. Graphic:=NewGraphic;
NewGraphic. Free;
end;

CodePudding user response:

Excuse me have what image control load images quickly? I see Windows's own photo viewer is just I need to load 10 MB of images

CodePudding user response:

Study the structure, the partial encryption key bytes is ok,

CodePudding user response:

ImageEN
I have the same problem and the building, there is the encryption algorithm, the encrypted image for 3 m, largest speed is very fast, but haven't tried 10 m's pictures, I try to find a picture, if quickly sent to you!

I think the problem now is only your own software to view the decrypted image, cannot use other ways to view, hasn't found a good solution? The building Lord have a solution? discuss
  • Related