0

I have wrote a java programme to download a file from FTP server. I need to check are there any corruptions after download the file. so i decided to check md5 of the file before and after download.

I need to know how can i generate the md5 hash of this file, before it downloading ?

Bishan
  • 15,211
  • 52
  • 164
  • 258

1 Answers1

2

calculating md5 can be possible only if you have file content with you so the easiest way to calculate md5 will be to get on the server (e.g. through SSH) calculate the md5 there and compare it with the md5 of the downloaded file.

Sar009
  • 2,166
  • 5
  • 29
  • 48