• 的Mentalis.org 安全的工具,图书馆被设计为一个附加的。净框架。 其目标是提供一些有用的密码工具尚不存在的。网2.0的框架。

    强名称的文件:强大的姓名的文件(或SNK文件),可以创造和使用微软的sn.exe 工具。 然而,有时候这是有用的,以创建这些文件手动代码,或使用钥匙在这些文件在你的代码。 使用StrongNameFile类,你可以做这些事情! 你可以初始化此类的实例,使用自己的RSA的参数,然后保存他们SNK文件,他们可以使用以符号代码的实例。 或者你可以打开一个现有的SNK文件,并进行初始化的一个新的RSACryptoServiceProvider实例,与公共/私人的密钥对中包含的SNK文件。

    私钥的文件:除了强烈的名称文件,私钥的文件(也称为局文件),也可以打开通过该图书馆。 该PrivateKeyFile类的可以打开一个局文件,并将其与相应的X509certificate,你有。 这种方式,x509证书该实例可以用来加密/验证和解/签署数据。

    RSA指数的一个键指数的一个键特别是RSA的钥匙,在这个意义上,输出缓冲器相匹配的输入缓冲区的任何RSA密或解密。 实际上,这意味着,如果产生一个关键的交换信息使用RSAPKCS1KeyExchangeFormatter实例,被初始化了这样一个特别关键,所得到的关键交换缓冲区将包括秘密的钥匙加密。 指数的一个键是非常有用的,当你在调试阶段的应用程序。 你可以使用这些按键而不是"正常"RSA的钥匙,整个系统保持工作的预期。 唯一的区别是"加密"数据是相同的加密数据的一个非常有用的功能进行调试的目的。

    自签署的证明:当你需要创建X509证书在运行时,可以使用的新X509CertificateGenerator创建自已签字的证书与参数。 你可以设定在公共/私人钥匙,主题名称,有效期并加入证书的扩展。 图书馆返回x509证书该实例,然后可使用或保存的磁盘。

  • के Mentalis.org सुरक्षा उपकरण लाइब्रेरी के साथ डिजाइन किया गया था होना करने के लिए एक ऐड-ऑन के लिए है । नेट ढाँचा । अपने लक्ष्य है प्रदान करने के लिए कुछ उपयोगी क्रिप्टोग्राफिक उपकरण है कि अभी तक अस्तित्व में नहीं के लिए .NET 2.0 फ्रेमवर्क.

    मजबूत फ़ाइलों का नाम: मजबूत नाम फ़ाइलें (या SNK फाइल) बनाया जा सकता है और Microsoft द्वारा उपयोग किया है sn.exe उपकरण । हालांकि, कभी कभी यह उपयोगी बनाने के लिए इन फ़ाइलों को मैन्युअल रूप से कोड, या का उपयोग करने के लिए कुंजी इन फ़ाइलों में अपने कोड में. का उपयोग कर StrongNameFile वर्ग, आप ये बातें कर सकते हैं! आप प्रारंभ कर सकते हैं मामलों के इस वर्ग का उपयोग कर अपने स्वयं के आरएसए मानकों, और फिर उन्हें बचाने के लिए SNK फाइल कर सकते हैं जहाँ वे होना करने के लिए इस्तेमाल किया हस्ताक्षर कोड के उदाहरण के लिए. या आप खोल सकते हैं एक मौजूदा SNK फाइल, और प्रारंभ एक नई RSACryptoServiceProvider उदाहरण के साथ सार्वजनिक/निजी कुंजी युग्म में निहित SNK फाइल है.

    निजी कुंजी फ़ाइलें: अलग से मजबूत नाम फ़ाइलें, निजी कुंजी फ़ाइलें (भी बुलाया PVK फाइल) द्वारा भी खोला जा सकता करने के लिए । के PrivateKeyFile वर्ग खोल सकते हैं एक PVK फाइल और सहयोगी के साथ इसी एक्स 509 प्रमाण पत्र है कि आप है. इस तरह, X509Certificate उदाहरण इस्तेमाल किया जा सकता है/एन्क्रिप्ट करने के लिए सत्यापित करें और डिक्रिप्ट/साइन डेटा.

    आरएसए प्रतिपादक-के-एक कुंजी: प्रतिपादक-के-एक कुंजी विशेष कर रहे हैं आरएसए कुंजी है कि समझ में आउटपुट बफ़र मैचों इनपुट बफर के लिए किसी भी आरएसए एन्क्रिप्शन या डिक्रिप्शन. व्यावहारिक रूप से, इसका मतलब यह है कि यदि आप एक कुंजी उत्पन्न-विनिमय संदेश का उपयोग कर एक RSAPKCS1KeyExchangeFormatter उदाहरण था कि प्रारंभ के साथ इस तरह के एक विशेष कुंजी है, जिसके परिणामस्वरूप कुंजी विनिमय बफर में शामिल होंगे गुप्त कुंजी एन्क्रिप्ट किया गया है. प्रतिपादक-के-एक चाबी बहुत उपयोगी होते हैं जब आप कर रहे हैं में डिबगिंग चरण के अपने आवेदन. आप कर सकते हैं इन कुंजियों का उपयोग करें के बजाय 'सामान्य' आरएसए कुंजी है, और पूरे सिस्टम काम कर रखता है के रूप में की उम्मीद है. फर्क सिर्फ इतना है कि 'एन्क्रिप्टेड' डेटा के रूप में ही है अनएन्क्रिप्टेड डेटा - एक बहुत ही उपयोगी सुविधा प्रयोजनों के डिबगिंग के लिए.

    स्व-हस्ताक्षरित प्रमाण पत्र: जब आप की जरूरत है बनाने के लिए एक्स 509 प्रमाण पत्र के क्रम में, आप उपयोग कर सकते हैं नए X509CertificateGenerator बनाता है कि स्व-हस्ताक्षरित प्रमाण पत्र के साथ पैरामीटर है कि आप निर्दिष्ट करें । आप सेट कर सकते हैं सार्वजनिक/निजी कुंजी के साथ, विषय का नाम, वैधता अवधि और जोड़ने प्रमाणपत्र एक्सटेंशन. पुस्तकालय रिटर्न एक X509Certificate उदाहरण है कि इस्तेमाल किया जा सकता या डिस्क को बचाया है ।

  • The Mentalis.org Security Tools library was designed to be an add-on for the .NET framework. Its goal is to provide some useful cryptographic tools that do not yet exist for the .NET 2.0 Framework.

    Strong Name Files: Strong Name files (or SNK files) can be created and used by Microsoft's sn.exe tool. However, sometimes it's useful to create these files manually from code, or to use the keys in these files in your code. Using the StrongNameFile class, you can do these things! You can initialize instances of this class using your own RSA parameters, and then save them to SNK files where they can be used to sign code for instance. Or you can open an existing SNK file, and initialize a new RSACryptoServiceProvider instance with the public/private key pair contained in the SNK file.

    Private Key Files: Apart from Strong Name files, Private Key files (also called PVK files) can also be opened by this library. The PrivateKeyFile class can open a PVK file and associate it with the corresponding X509 certificate that you have. This way, the X509Certificate instance can be used to encrypt/verify and decrypt/sign data.

    RSA Exponent-of-one Keys: Exponent-of-one keys are special RSA keys, in the sense that the output buffer matches the input buffer for any RSA encryption or decryption. Practically, this means that if you generate a key-exchange message using an RSAPKCS1KeyExchangeFormatter instance that was initialized with such a special key, the resulting key exchange buffer will include the secret key unencrypted. Exponent-of-one keys are very useful when you're in the debugging stage of your application. You can use these keys instead of 'normal' RSA keys, and the entire system keeps working as expected. The only difference is that the 'encrypted' data is the same as the unencrypted data - a very useful feature for debugging purposes.

    Self-signed certificates: When you need to create X509 certificates at runtime, you can use the new X509CertificateGenerator that creates self-signed certificates with the parameters that you specify. You can set the public/private key, the subject name, the validity period and add certificate extensions. The library returns an X509Certificate instance that can then be used or saved to disk.