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

From: Date: Sun, 06 Oct 2002 02:59:51 +0000
Subject: Re: Re[2]: [PHP] recent encrpyt decrypt code... (problems)
References: 1 2 3 4 5 6 7 8  Groups: php.general 
Request: Send a blank email to php-general+get-118981@lists.php.net to get a copy of this message
ok Tom - that worked... thanks for your help and assistance... I never would have figured this out without the help. Jeff "Tom Rogers" <trogers@kwikin.com> wrote in message news:15038740686.20021006122655@kwikin.com... > 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 (#118981) next »