Thread: Robust method for storing data outside of a program

  1. #16
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by dwks View Post
    BTW, how would you calculate checksums in C? What library would you use, if any?
    md5sum or sha1sum might be one solution. A crc32 is a bit easier to crack, but probably sufficient for "amateur" crackers. Other "hash" methods are available. See for example: http://en.wikipedia.org/wiki/Cryptog..._hash_function

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  2. #17
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    Crc was never meant to be used for security, only for message checksums with the purpose of message integrity. Protecting against Murphy, not Machiavelli.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #18
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by CornedBee View Post
    Crc was never meant to be used for security, only for message checksums with the purpose of message integrity. Protecting against Murphy, not Machiavelli.
    Sure, but for a simple checking that the content is "unmodified and in the correct order", it is useful - but I agree, it's pretty weak.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 19
    Last Post: 12-17-2007, 02:57 AM
  2. Linking data into program
    By Kennedy in forum C Programming
    Replies: 7
    Last Post: 04-25-2007, 12:02 PM
  3. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  4. Replies: 4
    Last Post: 06-14-2005, 05:45 AM
  5. Replies: 12
    Last Post: 06-03-2005, 01:13 AM