Connecting Tech Pros Worldwide Help | Site Map

AUTH: how to change encryption method

  #1  
Old August 22nd, 2005, 03:55 PM
ProgDario
Guest
 
Posts: n/a
I'm using the auth method.

I wonder how to change the encryption method from MD5 to text only.

On the changelog I can read it's possible but I can't find anything on
the docs.

Any idea?


Thanks!!


Dario

  #2  
Old August 23rd, 2005, 09:25 AM
Colin McKinnon
Guest
 
Posts: n/a

re: AUTH: how to change encryption method


ProgDario wrote:
[color=blue]
> I'm using the auth method.
>
> I wonder how to change the encryption method from MD5 to text only.
>
> On the changelog I can read it's possible but I can't find anything on
> the docs.
>[/color]

Maybe you were looking in the wrong place - this is a PHP news group. If
your question is to do with PHP you'll need to give us more of a clue.

C.
  #3  
Old August 23rd, 2005, 10:55 AM
ProgDario
Guest
 
Posts: n/a

re: AUTH: how to change encryption method


I was spekaing about PEAR::auth package.

I found the solution:

In the pots array I have to insert the cryptType element, with 'none'
as value:

$opts = array(
'dsn' => 'mysql://root:@localhost/af',
'table' => 'person',
'usernamecol' => 'username',
'passwordcol' => 'pwd',
'db_fields' => 'roles',
'cryptType' => 'none'
);
$auth = new Auth('DB', $opts, 'customLoginFunction');


Dario

Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Newsletter aajayaprakash answers 1 September 1st, 2009 06:59 PM