[英]How to find the path of the downloaded file from asp.net C# web application for checking the integrity of the downloaded file?
[英]Checking JSON file integrity
因此,基本上,我需要某種哈希技術來獲取JSON字符串唯一的密鑰,我可以檢查該密鑰以查看客戶端上緩存的JSON是否與服務器上存儲的JSON相同。 服務器將首先將該哈希發送給客戶端,並且僅當該哈希與從客戶端緩存生成的哈希不同時,客戶端才會再次從服務器請求整個JSON。
如果您要查找簡單的哈希,為什么不只使用MD5哈希呢? https://msdn.microsoft.com/zh-cn/library/system.security.cryptography.md5%28v=vs.110%29.aspx易於實現和使用的基本哈希。
如果您希望使用JS在客戶端上進行MD5哈希處理,則可能需要查看https://github.com/blueimp/JavaScript-MD5 (未經我測試,但我聽過好消息:)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.