File_Passwd_Authbasic::setMode() – Set the encryption mode


mixed File_Passwd_Authbasic::setMode ( string $mode )


You can choose one of md5, sha or des.

ATTN: DES encryption not available on Win32!

Returns a PEAR_Error if a specific encryption mode is not supported.


string $mode

the encryption mode to use

Return value

Returns TRUE on success, PEAR_Error on failure.


This function can not be called statically.

Get actual encryption mode (Previous) Get supported encryption modes (Next)
Last updated: Thu, 08 Oct 2015 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.