• Stars
    star
    114
  • Rank 306,908 (Top 7 %)
  • Language
    C
  • License
    Apache License 2.0
  • Created almost 10 years ago
  • Updated almost 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Compute md5 value of file or string.

Compute-file-or-string-md5 - C

Compute md5 value of file or string.

Try the following:

$ gcc main_md5.c md5.c -Wall -o md5_test

$ ./md5_test

// you may get following:

[file - md5.c] md5 value:

2a2caf52cb298f177a57a3211213e141

[string - [email protected]] md5 value:

84701974fb98315895e3ed9053a0b389

// and you can check by md5sum

$ md5sum md5.c

2a2caf52cb298f177a57a3211213e141 md5.c

// Last: 16-digit md5 is the middle of 32-digit md5