I was recently in a meeting where a person needed to generate a private andpublic key for RSA encryption, but they were using a PC (Windows). This is somethingthat is easily done via a terminal using ssh-keygen
on Mac and Linux, however on Windows…this tool is not easily accessible to the non-technical person.
Now, each user that does this has to send their public key to you or whoever is administrating the Git server (assuming you’re using an SSH server setup that requires public keys). All they have to do is copy the contents of the.pub file and email it. The public keys look something like this. Once keys are generated, we can use ToXmlString or ExportParameters method to read the keys. The ToXmlString method returns key information in XML as a string. The method takes a Boolean parameter. If passed false, it returns public key only. If passed true, it returns both private and public pair. The following code snippet returns a public key. A private key can always be used to generate its associated public key, but not vice versa. (A private key and its associated public key make up a key pair.) All your public keys are visible by everyone using the network. The private keys, however, should never be shared or given away. You must store your private keys in a wallet you trust.
It then occurred to me (and a head slapped followed), that I have fairly recentlypublished a library for Javascript RSA encryption which includes private andpublic key generation for RSA encryption. Not only that, but this is allavailable online.
So, if anyone needs an online RSA key generator, look no further than http://travistidwell.com/jsencrypt/demo.
This directly maps to the Open Source GitHub repository found at https://github.com/travist/jsencrypt, soanyone can modify this website to make it better. /generate-rsa-key-on-2960x.html.
And here is an iframe of the RSA key generation tool.