| View previous topic :: View next topic |
| Author |
Message |
worsel Newbie
Joined: 12 Nov 2004 Posts: 2
|
Posted: Fri Nov 12, 2004 7:06 pm Post subject: vdscrypt.dll and blowfish.dll |
|
|
I'm trying to convert an old program from VDS 3.5 to VDS 5.02 and have run into an issue with using vdscrypt.dll to replace blowfish.dll. Using vdscrypt to decrypt a file encrypted with the blowfish.dll works bueatifully exept that the first 8 characters are not correctly decrypted. The exact characters 'returned' seems to depend on the value of the initiallization vector. I was wondering if anyone had stumbled across the 'correct' initiallization vector to use to comrrectly decrypt blowfish.dll encrypted files.
TIA
Worsel |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1566
|
Posted: Mon Nov 15, 2004 4:00 pm Post subject: |
|
|
Hello,
The original blowfish dll was written by Pablo; he later gave me the files and I made some updates to them. I really do not remember the initialization vector that was used. It also would not be possible to use the new vdscrypt or blowfish dll's to decrypt older files. The newer dll's also use MIME encoding/decoding after any encryption or decryption occurs. Also the older dll's in fact were not using standard encryption methods for blowfish thus there was 0 compatibility between what was outputted from the dll and other programs which also could use blowfish encryption; the new dlls now work with such programs (provided those programs can use base 64 mime too - php crypt functions can).
Process when encrypting now:
string > encrypted > mime encoded
Process when decrypting now:
encrypted string > mime decoded > decrypted > string
Previously with the older dll's it only did a decryption and encryption with no mime at all. Mime was added so the strings are compaible with online encryption (specifically php's crypt functions).
The only way really to get your app to work with the new dll is by also including the older version of the dll for backwards compatibility with older encrypted files. |
|
| Back to top |
|
 |
|