Click here to Skip to main content
15,879,535 members
Articles / Programming Languages / Visual Basic
Article

Cryptography with symmetric key using bitmaps

Rate me:
Please Sign up or sign in to vote.
1.18/5 (13 votes)
18 Oct 20031 min read 51.6K   900   13   6
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


Written By
Web Developer
Romania Romania
nothing

Comments and Discussions

 
QuestionNeed Help Pin
Afriadi29-Jul-06 10:54
Afriadi29-Jul-06 10:54 
Can anyone or was made this program show me the algortihm, bcoz I need to learn more, please...?
Generalknont Pin
Member 121158515-Jul-04 23:45
Member 121158515-Jul-04 23:45 
QuestionHow about creating a new bitmap Pin
WillemM31-Dec-03 3:25
WillemM31-Dec-03 3:25 
GeneralSteganography Pin
PsyDolphin20-Oct-03 0:16
PsyDolphin20-Oct-03 0:16 
GeneralRe: Steganography Pin
rajfromindia1-Dec-04 15:07
rajfromindia1-Dec-04 15:07 
General.... Pin
Jon Newman19-Oct-03 11:29
Jon Newman19-Oct-03 11:29 

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

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