I'm still trying to get my head around the encryption potential of B4PPC. I just can't get the hang of it.
I've slimmed down the code, which is attached. The password is sent to the sub, where it is converted to an MD5 hash & then the first 64 bits are used as the key for DES object. This encrypts the string & saves it.
The decrypt routine then attempts to reverse the process.
Taking the encryption out leaves me with a spare character at the end of the string, but otherwise works as planned. (The string terminator I guess)
The table is of no significance here (it's never used).
Can anyone see what I've done wrong??
I've slimmed down the code, which is attached. The password is sent to the sub, where it is converted to an MD5 hash & then the first 64 bits are used as the key for DES object. This encrypts the string & saves it.
The decrypt routine then attempts to reverse the process.
Taking the encryption out leaves me with a spare character at the end of the string, but otherwise works as planned. (The string terminator I guess)
The table is of no significance here (it's never used).
Can anyone see what I've done wrong??