Home  >  Q&A  >  body text

socket - java 要如何根据下载地址URL获取其地址中文件的MD5值 代码要如何实现?

并且只获取MD5,不保存文件。

黄舟黄舟2720 days ago576

reply all(2)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-04-18 09:20:18

    I think you need to know the content to calculate the md5, just like the download website will give the md5 of the downloaded file, and then you can use a tool to calculate the md5 of the file after downloading and compare it with the md5 given by the website to see if the file has not been tampered with, java Also get the file calculation

    reply
    0
  • 黄舟

    黄舟2017-04-18 09:20:18

    It is best if the system where you download the address can tell you the MD5 value, otherwise you have to download it and calculate it yourself.

    reply
    0
  • Cancelreply