Connecting Tech Pros Worldwide Help | Site Map

AUTH: how to change encryption method

ProgDario
Guest
 
Posts: n/a
#1: Aug 22 '05
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

Colin McKinnon
Guest
 
Posts: n/a
#2: Aug 23 '05

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.
ProgDario
Guest
 
Posts: n/a
#3: Aug 23 '05

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 PHP bytes