Thread: help me to use md5sum, thanks

  1. #1
    Registered User
    Join Date
    Nov 2005

    help me to use md5sum, thanks

    I want to use md5sum in my program. I found we can use md5sum in the command line in Linux, so do we can use the md5sum function call in the program. I want to find the md5sum source code in the Linux, but the one I found seems not the correct one. Does anybody know which file we need to include into the program in order to use the md5sum function, and which function we need to call, or where the source code about md5sum located? I found the coreutils md5sum.c in the linux and wanted to use it, but I don't know which file I need to include in the header of my program. Please help me, thanks.

  2. #2
    Super Moderator
    Join Date
    Sep 2001
    Moved to Linux Programming

  3. #3
    Registered User
    Join Date
    Sep 2004
    the md5sum program is part of the gnu coreutils package. Here is the project page and you can get the source from there. IIRC, the md5 algorithim is actually described in one of the RFCs
    If any part of my post is incorrect, please correct me.

    This post is not guarantied to be correct, and is not to be taken as a matter of fact, but of opinion or a guess, unless otherwise noted.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 32 bit v.s. 64 bit
    By xddxogm3 in forum Tech Board
    Replies: 4
    Last Post: 01-14-2005, 09:58 AM
  2. Which ISOs To Download?
    By Rouss in forum Tech Board
    Replies: 8
    Last Post: 04-30-2004, 08:02 PM
  3. md5sum via function call
    By Lynux-Penguin in forum Linux Programming
    Replies: 1
    Last Post: 10-25-2003, 12:12 AM
  4. trying to install linux
    By task in forum Linux Programming
    Replies: 19
    Last Post: 10-28-2002, 09:42 AM
  5. Store command output into a variable.
    By Kevin.j in forum C Programming
    Replies: 7
    Last Post: 09-29-2002, 11:44 AM