Click here to Skip to main content
16,019,174 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, I am working on a project in which part of it, I have to do keystroke encryption to thwart keylogging.. I know it has to be done in low-level C, in which I have no experience.. Is there any help on what are the first steps to take please? Thanks!
Posted
Comments
CPallini 5-Mar-11 8:36am    
What do you mean with 'Keystroke encryption'? If you act at driver level (i.e. if you replace the keyboard driver) then, I suppose, all applications but yours would stop working.
luwlalina 5-Mar-11 8:39am    
I don't think I want to replace the keyboard driver, I actually want to modify it so that every keystroke ( not only for my application ), is sent encrypted to the current application. Thanks!
Richard MacCutchan 5-Mar-11 8:41am    
Have you considered how the receiving application would decrypt it?
luwlalina 5-Mar-11 8:42am    
I will use some encryption algorithm with its corresponding decryption algo.
Andrew Brock 5-Mar-11 21:52pm    
The point that they were making is how does the application know to decrypt it?
How are you going to inject your decryption algorithm into all the other running processes?
How are you going to not inject your decryption into the keyboard logger?

1 solution

I think, you can do it with a keyboard hook.
You may want to take a look at SetWindowsHookEx()[^] function for hook type WH_KEYBOARD_LL and also LowLevelKeyboardProc Callback Function[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900