Possible to calculate MD5 (or other) hash with buffered reads?

后端 未结 5 1678
长情又很酷
长情又很酷 2020-11-27 03:37

I need to calculate checksums of quite large files (gigabytes). This can be accomplished using the following method:

    private byte[] calcHash(string file         


        
5条回答
  •  一向
    一向 (楼主)
    2020-11-27 04:05

    Seems you can to use TransformBlock / TransformFinalBlock, as shown in this sample: Displaying progress updates when hashing large files

提交回复
热议问题