Questions tagged [phpass]

phpass is a portable public domain password hashing framework for use in PHP applications.

phpass
Filter by
Sorted by
Tagged with
1 vote
1 answer
482 views

I can't run the Phpass tests

Anyone know exaclty what's going wrong, I'm running Ubuntu (server) and have apache 2.2.14-5 and php 5.3.2-1 installed. When accessing the test.php file I get a HTTP 500 error. Here's what I get in my ...
Jonny Barnes's user avatar
1 vote
2 answers
475 views

Why does phpass return different hashes for the same input string?

I'm used to having hashing algorythms return always the same hash. Why does phpass library return always different hashes? Does it have something to do with the IV? (I never fully understood that ...
HappyDeveloper's user avatar
1 vote
1 answer
2k views

replicating wordpress password hash in mysql

So I would like to be able to change password hashes that exist in my wordpress wp_user table in the user_pass column. I am hoping to be able to write something as followed: # simplified version of ...
usumoio's user avatar
  • 3,528
0 votes
3 answers
735 views

phpass returns different results

I just put my project from localhost to my host and using the same (phpass) function I receive different results and the length of the returned string is also different. (and everything works on ...
BehnUm's user avatar
  • 141
0 votes
1 answer
147 views

PHP - phpass 0.2 troubles

I'm using phpass when my users type in password upon signup and login. It's working when I'm working local on my Mac. But when I hash a password when I'm online it's like it's hashing in a wrong way. ...
skolind's user avatar
  • 1,744
0 votes
1 answer
530 views

phpass autologin?

How are you supposed to create an autologin feature on your webpage using phpass as encryption of the passwords? I mean, the way it checks the password is by giving the CheckPassword method the ...
Eric's user avatar
  • 18.7k
0 votes
1 answer
579 views

Is it possible to rewrite encryption from MD5 to PHPass without losing data?

I've inherited a migration project. The legacy database has PHPass encryption and the new database is MD5. Is it possible to "upgrade" from MD5 to PHPass and keep data integrity?
Sully's user avatar
  • 1
0 votes
1 answer
164 views

PHPass refuses to check hashes

include 'lib/php/PasswordHash.php'; $hash = $_GET['hash']; $pass = $_GET['pass']; $hasher = new PasswordHash(8, false); $pass = $hasher->HashPassword($pass); echo "Original:<br>" . $pass . "...
Peter Clotworthy's user avatar
0 votes
1 answer
5k views

unHash/decrypt phpass password

I'm using phpass in my current project and part of the project deals with password retrieval, so what i wanted to know: is it possible to unhash a password using phpass that's been hashed using phpass ...
zero's user avatar
  • 3,046
0 votes
3 answers
345 views

Platform-dependent PHP hashing in Production and Development environments

I decided to drop md5() as the password-encrypting algorithm when storing user passwords in DB, in favor of phpass library. On the systems using md5, it was no problem to have a Production/...
nevvermind's user avatar
  • 3,362
0 votes
2 answers
693 views

Phpass - danger of not being able to access all passwords?

Sorry, this may be dumb, but there is something I don't understand about Phpass. If I can create a secure hashed password like this: $pwdHasher = new PasswordHash(8, FALSE); $hash = $pwdHasher->...
james.bcn's user avatar
  • 1,249
0 votes
1 answer
67 views

Issue to match pHpass generated hashed passwords

I add new user to database and hash user password using pHpass. On this point I face weird problem. If I create/hash the password '123' on http://localhost/add.php and check the password using pHpass'...
Adnan's user avatar
  • 1,389
0 votes
1 answer
4k views

PHPass producing warning: is_readable() [function.is-readable]: open_basedir restriction in effect [duplicate]

I'm using PHPass to encrypt passwords stored in my database. When running this code: if (is_readable('/dev/urandom') && ($fh = @fopen('/dev/urandom', 'rb'))) { ... } it produces this ...
Marcus's user avatar
  • 6,707
0 votes
1 answer
169 views

Portion of Hashed password seen as variable by MySQL

Using phpass to generate hashes, the following string is generated: $2a$08$KHiiru4yzYh141GUh2xIMew//bCc7rxMuY1rtDApwA66/czIiurLi Then a standard query: "INSERT INTO su_auth ( ...
Eamonn's user avatar
  • 1,290
0 votes
1 answer
244 views

How do I get information from a database using PDO?

I'm trying to create a login function that checks the password against the one I have stored in the database. I have used phpass to hash the password before it is entered if that is relevant. This is ...
carlgoodtoseeyou's user avatar
0 votes
2 answers
1k views

Laravel password encryption

I'm bringing a web application from PHP core to Laravel 4. In the current application passwords are encrypted with phpass. Encrypted passwords of phpass are compatible with the encryption of laravel? ...
Carmelo Pullara's user avatar
0 votes
1 answer
137 views

PHPass: custom character set for hashes

I'm using PHPass to hash passwords and other authorization tasks. In one or two instances, I want to pass a hash as a parameter in a URL: example.com/verify/foobar/$P$Dg2Ytir3E4xSCEkRzB4W5jsPBQ2u6n0 ...
emersonthis's user avatar
0 votes
1 answer
432 views

Using TCPDF and PHPass causing headaches with generating PDFs.

I've got a Codeigniter app that is an extension of an old phone directory my company used to send to employees. So for people who want a print out they had me create a method for "printing" that was a ...
Vagari's user avatar
  • 460
0 votes
1 answer
125 views

Identical Phpass code returning different results with CheckPassword

I am using Phpass to hash the passwords of my users. The creation and hashing of the password - fine. The checking of the password when logging in - fine. The checking of the old password when ...
Adam's user avatar
  • 209
0 votes
1 answer
123 views

phpass Warning?

I just implemented phpass into my websites register code and it seemed to work, but it gave me the following warning Warning: is_readable(): open_basedir restriction in effect. File(/dev/urandom) is ...
Travis Nabbefeld's user avatar
0 votes
1 answer
623 views

Phpass Hashed password checking

I have been developing my own social network for the past 3 weeks and I am using phpass to hash up the passwords into storage into my database using the following code snippet... // END FORM DATA ...
Phillip Dews's user avatar
0 votes
1 answer
1k views

PHPass not working when checking password

I'm trying to use PHPass with a new site. I generated a hash like this and stored it in the database: $hasher = new \Hautelook\Phpass\PasswordHash(8, true); $password = $hasher->HashPassword('...
dragonmantank's user avatar
0 votes
2 answers
337 views

phpass fails on Authentication on certain passwords from phpBB3?

Using either the phpass test program http://www.openwall.com/phpass/phpass-0.3.tar.gz , or python-phpass, and using C?*|Y[j"KQ'%gf for the plain text password, and $P$9kS6tD8tVxajypvJ5837.bt2emepD8/ ...
phpBoing's user avatar
0 votes
2 answers
319 views

Migrate Typo3 user with pbkdf2 hashed pw to Wordpress phpass hash method

Basically, I want to mirgrate a list of users with a pw that is hashed with pbkdf2-sha256 to a cms which uses phpass. In order to accomplish this I try to check the entered pw by the user and generate ...
Julian's user avatar
  • 1
0 votes
1 answer
182 views

I am using jQuery to post a php file, I am getting 500 internal server file, Why?

I am building a jQuery file to validate user input for login on a wordpress site. I have made functions to check the wordpress database for usernames, emails, and passwords. I have the functions ...
Jacob Boyd's user avatar
0 votes
2 answers
740 views

Using PHPass to hash password trouble

I am using PHPASS to store password encrypted and compare when login. here is the code ob_start(); $userName = $password = ""; $userNameErr = $passwordErr = $loginErr = ""; $hasher = new ...
Yousef Altaf's user avatar
  • 2,719
0 votes
0 answers
198 views

PHPass CheckPassword Always Returns False using PHP5.3

I am using PHPass and the CheckPassword function is ALWAYS returning a false despite everything I have tried and tested. I am doing this for an older PHP version of 5.3 (unfortunately) so there must ...
TommyRay's user avatar
  • 131
0 votes
0 answers
33 views

phpass different results in local and host

I just put my project from localhost to my host and using the same (phpass) function I receive different results and the length of the returned string is also different. (and everything works on ...
Cha's user avatar
  • 41
0 votes
1 answer
1k views

Registration page: Storing password using PHPASS

I'm attempting to store my users passwords using phpass but I'm struggling to implement it correctly. I had working code but I was storing my password as text, which I've learned is not safe. ...
carlgoodtoseeyou's user avatar
0 votes
1 answer
66 views

Adding namespace to phpass (or any class)

I am using http://www.openwall.com/phpass/ for hashing. I wish to add namespace to it, and added the single line as shown below. <?php namespace myNameSpace; //I added this one line class ...
user1032531's user avatar
  • 25.7k
0 votes
1 answer
120 views

phpass matching input password with stored password

I used phpass to hash my password on Insert as follows public function addAdmin(){ $this->load->library('phpass'); $this->load->database(); $psw = 'admin1234'; ...
Dilukshan Mahendra's user avatar
0 votes
1 answer
102 views

PHPass returns error

In my functions file I have this code: function password($password, $dbpassword = false){ if($dbpassword){ $password = mysqli_real_escape_string($GLOBALS["mysqli"], $_POST["$dbpassword"]);...
user avatar
0 votes
2 answers
282 views

Phpass login not working

I´m changing my register and login to a different encryption (Phpass) because everybody is saying that md5 is not safe anymore. I managed myself to put the register function working but cant figure ...
miguelfsf's user avatar
0 votes
1 answer
1k views

Trouble including PHP file on ubuntu 12.10 using nginx and php5-fpm

Looking for help troubleshooting the following PHP inclusion error found in my /var/log/nginx/error.log file? 2013/04/16 22:27:18 [error] 10021#0: *6 FastCGI sent in stderr: "PHP message: PHP Warning:...
darkAsPitch's user avatar
  • 1,875
0 votes
0 answers
62 views

phpass lengths changed significantly

I'm using phpass at the moment but since I've swapped computers, the length of the passwords stored has changed. I'm doing work on the localhost and recreated the database rather than exporting/...
user avatar
0 votes
1 answer
111 views

Why PHPass function not working here?

I'm successfuly registering with phpass but login authentication is not working.Please help me.It has been 3 days ,I'm scracting my head on this error. Register function(successfuly working and ...
Cuty Pie's user avatar
0 votes
0 answers
147 views

Transfer login params from iOS to web service

I currently have a web service whose backend database stores user passwords using phpass under PHP 5.3 —so it's using CRYPT_BLOWFISH. I have exposed an API from that server and I want to authenticate ...
Sendoa's user avatar
  • 4,715
0 votes
1 answer
704 views

read file with Phpass with Codeigniter

I get this error while using Phpass 0.3 on my CI Controller Message: is_readable() [function.is-readable]: open_basedir restriction in effect. File(/dev/urandom) is not within the allowed path(s): (/...
Mayfield Four's user avatar
0 votes
1 answer
1k views

Portable PHP password hashing framework and ActionScript 3 equivalent

Well? Is it possible? Passwords stored in the database are hashed with The Portable PHP Password Hashing Framework (http://www.openwall.com/phpass/). How can I hash them in the same manner with AS3? ...
Francisc's user avatar
  • 79k
-1 votes
1 answer
354 views

Does hash values contain quotes?

Does hash values contain quotes? If it is dependent to the algorithm, I want to know about blowfish using phpass. I'm asking in regard to SQL injection because I don't want prepare the query for ...
MTVS's user avatar
  • 2,106
-1 votes
4 answers
3k views

How to check login information against a db using PDO and Phpass

I'm trying to check users hashed passwords against the ones I've saved in the database. It is almost the same issue as the this guy, but I'm trying to do it with PDO and I'm unsure how to get the ...
carlgoodtoseeyou's user avatar
-3 votes
2 answers
849 views

Golang and Phpass (Php) How to do?

I'm working for a company and I have to remake their API to Golang from Php. The previous developer was using Phpass with Php, however, I need to use it with Golang. I searched about how to implement ...
Emixam23's user avatar
  • 3,894
-3 votes
2 answers
417 views

PHP phpass convert into C# script

I have a website to which authentication is done through the following script and generates a password that starts with $P$B... public static function hashPassword($plainPassword) { // use ...
ULY's user avatar
  • 23

1
2