His code is a VERY old reference implementation. I was just checking it out on my Linux system, and it requires some work to function in my environment. There are links on Schneier's TwoFish web page to other implementations that may be better to try. There are also open source encryption tools that utilize twofish, though the ones I found are either Delphi or C# code bases. Here is a link to one I found on Schneier's twofish page that might work better for you: http://www.schneier.com/code/twofish-cpy.zip
Ok. With appropriate compiler platform symbol definition, I got it to run, but it still has an error in that the encrypt/decrypt operation miscompares. IE, the plaintext that is encrypted and then decrypted does not end up the same. I haven't gone further than that, but it could be a simple matter of how certain string characters are interpreted in MS operating systems vs. Linux/Unix systems. I don't know for sure at this point. Also, the twofish-cpy.zip file I pointed you to has a couple of python modules that have to run in order to built that version, and it doesn't work on my system. So, at this point I am going to get lunch...
okay.. i got the python modules to work. atleast i think so.. n the code is able to compile with no errors.. just a few warnings... but its giving me a segmentation fault when i'm running it. plz help me . i really need to get this to work
For Each ctrl As Control In Me.Controls("pnlMainPanel").Controls
If ctrl.GetType Is GetType(System.Windows.Forms.Panel) Then
For Each subCtrl As Control In ctrl.Controls
If subCtrl.GetType Is GetType(System.Windows.Forms.TextBox) Then
If subCtrl.GetType Is ...