note 94990 added to ref.hash

From: Date: Mon, 07 Dec 2009 13:00:32 +0000
Subject: note 94990 added to ref.hash
Groups: php.notes 
Request: Send a blank email to php-notes+get-163635@lists.php.net to get a copy of this message
For Samba ueserPassword you can use: (I am not very sure aboute the salt part, but it works for me like that) function CRYPThash($string, $salt = null) { if (!$salt) $salt = rand(10,99); return "{CRYPT}".crypt($string, $salt); } In posted NTLMHash function you can also use: // Encrypt it with the MD4 hash $MD4Hash=hash('md4',$Input); So you don't need to install mhash libraries ---- Server IP: 69.147.83.197 Probable Submitter: 193.40.194.222 ---- Manual Page -- http://www.php.net/manual/en/ref.hash.php Edit -- https://master.php.net/note/edit/94990 Del: integrated -- https://master.php.net/note/delete/94990/integrated Del: useless -- https://master.php.net/note/delete/94990/useless Del: bad code -- https://master.php.net/note/delete/94990/bad+code Del: spam -- https://master.php.net/note/delete/94990/spam Del: non-english -- https://master.php.net/note/delete/94990/non-english Del: in docs -- https://master.php.net/note/delete/94990/in+docs Del: other reasons-- https://master.php.net/note/delete/94990 Reject -- https://master.php.net/note/reject/94990 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#163635) next »