|
XOR Encryptor |
|
|
|
Almost all programmers must be aware of this encryption algorithm. Needless to say, this algorithm can easily be broken into. Nevertheless, I have tried to bring out a graphical version of the same using a two-tier architecture of VB and VC++. The front-end has been designed using VB 6.0 which basically contains a couple of text boxes and buttons. The back-end has been designed using VC++ (ATL COM) and the code can be built into a .dll file. A detailed procedure of the working is given here -
To begin with, create a new ATL COM wizard project in VC++. Follow the instructions of the wizard and do not ever forget to check on Support MFC check box. Click on Insert - New ATL object - Simple Object - and then give a suitable name. Go to class view, right click on the interface name you just gave and click on add method.
Give the method name as acceptfilepass and parameters as [in] BSTR sid, [in] BSTR did,[in] BSTR passwd Encryption function given here (enpt.cpp)-
The function is pretty simple and involves usual file operations of C. Add a reference to the project in VB and then design the controls and the project is done. For more info mail me at nshankar@angelfire.com |