2010-09-25 57 views
5

MD5類沒有在System.Security.Cryptography中看到MD5類,但我看到SHA256。很明顯,我有可用的名稱空間。我沒有在MSDN上看到有關此Silverlight樣式.NET實現的任何說明。它移動了嗎?MD5類沒有在System.Security.Cryptography

回答

4

不,它不在Silverlight中。

看看Silverlight contents of the System.Security.Cryptography namespace

另一個線索是,當您查看MD5 class in MSDN並轉到「其他版本」下拉列表(至少在「明亮」呈現模式下;確切的檢查方式會有所不同)Silverlight不存在(而例如用於SHA256)。

不可否認,如果頁面底部的「支持版本」信息包含諸如Silverlight和Windows Phone 7之類的東西,那將是非常好的,但這些是一些替代方法。

如果你真的需要在你的Silverlight應用程序中使用MD5,你可以看看this implementation