RSA Algorithm

How do you write the RSA algorithm in c++

Page 1 of 1

4 Replies - 16629 Views - Last Post: 19 April 2009 - 10:55 AM Rate Topic: -----

#1 hititrich  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 19-April 09

RSA Algorithm

Posted 19 April 2009 - 09:28 AM

How do you write the RSA algorithm in c++

This post has been edited by hititrich: 19 April 2009 - 09:29 AM

Is This A Good Question/Topic? 0
  • +

Replies To: RSA Algorithm

#2 AndyH1963  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 22
  • View blog
  • Posts: 201
  • Joined: 22-June 08

Re: RSA Algorithm

Posted 19 April 2009 - 09:34 AM

I do al ot of security programming using numerous public algorithms. Take my advise and use a well known public library rather than re-write your own (which is bound to be riddled with errors). Public c++ libraries, and there a quite a few, have all been rigorously checked and most (you can never say all) of the bugs have been located and fixed, they will do the job very well for you.
Was This Post Helpful? 0
  • +
  • -

#3 hititrich  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 19-April 09

Re: RSA Algorithm

Posted 19 April 2009 - 09:58 AM

View PostAndyH1963, on 19 Apr, 2009 - 08:34 AM, said:

I do al ot of security programming using numerous public algorithms. Take my advise and use a well known public library rather than re-write your own (which is bound to be riddled with errors). Public c++ libraries, and there a quite a few, have all been rigorously checked and most (you can never say all) of the bugs have been located and fixed, they will do the job very well for you.

Thanx Andy. But what if it's my homework to write it myself? Is it possible to see the code in these libriaries? Or a sample of RSA code in C++ anywhrere?
Was This Post Helpful? 0
  • +
  • -

#4 AndyH1963  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 22
  • View blog
  • Posts: 201
  • Joined: 22-June 08

Re: RSA Algorithm

Posted 19 April 2009 - 10:47 AM

View Posthititrich, on 19 Apr, 2009 - 03:58 PM, said:

Thanx Andy. But what if it's my homework to write it myself? Is it possible to see the code in these libriaries? Or a sample of RSA code in C++ anywhrere?


I very much doubt that you have homework to write such code. Of course you can't see the code only the headers.

If YOU do need to write such code then you had better get yourself a good book on encryption and the mathematics involved. Believe me this is very complicated. If your "homework" does require this then you must be doing a Ph.D. in Computer Science and in which case you are most probably mathematically equipped to do this. I doubt you are quite frankly!!

If I were you I would check the question you are working on again.
Was This Post Helpful? 0
  • +
  • -

#5 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6064
  • View blog
  • Posts: 23,520
  • Joined: 23-August 08

Re: RSA Algorithm

Posted 19 April 2009 - 10:55 AM

There are source code examples of RSA encryption all over the net if you're capable to using a search engine like Google. How good they are is an exercise left up to the OP, but certainly there's OpenSSL.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1