title: PBKDF2WithHmacSHA512 throwing NoSuchAlgorithmException
body: <p>I am writing an app in Eclipse for android. I tried using PBKDF2WithHmacSHA1 at first to hash my passwords, which worked well. But because of the weaknesses in SHA1, I decided to upgrade it to PBKDF2WithHmacSHA512. However, eclipse is now throwing a NoSuchAlgorithmException. </p>
  
  <p><a href="https://stackoverflow.com/questions/20807647/secretkeyfactory-getinstancepbkdf2withhmacsha512-throws-nosuchalgorithmexcep">SecretKeyFactory.getInstance(&quot;PBKDF2WithHmacSHA512&quot;) throws NoSuchAlgorithmException</a></p>
  
  <p>I followed the instructions in the link above. However, the java file linked in the question above requires the sun.crypto library, which I don't have on Eclipse. I was also advised not to use Sun library, but to use java official library.</p>
  
  <p>My question is, is there anyway of using PBKDF2WithHmacSHA512 on Eclipse? Or if possible, can someone teach me how to break it into parts of doing the PBKDF2 first and then HmacSHA512 the result? </p>
  
  <p>Thank you. </p>