Skip to main content
3 votes
2 answers
753 views

I have a script that creates a secure token for browser login remember-me like so: $token = random_bytes(32); This is then saved to a database for comparison later on: $sql = " INSERT INTO ...
Fid's user avatar
  • 505
-1 votes
0 answers
188 views

I am learning api development with php now. While experimenting the password hashing i came up with a problem. Initally i used bcrypt algorithm, it successfully works, but when i tried Argon2i or ...
sukhesh-vsk's user avatar
0 votes
0 answers
29 views

So I have created typical registration/login screens for my project. The registration part appears to be flawless, works like a charm. The password that the user inserts gets hashed into the database, ...
CarpeCodice's user avatar
-2 votes
1 answer
236 views

<?php if(isset($_GET['edit_user'])){ $the_user_id = $_GET['edit_user']; $query = "SELECT * FROM users WHERE user_id = $the_user_id "; $select_user_by_id = mysqli_query($connection, $...
Equinius's user avatar
1 vote
0 answers
257 views

I want generate faker users with symfony with Datafixtures and I hash users password with "UserPasswordHasher" but when I run the command " php bin/console doctrine:fixtures:load" ...
Halit Cinici's user avatar
2 votes
1 answer
121 views

I am building a dashboard system, with Apache running on a raspberry pi, and pre-generating a password and its hash for all new users. The line I used to do this is password_hash('Password1@', ...
thePuterNoob's user avatar
0 votes
1 answer
110 views

In my php file I have 3 variables, one that includes the clear password and one that includes the clear password after reversed from the ROT13 encryption and my last variable that contains the hashed ...
Fetert's user avatar
  • 101
0 votes
1 answer
974 views

I've created a simple login/registration form. The registered information is stored in a .txt file (this is for educational purposes only not real use). I am hashing the registered input before I put ...
Taipan's user avatar
  • 67
0 votes
0 answers
29 views

I'm wondering, if two users in the database have the same password, the password_hash() will create two different hashes, is that right? And if so, how does it do it? And how does it work with ...
Mizugorou's user avatar
0 votes
0 answers
177 views

So I was making a login system with MySQL and PHP and found out about the password_hash() and password_verify() functions. Then, just for satisfaction, I tried it on paiza.io and it worked fine. Then, ...
Omer Hijazi's user avatar
0 votes
2 answers
3k views

i'd like to ask some question. I want to make a change password feature in codeigniter 4, so i have to updateing my old password, but when i do that, the password it's not updated, but all my ...
KarolY's user avatar
  • 1
-1 votes
1 answer
120 views

I hashed a password through $hashedpassword = password_hash($Password, PASSWORD_DEFAULT); This stores the password as a hashed value into a database. But when I try to login in through $Password=$...
JakeL's user avatar
  • 1
1 vote
0 answers
492 views

I recently had to import mysql backup database to another server. My problem is the password_verify() function it fails to verify the password when I login. The php version of the both servers isPHP 7....
SilverSurfer's user avatar
  • 4,364
4 votes
2 answers
6k views

I recently installed PHP 7.3.6 through Plesk's web GUI for a development copy of a web app, as I intend to update our production environment from php 7.0 to 7.3. I decided to take the opportunity to ...
Matt Aikens's user avatar
0 votes
1 answer
860 views

Is there a list of characters not used to generate the hash in PHP's password_hash()? I'm looking for a quick/cheap way of indicating which proprietary algorythm or standard password_hash() was used ...
Viking NM's user avatar
  • 402

15 30 50 per page
1
2 3 4 5
11