I am not at all familiar with the PBKDF2 hash, but Servoy recommends using it in lieu of the older MD5 algorithm, so I thought I would give it a try. Servoy's wiki gives the following usage:
- Code: Select all
var hashed_password = utils.stringPBKDF2Hash(user_password)
When I tried encoding the same password multiple times, I noticed the hash value is different for each iteration (see examples below):
- Code: Select all
utils.stringPBKDF2Hash( "PASSWORD" ) ---> "161B1BC242CE757B:2000:4FFBE76D36299AC9388696B8327609CB3F0B086D"
utils.stringPBKDF2Hash( "PASSWORD" ) ---> "83B0C847293F8FA6:2000:AEE6FCA55DA35280AB6477C95A2032DEB8D53DA9"
utils.stringPBKDF2Hash( "PASSWORD" ) ---> "69DD4FBB5C910459:2000:5C5F823EA5C9FB3DAAE08F8A1C54955A2E263C69"
utils.stringPBKDF2Hash( "PASSWORD" ) ---> "60A2C23E76FFC83F:2000:912CAC816F0D86C6C64AACD20B594374349B6325"
Most likely, I am not using Servoy's PBKDF2 hash function properly. Can someone explain to me how to properly use this function?