technoweenie / restful-authentication

inactive project
MIT License
1.57k stars 280 forks source link

consuming plugin's authentication data in other languages (java) #31

Open gustinmi opened 13 years ago

gustinmi commented 13 years ago

Hi

Our ROR portal, using this plugin, has a huge databse of users, for each user the authentication data (username, password, salt) was saved in database (Varchar types, MySql).

We need now to authenticate this huge user database in java application. Now, I could found ANY INFO on how this plugins generates salted hashes.

For using the authentication data in java, we need to assume something like this:

Pluging takes raw password, appends SALT, then make a digest, and then this data is saved as BASE-64 encoded string.

Can you please give the exact formula on how the encrypted password are generated ?

Thanks in advance, m.