Subversion-Projekte lars-tiefland.ci

Revision

Revision 68 | Revision 2049 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 68 Revision 1257
Zeile 117... Zeile 117...
117
	 * @param	bool	$raw_output
117
	 * @param	bool	$raw_output
118
	 * @return	string
118
	 * @return	string
119
	 */
119
	 */
120
	function hash_pbkdf2($algo, $password, $salt, $iterations, $length = 0, $raw_output = FALSE)
120
	function hash_pbkdf2($algo, $password, $salt, $iterations, $length = 0, $raw_output = FALSE)
121
	{
121
	{
122
		if ( ! in_array($algo, hash_algos(), TRUE))
122
		if ( ! in_array(strtolower($algo), hash_algos(), TRUE))
123
		{
123
		{
124
			trigger_error('hash_pbkdf2(): Unknown hashing algorithm: '.$algo, E_USER_WARNING);
124
			trigger_error('hash_pbkdf2(): Unknown hashing algorithm: '.$algo, E_USER_WARNING);
125
			return FALSE;
125
			return FALSE;
126
		}
126
		}