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
Hi! I believe I have got something like what you try to get working. Here is my code: [login to view URL]
I think it will be better to use microsoft CryptoAPI on server side and some custom js lib on client. Because good key generation is essential.
you need to run rsa_sserver/DEbug/[login to view URL], then open in browser (tests with chrome) rsa_js/[login to view URL]
on the test page you need to press GetKey, and then pres Send (or you can edit text to send edit area)
$300 USD em 3 dias
5,0 (13 avaliações)
5,1
5,1
8 freelancers estão ofertando em média $646 USD for esse trabalho
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 ?
-mTech
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)?
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 create public/private key and so on.
The exact time and cost can be determined only after having a discussion on your requirement.
If you want I can send my resume.
Feel free contact me at +91-7439270962 and zahabshamsmuz at gmail
Regards
Zahab
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 about this more.
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 - very grateful for it and impressed!
I'm a professional(qualified and 15+ years industry experience working for large multi-nationals ) specialising in C++ based applications and systems engineering and architectures- mainly come from a MS WIndows background, but lately a lot of other embedded platforms and a good amount of web development too(low-level stuff) .
So I should be able to help you without much fuss. If interested, let me know and I will look in to JS's latest features in the context of encryption etc and will give you some clues on how to communicate between JS and a C++ based .EXE. (have done this at Teradyne DIagnostics in the context of motor cars and related diagnostics).
Anyway, let me know if you are keen on my services. CV/Resume attached to the PORTFOLIO section of this profile.
Cheers,
Dinesh