So I am trying to "create" a strong hashing algoritme, and now I am wondering, how strong is it?
This is what I have came up with:
function bHash($text, $salt) { foreach (array_reverse(hash_algos()) as $hash) { $hash .= hash($hash, $text . $hash . $salt); } return "_bH/" . $salt . "/" . str_replace("/", "+", crypt($hash, $salt)); } echo bHash($password, "KB8NtFIN"); // I am using a different salt for each password! So I am taking each hashing in the hash() function, and I hash it over and over again with salt (8 random string+hashname)
Which results in, for example "hello" is: _bH/KB8NtFIN/KBumi3+cVUUtU
So, how safe/strong is this?