Solved

CryptoImportPublicKeyInfo

Posted on 2000-05-09
2
151 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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

615 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