Anyone have a clue why this doesn't work?
http://www.junkiemail.com/encrypt.txt
I'm trying to get xcrypt() to output/return the $decompressed value near the end of the script, while passing 2 settings through the xcrypt() function.
So for instance, I'm trying to get this script to be more modular. It works when it isn't nested within a function, but, I need to be able to call it later in the script with different variables passed to it.
Overview: The script encrypts with $encrypt value=1, and decrypts the encrypted string with a value of 0.
That's all. I just need to be able to call it with a function, and the first value being the text to be encrypted, and second value being if the script is to encrypt(0) or decrypt(1).
My piggy head hurts now.
http://www.junkiemail.com/encrypt.txt
I'm trying to get xcrypt() to output/return the $decompressed value near the end of the script, while passing 2 settings through the xcrypt() function.
So for instance, I'm trying to get this script to be more modular. It works when it isn't nested within a function, but, I need to be able to call it later in the script with different variables passed to it.
Overview: The script encrypts with $encrypt value=1, and decrypts the encrypted string with a value of 0.
That's all. I just need to be able to call it with a function, and the first value being the text to be encrypted, and second value being if the script is to encrypt(0) or decrypt(1).
My piggy head hurts now.

Comment