Coder Profile - Show off your skills, get a coder profile.
 
 
 
Basic Steganography
Security
Steganography is an indirect form of encryption which basically involves hiding messages in files, usually it mixes in with encryption on its own. http://www.coderprofile.com/source-code/389/bitmap-steganographer This shows a program I made to hide messages in a bitmap image file. It works because the first 54 bytes of a Bitmap File are the headers. Yet, the integer at the offset 10, (10-14), specifies where the bitmap colour data starts. So, if we modify the offset of the beggining of the bitmap colour data, we can hide messages between the headers and the raw data =] You can experiement with other file formats using the same principle, just remember that with Hex editing software it is easy to find raw data, encoding it usually does the trick to make it that bit more secure. View In Full
2 Comments 6.00 out of 10
Buffer Overflow Protection
Software Development
The above code is vunerable to Buffer Overflow in two locations Unfortunatly you see it now in lots of code. The program gets a file name and prints it to the screen. If the file name is given in the first arguement it copys that into the buffer and prints the buffer, if not it asks the user for it. Is the first vunerability. This does not take into account size of the buffer and which just write everything it gets into there. So if the user types in more than 100 charachters the buffer will overflow and the program may crash. strcpy also does not take into account the size of a buffer. The Following code is not vunerable to buffer overflow: [code] #include <stdio.h> #include <string.h> int main(int argc,char **argv){ char f View In Full
2 Comments 5.33 out of 10
Page 1 of 1
Andrew Carter (19)
United Kingdom, Berkshire
Uranium-239 has 1 fans
become a fan
» Applications
Articles Articles (2)
Source Codes Source Codes (3)
» About Me
About Me About Me
Portfolio Portfolio (2)
Friends Friends (15)
» Misc
Overview Overview
Send A Friend Invite
Send Message Send A Message
RSS Whole Profile Feed
 
 
Latest News About Coder Profile
Coder Profile Poll
Why do you get bored with programming?

Not enough time to do something productive
I run out of ideas
Too hard to show people my creations
Everything i do has too many errors, and it's too hard
I don't get bored!!!


please login to cast your vote
and see the results of this poll
Latest Coder Profile Changes
Coder Profile was last updated
3.48 Years Ago
Official Blog :: Make A Donation :: Credits :: Contact Me
Terms & Conditions :: Privacy Policy :: Documents :: Wallpapers
Version 1.46.00
Copyright © 2007 - 2012, Scott Thompson, All Rights Reserved