Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old August 22nd, 2005, 03:55 PM
ProgDario
Guest
 
Posts: n/a
Default AUTH: how to change encryption method

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
Default 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
Default 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

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles