In Progress

RSA encryption between jQuery/JavaScript and C++

We need C/C++ code and compatible jQuery/JavaScript code that will work together to enable RSA-encrypted communication between a Microsoft C++ executable and a web client. The C/C++ code must compile under Visual Studio 2008, possibly using MFC but with no dependency on .NET. Our application will work as follows:

- JS sends an Ajax request to the EXE asking for an RSA public key.

- EXE creates a public/private key pair, remembers the private key, and returns the public key as the Ajax response.

- JS uses the returned public key to encrypt a password and sends the encrypted password to the EXE via a second Ajax request.

- EXE decrypts the password using its stored private key, then validates the password and returns VALID or INVALID to the JS.

We have no problem implementing the Ajax communication and having the EXE manage a map of stored keys and pending requests. But we haven't figured out how to write a matching pair of RSA routines in C/C++ and JavaScript that will work together. Specifically, we need:

1. C or C++ code that creates a public/private key pair for RSA.

2. JavaScript that uses the public key exactly as created by the C++ to encrypt a string.

3. C or C++ that decrypts the string sent by the JS using the corresponding private key that it created.

Obviously, the JS and C/C++ code have to work together. When the EXE decrypts the password using the private key it created, the result must match the original string that JS encrypted using the public key that the EXE sent it.

Best would be a simple C++ project and web page that interact this way - C++ creates keys, JS encrypts, C++ decrypts, and the result matches the original string.

Thanks,

-Steve

Skills: C Programming, Javascript, Web Security

See more: jquery rsa, rsa jquery, javascript rsa, jquery encryption, jquery rsa encryption javascript, jquery rsa encryption public key, javascript rsa encrypt, javascript encryption, the string problem, string matching problem, string matching in c, string in c programming, string c programming, pair programming, matching string, map string, map in c, c programming string, c map programming, best web studio, microsoft mfc, the c, string matching, rsa, programming c/c++

About the Employer:
( 4 reviews ) Newton, United States

Project ID: #5074750

Awarded to:

andreygalysh

Hi! I believe I have got something like what you try to get working. Here is my code: [url removed, login to view] I think it will be better to use microsoft CryptoAPI on server side an More

$300 USD in 3 days
(8 Reviews)
4.4

9 freelancers are bidding on average $641 for this job

mtech2009

hi, windows programming expert hear. one thing i need to clarify is , what is your JS host (ie where is your JS script runs ?) is it seperate process ( ex: browser hosted application ) or standard browser ? -mTe More

$1000 USD in 3 days
(18 Reviews)
5.6
JeffLee21

I have 8+ years of experience in C/C++/C#/Java programming. I have done similar project using cryptography before. I presume some issues. - Let me know the key length, calculating time will depend on it. If I can More

$600 USD in 7 days
(9 Reviews)
5.0
talbayrak

Hi, Let me complete this project in one day. Thank you. .

$750 USD in 1 day
(5 Reviews)
4.3
andyportmen

I think I can do this based on my previous experience on RSA encryption. I am not yet 100% sure though. Is JS part for a specific browser or general (you want it to work in all browsers)?

$666 USD in 10 days
(1 Review)
3.3
QubixDesigns

---------------------- LET DISCUSS------------------------------------------------------ ---------------------- LET DISCUSS---------------------------------------------------------------------------- LET DISCUSS------ More

$684 USD in 3 days
(0 Reviews)
0.0
alinaimi

Bir öneri henüz sağlanmadı

$666 USD in 2 days
(0 Reviews)
0.0
undertech

Hello I have extensive work experience on visual studio C++ application. So far I have understood you want C++ applcation whcih will communicate to browser through some communication. Then the C++ application will More

$750 USD in 3 days
(0 Reviews)
0.0
dhavalcengg

From your requirement, I found that you need a person who has experience both in VC++ MFC, and javascript. I have strong experience in MFC as well as in JavaScript. I am interested in this. PM me so we can talk More

$555 USD in 3 days
(0 Reviews)
0.0
CPPArchitect

Hello there, Hope you are well. Firstly,thanks for posting this project- and even more importantly, thanks for describing the REQUIREMENTS/What-you-want for this project so clearly and eloquently and word perfectly More

$480 USD in 3 days
(0 Reviews)
0.0