Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何生成 StorageFile 中包含的文件的哈希(例如 md5)?我想将哈希值存储在数据库中并对其进行调查以避免重复文件。
您可以使用 HashAlgorithmProvider 类来计算哈希
http://msdn.microsoft.com/en-us/library/windows/apps/windows.security.cryptography.core.hashalgorithmprovider.aspx
看看这篇文章,这样你就不会因为大文件而 OOM
http://social.msdn.microsoft.com/Forums/en-US/winappswithcsharp/thread/e8e538b5-1d71-4ba3-b1df-b74ec8978443