Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Well, you did not mention that the built-in class doesn't cover your need, so how about <a href="http://msdn.microsoft.com/en-us/library/system.security.cryptography.rsacryptoserviceprovider.aspx" rel="nofollow noreferrer"><strong>System.Security.Cryptography.RSACryptoServiceProvider</strong></a>?</p> <p>It has a large set qualified ways to asymmetrically encrypt/decrypt streams.</p> <p>There are several tutorial/guides to take you along the way:</p> <p><a href="http://www.codeproject.com/KB/security/RSACryptoPad.aspx" rel="nofollow noreferrer">http://www.codeproject.com/KB/security/RSACryptoPad.aspx</a></p> <p><a href="http://www.eggheadcafe.com/articles/20020630.asp" rel="nofollow noreferrer">http://www.eggheadcafe.com/articles/20020630.asp</a></p> <p>There are countless more to be found through <a href="http://www.google.se/search?q=.NET+RSACryptoServiceProvider" rel="nofollow noreferrer">Google</a>.</p> <p><strong>Update</strong>: About the length-restrictments, it's should not be any problems if you just implement the same buffer-algorithm on both sides, encryption and decryption.</p> <p><strong>Update2</strong>: Yes, my example was <strong>RSACryptoProvider</strong>, but you can use any class that derives from <a href="http://msdn.microsoft.com/en-us/library/system.security.cryptography.asymmetricalgorithm.aspx" rel="nofollow noreferrer"><strong>System.Security.Cryptography.AsymmetricAlgorithm</strong></a>, if you want a public/private key-solution. Or build your own... or maybe not :)</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload