Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

CryptoImportPublicKeyInfo

Posted on 2000-05-09
2
Medium Priority
?
153 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
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 200 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
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.

885 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