From 130da36c57c10fd0bccf2f32453801cead7e2580 Mon Sep 17 00:00:00 2001 From: Arctic Code Date: Sat, 26 Jan 2013 19:40:52 -0500 Subject: [PATCH] $i before $salt to keep things optional MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit My original version had $i after $salt and required a salt (which could have been '') in order to define $i. I changed that offline and in the HashPass demo to accept $i before $salt. If you only want one hashing, just send a 1 or '' Original call: hashpass($password, $salt_goes_here, 3); Better call: hashpass($password, 3, $salt_goes_here); --- HashPass.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/HashPass.php b/HashPass.php index 6fdcabd..e321a00 100644 --- a/HashPass.php +++ b/HashPass.php @@ -1,5 +1,5 @@