Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

URGENT: RSA clean source code in C

Posted on 2010-09-10
10
Medium Priority
?
493 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!

 
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
If you are a mobile app developer and especially develop hybrid mobile apps then these 4 mistakes you must avoid for hybrid app development to be the more genuine app developer.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Progress

664 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