PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
CREATE TABLE records ( name TEXT, password TEXT ); INSERT INTO records (name, password) VALUES ('Coloured', "colourediscool"); INSERT INTO records (name, password) VALUES ('Ruli', "ruliisprobablycooler"); UPDATE records SET Password = MD5(Password); SELECT * FROM records;
Copy Clear
Copy Format Clear
<?php // Hash a password using Argon2 $password = "mysecretpassword"; $hashedPassword = password_hash($password, PASSWORD_ARGON2ID); // Verify the password if (password_verify($password, $hashedPassword)) { echo "Password is correct!"; } else { echo "Invalid password."; }
Show:  
Copy Clear