How to implement RSA cryptography to vb.net ?

Sutrimo 21 Reputation points
2021-12-15T12:01:57.347+00:00

In advance forgive my bad english

I will make an application that will implement RSA cryptography with vb.net.

So, the flow of the application that I will make is, to protect an excel file, by implementing RSA cryptography.

The application algorithm is:

  1. Upload excel file
  2. Enter your username and password
  3. Then the file is encrypted, and the excel file will be an .encrypted file
  4. And if you want to restore a file that has been encrypted, it must be decrypted.

thank you, can you guys help me by giving references or something?
thank you very much for your time.

Developer technologies VB
0 comments No comments
{count} votes

Accepted answer
  1. Jiachen Li-MSFT 34,221 Reputation points Microsoft External Staff
    2021-12-16T02:59:26.437+00:00

    Hi @Sutrimo ,
    You can refer to the following document for RSA encryption.
    RSACryptoServiceProvider Class
    RSACng Class
    Here is some code that might be helpful.
    System.Security.Cryptography.Csp/tests
    System.Security.Cryptography.Cng/tests
    Best Regards.
    Jiachen Li

    ----------

    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Castorix31 90,521 Reputation points
    2021-12-15T12:19:06.42+00:00
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.