Solved

CryptoImportPublicKeyInfo

Posted on 2000-05-09
2
150 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
[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
2 Comments
 
LVL 6

Expert Comment

by:Talmash
ID: 2799931
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
ID: 2799945
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

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

Suggested Solutions

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
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 user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
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.

739 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