tag:blogger.com,1999:blog-8855309457097909737.post6752533559596291427..comments2023-08-07T15:03:48.887+02:00Comments on Circles & Crosses blog archive: Why cripple the .NET RSA implementation?Håvardhttp://www.blogger.com/profile/11763332322633056464noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-8855309457097909737.post-7126328422583616002009-03-17T12:26:47.000+01:002009-03-17T12:26:47.000+01:00Hi Håvard,I very much agree, I'm a bit frustra...Hi Håvard,<br><br>I very much agree, I'm a bit frustrated by this aspect of the .net implementation myself. I'm working on a project that deals with ensuring the authenticity of information on ATM smart cards, which have sensitive data on them encrypted with a CA private key to ensure authenticity, so i need to be able to decrypt with the public key. Sign/verify just isn't what I need, since I'm not the one putting the data on the cards.<br><br>I've had a look at bouncycastle, but i found the library to be a bit hard to work with, due to the abundance of classes and the lack of documenation.<br><br>Could you pls provide a few lines of example code for decryption with a public key using bublycastle? TIA!Antonionoreply@blogger.comtag:blogger.com,1999:blog-8855309457097909737.post-86362689896647098922009-04-06T16:35:55.000+02:002009-04-06T16:35:55.000+02:00Hi Håvard,I ended up implementing RSA myself the s...Hi Håvard,<br><br>I ended up implementing RSA myself the same day I posted my question to you, but thanx anyway:) The implementation was trivial, RSA is explained well on wikipedia and the algorithm amounts to a single few-letter formula. All that's needed besides the formula is an implementation of BigInteger(to represent the encrypted text and the key), which I found on codeproject(a very good one i might add, by a chap called Chew Keong TAN - he's Danish apparently:))<br><br>Anyway, just wanted to say thanks for posting the "RSA using BouncyCastle" (now that I see the code it seems simple:)) even tho i didn't end up using it.Antonionoreply@blogger.comtag:blogger.com,1999:blog-8855309457097909737.post-19940646031465556572009-03-19T08:46:46.000+01:002009-03-19T08:46:46.000+01:00Hi Antonio. I wrote a quick post on using BouncyCa...Hi Antonio. I wrote a quick post on using BouncyCastle for RSA. Take a look at <a href="http://ox.no/posts/rsa-using-bouncycastle" rel="nofollow">RSA using BouncyCastle</a>. Hope it helps!Håvardhttp://ox.nonoreply@blogger.comtag:blogger.com,1999:blog-8855309457097909737.post-39508184104009754702008-12-20T04:23:37.000+01:002008-12-20T04:23:37.000+01:00I think because RSA private key encryption for a l...I think because RSA private key encryption for a longer string is very slow.Jingsong zhanghttp://www.ciphersign.comnoreply@blogger.comtag:blogger.com,1999:blog-8855309457097909737.post-3311957564556408762009-09-09T17:30:19.000+02:002009-09-09T17:30:19.000+02:00thank you for your post - I had exactly the same p...thank you for your post - I had exactly the same probleminnocent bystandernoreply@blogger.comtag:blogger.com,1999:blog-8855309457097909737.post-80989655611380006562009-12-15T06:06:17.000+01:002009-12-15T06:06:17.000+01:00I'm facing the same problem. Did not want to i...I'm facing the same problem. <br>Did not want to implement and maintain RSA in my code, and could not find an opensource alternative.<br><br>Lets see how Bouncy Castle works out!Abhinavnoreply@blogger.com