Thread: RSA generate key in C

  1. #1
    Registered User
    Join Date
    Apr 2012

    RSA generate key in C

    Hi all, as I need to generate RSA key by modulus and exponent. I have used the OPENSSL before, is it any other choice to do these operation? (NOT OPENSSL)

  2. #2
    Registered User
    Join Date
    Nov 2012
    It sounds like you want to implement the RSA key generation yourself. In that case, look up information about the algorithm and try to implement it.

    If you don't want to implement it yourself then you have no choice but to use a library, there are also alternatives to OpenSSL if you do some searching for them.

  3. #3
    Registered User dariyoosh's Avatar
    Join Date
    Nov 2012
    Iran / France
    There could be actually many possibilities, particularly as it was said, if you decide to implement your own key generator. As an example (among many other possibilities) you can use Java Authentication and Authorization Service (JAAS). Another solution could be python, it seems that there are libraries available for python. Are you looking for something strictly based on C/C++

    What's the problem you encountered with OpenSSL? it is one of the most ferequently used tools in this domain;


  4. #4
    Registered User
    Join Date
    Sep 2001
    If you want to implement it yourself (which, by the way, is something that cryptography experts will often warn you against doing), it's a very simple algorithm that is well-documented online. You can use the GMP library to work with large prime numbers - I've done this before and it's very simple.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Generate board
    By oleg174 in forum C Programming
    Replies: 1
    Last Post: 03-07-2010, 06:26 AM
  2. generate svg
    By stabu in forum C Programming
    Replies: 3
    Last Post: 02-25-2010, 12:42 PM
  3. Generate graphics?
    By arya6000 in forum C Programming
    Replies: 8
    Last Post: 06-14-2008, 10:19 AM
  4. what will compiler generate
    By rnx40401 in forum C++ Programming
    Replies: 3
    Last Post: 10-30-2007, 11:53 AM
  5. Generate Graphs
    By beet in forum C Programming
    Replies: 6
    Last Post: 08-19-2003, 07:14 PM