-5

I need to find duplicate files in directory but don't know how to get md5sum for file..

How to get MD5 hash for file by its path in C++ ?

OlivierLi
  • 2,798
  • 1
  • 23
  • 30
user3308092
  • 1
  • 1
  • 1
  • OpenSSL contains components for hashing data bytes: https://www.openssl.org/docs/crypto/md5.html – Alex Reynolds Feb 14 '14 at 00:33
  • Start by [searching](https://www.google.com/search?q=c%2B%2B+md5+hash&oq=c%2B%2B+md&aqs=chrome.2.69i57j0l5.5593j0j7&sourceid=chrome&espv=210&es_sm=93&ie=UTF-8)? – crashmstr Feb 14 '14 at 02:00

1 Answers1

1

The md5sum tool come from coreutils use md5_stream() from Gnulib to compute the MD5 sum of a file, here is the source of md5_stream().

Lee Duhem
  • 14,695
  • 3
  • 29
  • 47