Introducing the Biometric Tool for RSA algorithm (RSA Keys Generator)

The exchange of key pairs during the connection between systems using RSA algorithm is required. For systems in the same language this seems a bit easier than systems that use different languages ​​(eg .NET vs Java vs PHP vs …)

In the three guys above, perhaps the .NET guy I think is the simplest, simple way, no need to know much about this algorithm, search google one way is to understand immediately how to use and apply to the project .

However, most developers (dev) .NET when using this algorithm or problems when sending public key to partners.

The nature of the .NET code is simply to give birth to a key in the form of key XML format, then take all the effort to give it to the partner to use. Fortunately, the partner also uses .NET, but in reality it is not. Often we will meet the partner using Java / PHP or some open source school. As a result, its partner said: send it another format (PEM, DER, CER, …) because it cannot be used, and it also gives us a public key of the form .DER / CER / PEM , … at this time, Mr. dev .NET is likely to search for Google or to ask other people who have experienced this situation … (And maybe when reading this article, he was led to this article by Google – if So I'm happy?).

To generate the key pair used, you can use the openssl library, keytool (of java), … and many other tools. But I figured, if you code .NET, you will like the tool that I introduced below.

RSA Keys Generator

Introduce this tool:

  • This tool I build, based on my needs in the process of working, can generate the key of three popular formats: XML, PEM, DER to be used for both .NET, JAVA, PHP
  • This tool I use some source code on stackoverflow to output / output the desired format (PEM)
  • This tool I upload the source to github and you can get it to use freely. https://github.com/dicay/RsaKeysGenerator.NET
  • Simple code, easy to understand the nature of the various XML format / PEM / DER files and can code to handle the reading of PEM / DER files in .NET as well as XML in JAVA, PHP

rsagenkey-source

Wish you happy code, and look forward to receiving comments to improve the tool, the content of the blog.

ITZone via dicay

Share the news now