The EncodingHashBean has a weird sort of asymmetry.
The #compare method will properly compare a salted hash, if the salt appended.
However the #hash method does not properly append a salt to hash.
It cannot know whether the input array contains a salt.
Add a salted property to the EncodingHashBean which will allow the code to use the last parameter provided to #hash as the salt.
The text was updated successfully, but these errors were encountered:
The EncodingHashBean has a weird sort of asymmetry.
The #compare method will properly compare a salted hash, if the salt appended.
However the #hash method does not properly append a salt to hash.
It cannot know whether the input array contains a salt.
Add a salted property to the EncodingHashBean which will allow the code to use the last parameter provided to #hash as the salt.
The text was updated successfully, but these errors were encountered: