Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

In this Discussion

How to use the password hash and salt algorithm

I tried referring to this question, but I am having a small problem. (http://http://vanillaforums.org/discussion/comment/161762/#Comment_161762) I'm fairly new to PHP, but not to java.

I have a page added to the website called mobile.php, and I'm trying to hash the password the user enters on the mobile and check it with the database, however, the hashing is much different than a simple md5($pw) or sha1($pw).

i tried using these lines of code that the link above has offered $Vanilla_PasswordHash = new PasswordHash();

$a =  $Vanilla_PasswordHash->HashPassword('123456');
echo $Vanilla_PasswordHash->CheckPassword('123456', $a, 'Vanilla');
echo $a;

and using the include -- include PATH_LIBRARY . '/vendors/phpass/PasswordHash.php'; which was already in the page - passwordhash.php

but the web page crashes... am I doing something wrong?

Comments

Sign In or Register to comment.