• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Cryptography

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic