- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
/*
...
*/
/* Add some salt */
$sold = $settings['users']['password_salt'];
$password = $sold.$password;
/* 1. MD5 */
$password = md5($password);
/* 2. SHA1 */
$password = sha1($password);
/* 4. Base64 */
$password = base64_encode($password);
/* 5. Fatality! */
$password = sha1($password);
/* Well done! */
return $password;