utils.validatePBKDF2Hash validate outside Servoy

Questions, tips and tricks and techniques for scripting in Servoy

utils.validatePBKDF2Hash validate outside Servoy

Postby ccadwell1374840114 » Tue Jan 28, 2014 7:14 pm

I have all the user names and passwords stored in a table for all our solutions.
We have other applications that are not written using Servoy but we would like to authenticate logins against the Servoy password table. I'm looking to validate passwords outside of Servoy for instance in a PHP application. In Servoy we have created using utils.stringPBKDF2Hash('test') and stored the result in a database table. To validate we use utils.validatePBKDF2Hash('test','28D9337C326D9CE9:2000:C14D5B9FB3C5CA10920D479BD3F01E9E790F5745' ).
Is there anything outside of Servoy utils that will validate properly. I did try this function https://defuse.ca/php-pbkdf2.htm but not compatible. Any other hints would be great otherwise will need to probably use something generic other than utils.stringPBKDF2Hash.
ccadwell1374840114
 
Posts: 3
Joined: Fri Jul 26, 2013 2:01 pm

Re: utils.validatePBKDF2Hash validate outside Servoy

Postby jcompagner » Mon Jul 14, 2014 10:25 am

servoy uses PBKDF2 with the SHA1 hashing
in the link you send me it seems to use SHA256?


servoy uses this lib: http://www.rtner.de/software/PBKDF2.html
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet


Return to Methods

Who is online

Users browsing this forum: No registered users and 12 guests