需要“System.Security.Cryptography”的源代码。命名空间 [英] Need a source code of the "System.Security.Cryptography" namespace

查看:65
本文介绍了需要“System.Security.Cryptography”的源代码。命名空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

找不到。它存储在我的电脑中的方式和位置?需要来源。请帮忙。



编辑:

为什么我需要这个来源:我已经从已建立的来源构建了一个AES 256加密项目,但是当我尝试使用WRONG密钥解密时,不会返回异常,但如果密钥错误,此库将返回NULL。

解决方案

源代码?事实并非如此。你只能获得标准安装的二进制文件,没有源代码。



但是,你应该可以在这里找到它: http://referencesource.microsoft.com/netframework.aspx [ ^ ]


它没有存储在您的PC上。



要么你可以在谷歌中搜索你想要的特定文件(例如,如果我想要控制源,我会搜索System.Windows.Forms.Control.cs),或者你可以从<下载Microsoft .NET源参考文献a href =http://referencesource.microsoft.com/>这里 [ ^ ]。



请注意,只有使用Internet Explorer下载,文件无法使用Chrome或FireFox正确下载。源代码也没有很好地布局,您可能需要下载多个框架才能找到所需的文件,而且它们的组织结构很差。


它是.NET Framework的一部分。您可以在Windows中找到在GAC中注册的所有相关类 - >装配文件夹。



如果您想知道源代码,可以下载并使用ILSpy - http ://ilspy.net/ [ ^ ]对DLL进行逆向工程

Can't find. How and where it stored in my PC? Need source. Please help.

EDIT:
Why I need THIS source: I have build from founded sources a project for AES 256 encryption, but is doesn't returns an Exception when I tried to decrypt with WRONG key, BUT this library returns NULL if key is wrong.

解决方案

Source code? It isn't. You only get the binaries with a standard installation, no source.

However, you should be able to find it here: http://referencesource.microsoft.com/netframework.aspx[^]


Its not stored on your PC.

Either you can search for the specific file you want in Google (for example, if I wanted the Control source, I'd search for System.Windows.Forms.Control.cs), or you can download the Microsoft .NET Source References from here[^].

Be aware though, only download with Internet Explorer, the files do not download correctly with Chrome or FireFox. The sources are also not laid out very well, you may have to download multiple frameworks to find the files you need and they are really poorly organized.


It's a part of .NET Framework. You can find all the related classes registered in GAC in Windows -> Assembly folder.

If you are curious to know the source code you can download and make use of ILSpy - http://ilspy.net/[^] to reverse engineer the DLL's


这篇关于需要“System.Security.Cryptography”的源代码。命名空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆