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

x
?
Solved

rsa in Visual C++

Posted on 2000-04-19
4
Medium Priority
?
350 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 400 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
Suggested Courses

721 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