well it works fine when encrypting, its just decrypting that screws up. there is no reason for this that I can see because all you have to do is run the encrypted text through the DLL again and that should be it.