Save keys
After generating the keys, at
least the private key should be saved using the SaveKey or SaveKeyToString function. Otherwise you will not be able to
decrypt your data later in NO WAY. Please hold a few copies of your private keys. And
please always remember that. If you loose the private key, you loose all your encrypted
data. Public key can be created from the private key, but the private key can never be
reproduced.
Another aspect you should consider is security and a place
where to store keys. The ideal solution would be the following: only the public key should be stored in place where encryption is done (for example web server which accepts user data) .
This means that even if a hacker breaks into your server and get the file with the public
key he still won't be able to decrypt data.
|