• Post Reply Bookmark Topic Watch Topic
  • New Topic

Cryptography

 
Selvadurai Shiva
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to convert a image into numerical format and send it in encrypted format to a destination and decrypt the same.Convert the numerical value of image to a image of required format selvadurai_shiva2002@yahoo.com
 
Jason Kingsley
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anything that is sent across the wire is, ultimately, a byte stream. Whether the original object was an image, a text file or sound clip is irrelevent.

The process you'll need to follow is:

1) convert image to a byte stream

This can be done in a variety of ways, from getting the image (in memory) bytes and using those, to reading the raw bytes from the storage medium.

2) encrypt bytes

This is a very well documented process with hundreds of tutorials all over the web on how to take a byte stream, an by using a cryptographic engine construct a stream of bytes that are, encrypted. Whether you use symmetric key cryptography or asymmetric public/private) key cryptography is up to you.

3) send bytes to the receiver

4) receiver reverses process


Its important to realise that this is analogous to using a comms stack and in fact, sits atop the standard layers because each distinct layer is essentially talking/communicating with its peer layer in the remote end, regardless that its actually sending data to its layers above and below it to facilitate the communications.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!