473,385 Members | 1,602 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Crypto API: encrypt with the private-key, then decrypt with the public-key

Hello experts, I have a peculiar problem.

Currently, my application generates an asymmetric key pair using the CryptGenKey function with the Algid parameter set to AT_KEYEXCHANGE. The application can then successfully encrypt using the public-key, and decrypt using the private-key.

However, my requirement for usage is to encrypt with the private-key, then decrypt with the public-key. If I'm correct, this should be a fairly common method for secure data sharing between a client and a host. The receiver usually only has the public key and not the private key; since in RSA, the public key can be generated with the private key; but not vice versa.

So, is my requirement possible with the CryptoAPI framework?

Cheers
Aug 24 '11 #1
0 1560

Sign in to post your reply or Sign up for a free account.

Similar topics

13
by: Andy Chau | last post by:
I try to use RSA to implement the following scheme but wasn't sucessful. Sever encrypt a message using a public key, the client decrpyt the message using a private key. I don't want the client...
2
by: Anilza Popat | last post by:
I would like to know how to encrypt and decrypt files using c#. I want a program that asks for password before encrypt or decrypt the file. best regards
8
by: Gidi | last post by:
Hi, Is there Buid-In fuction in C# that Encrypt and Decrypt strings? i have a textbox which i'm writing into file, and i want to encrypt it before writing, i'm not looking for something fancy,...
2
by: Greg R | last post by:
Where can I find a code example that will demonstrate the encryption and decryption of a string in C# I am familiar with "System.Security.Cryptography" encryption, but need a system that will both...
0
by: Randall Parker | last post by:
I'm just learning web security and so this might be a naive question: I'm looking here:...
0
by: vermarajeev | last post by:
Hi guys, I have written a function to encrypt and decrypt a file using crypto++. I have made use of crypto++ API's to do that. These API's take one input file(plain text) and outputfile(encrypted...
3
by: JDeats | last post by:
I have some .NET 1.1 code that utilizes this technique for encrypting and decrypting a file. http://support.microsoft.com/kb/307010 In .NET 2.0 this approach is not fully supported (a .NET 2.0...
2
by: vermarajeev | last post by:
Anyone here know how to use crypto++ library or anyone has used crypto++ library to encrypt or decrypt a file? Thanks
2
by: Dandirom | last post by:
Hi guys, I need help. I'd appreciate any pointers on how to go about with this problem. Thanks a lot. Using arrays and/or pointers, make a prog that will ask for a string. 2 user-defined...
4
by: kiranbabu | last post by:
Any one help me how to encrypt and decrypt passwords.And the password field is in database(mysql database) how to encrypt and decrypt that password saved in database.
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.