Click here to Skip to main content
15,868,016 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to write c++ real-time file encryptor? May be anybody has sources. Thanks!
Posted
Comments
Kuthuparakkal 6-Dec-12 11:37am    
Whats real-time file encryptor?
Thomas Daniels 6-Dec-12 11:48am    
It's on-the-fly encryption.
ThatsAlok 6-Dec-12 21:37pm    
is there any performance contraint.. since encrypting file is time consuming, based on different method

1 solution

Strange question.
Use CryptAPI the CryptEncrypt function and encrypt block by block.
Description of function:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa379924(v=vs.85).aspx[^]
Example of file encryption this example you can easy modify for adding data once it arrive:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa382358(v=vs.85).aspx[^]
Regards,
Maxim.
 
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