Robust method for storing data outside of a program

This is a discussion on Robust method for storing data outside of a program within the C++ Programming forums, part of the General Programming Boards category; Originally Posted by dwks BTW, how would you calculate checksums in C? What library would you use, if any? md5sum ...

  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,893
    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.

Page 2 of 2 FirstFirst 12
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, 01:02 PM
  3. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 07:39 AM
  4. Replies: 4
    Last Post: 06-14-2005, 06:45 AM
  5. Replies: 12
    Last Post: 06-03-2005, 02:13 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21