I’m working in .net environment (all versions) and using vb.net. I want to generate RSA public and private keys based on a passphrase.
My understanding of RSA algorithm only limited by using a class provided by the .net ie System.Security.Cryptography.RSACryptoServiceProvider Class. I know how to generate random RSA public/private keys and perform encryption/decryption.
But that .net class don’t let us creating RSA public/private keys based on a passphrase.
Although I’m using vb.net, anyone with solutions in c#, c, c++ or any .net compatible language are welcomed to contribute as I can access the solution via p/invoke or dll reference.
Thanks in advance!
You won’t need RSA if you don’t need public key encryption.
Use symmetrical encryption with password-based key derivation function (e.g. AES with PBKDF2). It will be faster and more secure.