File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Generate Hash For Password with Salt

 
Himanshu sGarg
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic