Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

URGENT: RSA clean source code in C

Posted on 2010-09-10
10
Medium Priority
?
495 Views
Last Modified: 2013-11-13
Hi,
I am looking for a clean source code of RSA written in C, without any libs or licenses attached. I checked most of the previous questions regarding this subject in EE but most of the provided links were broken, or they were prompting a licensed code.
Another important requirement is that the code will encrypt string or stream.
Thank you
0
Comment
Question by:nickge
  • 3
  • 3
  • 2
  • +1
10 Comments
 
LVL 3

Expert Comment

by:aledev
ID: 33645217
0
 
LVL 53

Expert Comment

by:Infinity08
ID: 33645237
Have a look at OpenSSL (http://www.openssl.org/) or libgcrypt (http://www.gnupg.org/). For C++, have a look at Crypto++ (http://www.cryptopp.com/).
0
 

Author Comment

by:nickge
ID: 33645360
aledev,
thank you for the prompt reply but the specific code can only have a key size of 32 bit and not 1024 bit in order to be secure. Moreover it's in C++ and the code quality is not good.

Infinity08,
I checked them, but I want something on its own and not as a part of a lib. Thank you
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 3

Accepted Solution

by:
aledev earned 1000 total points
ID: 33645508
0
 
LVL 53

Assisted Solution

by:Infinity08
Infinity08 earned 1000 total points
ID: 33645648
>> I checked them, but I want something on its own and not as a part of a lib.

May I ask why ?

When it comes to security, it's best to go with a tried and tested solution (like one of the libraries I suggested), rather than rolling your own, or copying some code that floats around on the internet, or has been given to you in some other way.
0
 

Author Comment

by:nickge
ID: 33646181
May I ask why ?

When it comes to security, it's best to go with a tried and tested solution (like one of the libraries I suggested), rather than rolling your own, or copying some code that floats around on the internet, or has been given to you in some other way.

You are absolute right but for the specific project i need it for I am not allowed to import any library
0
 

Author Comment

by:nickge
ID: 33646204
Anyway guys I think I am going to try and write the code by myself (although i do not know C). If i finally do it I ll post a link in order for others to find it. Thank you both for your time. Points will be split.
0
 
LVL 6

Expert Comment

by:xRalf
ID: 33646253
0
 
LVL 6

Expert Comment

by:xRalf
ID: 33646277
0
 
LVL 53

Expert Comment

by:Infinity08
ID: 33646765
>> You are absolute right but for the specific project i need it for I am not allowed to import any library

In that case, you can always look at the source code for those specific libraries, and get some inspiration from it, or simply copy the code you need (check the specific license, but usually that's allowed).
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
When you discover the power of the R programming language, you are going to wonder how you ever lived without it! Learn why the language merits a place in your programming arsenal.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question