salt - Java library for multiple different types of password encryption -


i'm looking library (or preferably built java) able take password , it's hash, determine type of encryption used , validate password.

essentially java version of http://xref.dokuwiki.org/reference/dokuwiki/nav.html?inc/passhash.class.php.html

to honest i've converted of i'm not sure how create salted md5 password in java (converting hash_smd5 function) , des encryption salt (converting hash_crypt function)

any appreciated.

is you're trying achieve? given

  • original text (password, or salted password)
  • encrypted text
  • a list of encryption/hashing algorithm (md5, sha1, etc.)

figure out encryption algorithm produced enrypted text? presumably achieved applying each algorithm in turn original text until output matches encrypted text?

the digestutils class apache commons provides whole bunch of easy-to-use hash functions. bouncy castle provides large number of java implementations of encryption standards.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -