The Best! How do I encrypt a byte array with leading zeros ?
Posted by Mike Pliam
on 04/05/2006 06:17pm
Great work, Martyn, as usual. This is the clearest and easiest to use of any of the numerous DES sources that I have tested.
One thing. I have tried to encrypt whole files and it doesnt work very well for a couple of reasons. 1) the files are too long (what is the size limit of total bytes?) and 2) it wont encrypt even short byte arrays with leading zeros.
How can I solve these problems.
Martyn, I am really impressed with the beautiful job you've done here. I did rewrite your code eliminating the templates in case I want to use it in a DLL. Also, I have had trouble integrating the single header file approach into a Windows MFC application. It seems to work much better if the files are split up into a *.h and *.cpp.
Thanks for making all of your work available. I still find your mcbEasyXML among the best.
Flattery will get you everywhere!
Posted by Fazer1000
on 04/06/2006 12:12pm
Do you have some sample code you were usign to encrypt a file/byte array?
It is definately possible to do this using this algorithm because I've written a utility which encrypts/decrypts files based on the hash of a password.