Re[2]: [PHP] recent encrpyt decrypt code... (problems)

From: Date: Sun, 06 Oct 2002 02:26:55 +0000
Subject: Re[2]: [PHP] recent encrpyt decrypt code... (problems)
References: 1 2 3 4 5 6 7  Groups: php.general 
Request: Send a blank email to php-general+get-118980@lists.php.net to get a copy of this message
Hi, Sunday, October 6, 2002, 7:32:11 AM, you wrote: JB> ok - that made things work... here is the output. it looks like it is JB> still encrypting it. what would the resolution be for this, or can I set JB> the key to anything I want? Ok I have got to the bottom of it :) You changed the name of the class but did not change the name of the constructor so the key was never getting set. So change class encrypt_decrypt { var $secret; function encrypt_class(){ $this->secret = 'this is a very long key, even too long for the cipher'; } to: class encrypt_decrypt{ var $secret; function encrypt_decrypt(){ $this->secret = 'this is a very long key, even too long for the cipher'; } -- regards, Tom

« previous php.general (#118980) next »