Solved

CryptoImportPublicKeyInfo

Posted on 2000-05-09
2
142 Views
Last Modified: 2010-04-02
I'm tyring to import a public key for encrypting a string.  The problem is this is the most neglected area as far as sample code.  My current code fails, but I'm not sure that my code is 100% accurate.  Anyone have any sample code with importing a public key?
0
Comment
Question by:MUpchu777
  • 2
2 Comments
 
LVL 6

Expert Comment

by:Talmash
Comment Utility
hi ,

I'll try 2 ways helping you :

1st of all : what code do you want to implement ? RSA , DES ??


1. I sent your ask to a friend working with public/private codes over all sort of systems your username , maybe he'll answer you .


2. try my suggestion :

2.1 read the file that include the desired code .
2.2 the code should be in a specific area/field at the file , so , the program could isolate the bits of the code from other headers/tails who-ever-knows that open/close the data-file which sent by other to you .
2.3 after you gave a parameter the value of the code for example :
      (n='100110011001000101011..'
2.4 you should do (for example RSA code)


(encrypted data)=[(word_data)^x mod n]

x=private key
n=public key

2.5 if its not RSA , replace 2.4 with the proper function .

2.6 for decoding , use cryptography books , or ask me .

Talmash
0
 
LVL 6

Accepted Solution

by:
Talmash earned 100 total points
Comment Utility
hi ,

I'll try 2 ways helping you :

1st of all : what code do you want to implement ? RSA , DES ??


1. I sent your ask to a friend working with public/private codes over all sort of systems your username , maybe he'll answer you .

2. try my suggestion :
2.1 read the file that include the desired code .
2.2 the code should be in a specific area/field at the file , so , the program could isolate the bits of the code from other headers/tails who-ever-knows that open/close the data-file which sent by other to you .
2.3 after you gave a parameter the value of the code for example :
       (n='100110011001000101011..'
2.4 you should do (for example RSA code)

(encrypted data)=[(word_data)^x mod n]
 x=private key
 n=public key
2.5 if its not RSA , replace 2.4 with the proper function .
2.6 for decoding , use cryptography books , or ask me .

                          Talmash
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
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 viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

743 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now