MUpchu777
asked on
CryptoImportPublicKeyInfo
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?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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