Solved

rsa in Visual C++

Posted on 2000-04-19
4
346 Views
Last Modified: 2008-03-06
I want to make a program wich encrypts a string with the rsa algorithm. Now I have the problem that long int is to short. Is there a longer type for that? I can´t use double because mod doesn´t work with that.
0
Comment
Question by:Folko
[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
  • 2
4 Comments
 

Expert Comment

by:mathought
ID: 2732378
if __int64 does not do the work for you you must create a class that can handle really big integer numbers.
0
 

Author Comment

by:Folko
ID: 2738279
and how do i do this? can you give me an example?
0
 

Accepted Solution

by:
ewie2k earned 100 total points
ID: 2739857
Folko,

Creating such a class to handle big nums is not an easy task, especially to make it fast. SSLeay provides a good solution to that, it includes both bn.h (which is bignum library, non rsa specific) and rsa.h which is the simplest way to use rsa.

http://maga.di.unito.it/security/resources/mirrors/SSLeay/SSLeay090/index.html
0
 

Expert Comment

by:mathought
ID: 2740401
>> Creating such a class to handle big nums is not an easy task.

I couldn't agree more. But if it is that important then you have to make the effort.
I assume from your comment that __int64 is not good enough. This figures, 64 bit is strong but not the stronger there is.

Folko, I assume you don't need help with the RSA it self...
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
C++ Language error 28 314
How do I save this device context as a .bmp or a picture of some kind? 2 79
Why isn't object file created? 6 107
visual C++ 1 42
Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

738 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