compare hash with plain text php
snippet in php

compare hash with plain text php

user6007

// To compare hash with plain text, use
password_verify("MySuperSafePassword!", $hashed_password)
  
// Please note, that works only with the password_hash() function.