|
Yes, I understand that. But the encryption method you use will depend on how secure you want this to be: there are many simple methods that use a key, but which aren't particularly complicated (or secure). It depends what you are planning on doing with the encrypted images how secure you need to get. And the more secure you go, the less likely it is that the encrypted data will be anything like the same size as the original image - which means more complexity, as you have to find a way to "hide" the size info for the original with the encrypted data.
And to be honest, if you want anything with reasonable security, you are doing the wrong thing entirely: encrypting the pixels is like waving a red rag to a bull - you are saying "there is something here I don't want you to look at" and that encourages many to think "Oh yeah? Well let's just see about that..."
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
What do you advise me to do to do something like this [^] but it should be secure ؟
|
|
|
|
|
As I said: "how secure?"
Why do you want to do this? That might help my understand how secure you need it.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Sorry but my English is not good enough
I want it for my project in college. I want a program to encrypt the image based on Chaotic MAP
I want it so safe that anyone who does not have the key can not see the picture. Without it the picture will remain like this [^]
I want it in any way I just want to have a key through which I can decrypt again
|
|
|
|
|
|
Yes my friend, that's what I mean
I have read it before and I have infertility information
But I want to implement this in a code in c #
|
|
|
|
|
Quote: I have infertility information Not at all sure what you mean by that ... I'd run it through Google translate to find out what you said if I was you...
Quote: I want to implement this in a code in c # Then get on and do it: this is your project and you are expected to code it yourself. You can't expect anyone here to do your project for you and let you hand it in as your own work, that wouldn't be fair at all!
Plus ... you do realize that your tutor knows this site exists, and will know if you did that? And fail you for the course?
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
i just went example how to do that
|
|
|
|
|
Does the encrypted result have to be another (valid) picture?
If no, then you can encrypt it like you would with any other file, as it is just another collection of bytes.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
yes i went the image be like this [^]
|
|
|
|
|
If you don't mind your key to be as large as the image itself, you could simply overlay a mask made of noise. Subtract the mask later on to retrieve the image again.
The "one time pad" encryption is explained on Wikipedia.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
no i went to encrypt the each pixel of the image to make the image look like this [^] and decrypt it again
|
|
|
|
|
Works the same way; you fetch a pixel, add a random number and translate that back to a color. For decrypting, subtract that same random number. Would mean that your "key" is as large as the image itself, which may be a bit of a downside.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
good now how i can do that in C#
can u gave me example for the code
or some open source Project
|
|
|
|
|
The explanation is on the wiki-page for the one time pad; I don't have sample code.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
As you know how the algorithm works now, why don't you write this yourself? What you need to know is, how to read an image, how to create a random number. The rest is just combining this.
This space for rent
|
|
|
|
|
|
I've always thought that SignalR does not support the transfer of binary data and although one can convert an image into a base64 string and send it, Websocket which SignalR uses, has a size limit of 64K. So every post online related to sending an image via SignalR says it cannot be done and that Web API should be used instead for that purpose.
Having said all that, I came across a Youtube video which shows a person uploading an image in one browser and then instantaneously displaying it in another browser. Can someone explain how this can be possible
|
|
|
|
|
Did the Youtube video explicitly state that they were using SignalR to accomplish this particular feature?
This space for rent
|
|
|
|
|
Hi Pete, yes the video description did say that SignalR was used but the video only shows the uploading and displaying of images but no code was shown. The name of the video is
Real Time Image Uploading No Coding - SignalR
|
|
|
|
|
It doesn't say what version of SignalR that person was using. The size limitation was introduced around about SignalR 2. You might be able to work around this by falling the connection back to HTTP Long Polling instead (you set that in the connection.start).
This space for rent
|
|
|
|
|
Liagapi wrote: Can someone explain how this can be possible
Magic.
Pixies.
Video editing.
Other.
Since we have no idea what video you are talking about - and it's not a good idea to post youtube links here - we are hardly likely to know exactly what they did. The best person to ask is the person who made the video - I'm pretty sure that YouTube lets you comment on videos at the bottom of the page...
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I have no idea what video you're talking about, but based on your description and SignalR limitations, there are TWO channels at work here.
The first is a normal upload of an image file by the browser to a web server, either through a web service, web api, POST, whatever. The server then sends a message to another SignalR client to tell it to download the image from the server using a specific URL.
The image is NOT transferred via SignalR, but the messaging the tell the clients that an image was updated is.
|
|
|
|
|
Hi all,
i want to implement a trackbar with range selection option please help me to do this.
thanks in advance.
|
|
|
|
|
Help you in what way? What class are you using for your track bar?
|
|
|
|