Java equivalent of C#'s Rfc2898DerivedBytes
I was wondering if anyone have tried to do an equivalent of Rfc2898DeriveBytes key = new Rfc2898DeriveBytes(secret, saltValueBytes); byte[] secretKey = key.GetBytes(16); in Java. Where secret is a string(password), and saltValueBytes is, well, a salt in byte array. I've tried stuff, but can't seem to wrap my head around it. I found this implementation by means of a Google search but I have never used it. A free Java implementation of RFC 2898 / PKCS#5 PBKDF2 There seems to be no small and freely available Java implementation of RFC 2898 / PKCS#5 available. Small as in only a few source files,