Click here to Skip to main content
Licence 
First Posted 18 Oct 2003
Views 41,288
Bookmarked 12 times

Cryptography with symmetric key using bitmaps

By | 18 Oct 2003 | Article
Cryptography with symmetric key using bitmaps

 

 Download sourcecode

This is an ideea of cryptography
  with symmetric keys, using bitmaps.

  The cryptography with symetric key works:
    You have a text in clear M and a key K, for code.
    Apply the key K to text in clear M and obtain
    a coded message C.
    Transfer coded message through a public line.
    At receiver apply key K to coded message C
    and obtain text in clear M.
    Nobody can decode coding messages C if he
    doesn't have key K.

  The key is a bitmap.
  The message in clear is a text file.
  The coded message is a bitmap.


How application works:
  An Ascii character is between 0 and 255.
  And a pixel in a bitmap is RGB(0:255,0:255,0:255)
  The basic ideea was to replace a component of a
    RGB element from a pixel (let's say blue) with ASCII
    character code. But in this case the photo
    is altered.
  So the ideea is to broke ascii character code into three
    parts. Example: 128 -> 1, 2, 8.
    First part (1) is added to a pixel, over red component.
    Second part (2) is added to the next pixel, over green component.
    Third part (8) is added to the pixel, over blue component.
  Using this method pixels are very little altered. 

  Limitations of application:
  1.Application works only with bitmap files.
  2.The text in clear file size must be smaller than
    the size of bitmap key file.
  3.Application is written in visual basic .net so you need
    to have installed .net framework (free download from microsoft site).

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

GINGISHAN2003

Web Developer

Romania Romania

Member

nothing

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
QuestionNeed Help PinmemberAfriadi10:54 29 Jul '06  
Generalknont PinmemberNavin Saxena23:45 15 Jul '04  
QuestionHow about creating a new bitmap PinmemberWillemM3:25 31 Dec '03  
GeneralSteganography PinmemberPsyDolphin0:16 20 Oct '03  
GeneralRe: Steganography Pinmemberrajfromindia15:07 1 Dec '04  
General.... PinmemberJonny Newman11:29 19 Oct '03  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web04 | 2.5.120517.1 | Last Updated 19 Oct 2003
Article Copyright 2003 by GINGISHAN2003
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid