I am trying to bulk import and check that the pbkdf2 password works but it doesn’t
passworkd = ‘12345678’ salt = ‘TUN0EKuE’ (binary ascii) iterations=150000, keyl=64
our db saves it as “$pbkdf2-sha256$i=150000$TUN0EKuE$4dfeab07c9972d63a113b834e058467ecf0a0a0c80963f02937beec8cf3382b0”
(i’ve check via code, and 2 websites the hash is the correct hex value)
but after import, login fails with wrong password (and need to change because it can’t verify a custom hash)
"details": {
"error": {
"message": "Password change required.",
"reason": "Verification failed for the provided custom_password_hash: {'algorithm':'pbkdf2','hash':{'value':'$pbkdf2-sha256$i=150000,l=64$TU...'},'salt':{'value':''}}"
}
},
i have imported 12 versions of this :
salt as binary (ascii), salt as hex string of binary, salt as base64 of binary and salt as base64 of the hex string of the binary
hash as hex string, hash as base64 of binary value, and hash as base64 of hex string
(4 salts time 3 hashes)
the following:
$pbkdf2-sha256$i=150000,l=64$TUN0EKuE$4dfeab07c9972d63a113b834e058467ecf0a0a0c80963f02937beec8cf3382b0
$pbkdf2-sha256$i=150000,l=64$TUN0EKuE$Tf6rB8mXLWOhE7g04FhGfs8KCgyAlj8Ck3vuyM8zgrA
$pbkdf2-sha256$i=150000,l=64$TUN0EKuE$NGRmZWFiMDdjOTk3MmQ2M2ExMTNiODM0ZTA1ODQ2N2VjZjBhMGEwYzgwOTYzZjAyOTM3YmVlYzhjZjMzODJiMA
$pbkdf2-sha256$i=150000,l=64$54554e30454b7545$4dfeab07c9972d63a113b834e058467ecf0a0a0c80963f02937beec8cf3382b0
$pbkdf2-sha256$i=150000,l=64$54554e30454b7545$Tf6rB8mXLWOhE7g04FhGfs8KCgyAlj8Ck3vuyM8zgrA
$pbkdf2-sha256$i=150000,l=64$54554e30454b7545$NGRmZWFiMDdjOTk3MmQ2M2ExMTNiODM0ZTA1ODQ2N2VjZjBhMGEwYzgwOTYzZjAyOTM3YmVlYzhjZjMzODJiMA
$pbkdf2-sha256$i=150000,l=64$VFVOMEVLdUU$4dfeab07c9972d63a113b834e058467ecf0a0a0c80963f02937beec8cf3382b0
$pbkdf2-sha256$i=150000,l=64$VFVOMEVLdUU$Tf6rB8mXLWOhE7g04FhGfs8KCgyAlj8Ck3vuyM8zgrA
$pbkdf2-sha256$i=150000,l=64$VFVOMEVLdUU$NGRmZWFiMDdjOTk3MmQ2M2ExMTNiODM0ZTA1ODQ2N2VjZjBhMGEwYzgwOTYzZjAyOTM3YmVlYzhjZjMzODJiMA
$pbkdf2-sha256$i=150000,l=64$NTQ1NTRlMzA0NTRiNzU0NQo$4dfeab07c9972d63a113b834e058467ecf0a0a0c80963f02937beec8cf3382b0
$pbkdf2-sha256$i=150000,l=64$NTQ1NTRlMzA0NTRiNzU0NQo$Tf6rB8mXLWOhE7g04FhGfs8KCgyAlj8Ck3vuyM8zgrA
$pbkdf2-sha256$i=150000,l=64$NTQ1NTRlMzA0NTRiNzU0NQo$NGRmZWFiMDdjOTk3MmQ2M2ExMTNiODM0ZTA1ODQ2N2VjZjBhMGEwYzgwOTYzZjAyOTM3YmVlYzhjZjMzODJiMA
I am looking for ideas on what i’m doing wrong ?
Help is appeciated