aspose file tools*
The moose likes Web Services and the fly likes Generate Hash For Password with Salt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Generate Hash For Password with Salt" Watch "Generate Hash For Password with Salt" New topic
Author

Generate Hash For Password with Salt

Himanshu sGarg
Greenhorn

Joined: Aug 16, 2013
Posts: 11
In Mysql, I have generated hash with salt to be used by Dovecot for authentication using ENCRYPT('password', CONCAT('$6$', SUBSTRING(SHA(RAND()), -16)))

Now, I want to know how can I generate the same kind of hash with salt in java.
 
Don't get me started about those stupid light bulbs.
 
subject: Generate Hash For Password with Salt