I need to create a private \ public key based on a string. (This line is the unique identifier of a specific machine generated at run time. The public key will be shared so that all users can send data to this computer.)
As far as I know, RSACryptoServiceProvider automatically generates a key pair. I need to generate the same pair every time I send the same line.
Any idea how to implement this in C #?
(added) I am not interested in creating a certificate and storing it locally, in this case it is not suitable (because if you create certification in two different os settings on the computer, the key keys will be different. I need the identifier of a specific machine and keypair Now I can generate an identifier, but I donβt know yet how to create a key database on it).
I would like to use RSA, however any asymmetric algorithm would be suitable.
simon source share