PHP alternative of “PBKDF2WithHmacSHA256” from Java
问题 I need to generate in PHP the same hash as as the PBKDF2WithHmacSHA256 algorithm generates in Java. I did some research and found two functions that seem to be connected to PBKDF2 and HMAC : hash_pbkdf2 - http://php.net/manual/en/function.hash-pbkdf2.php hash_hmac - http://php.net/manual/en/function.hash-hmac.php What PHP functions should I use? Is it even possible with native PHP functions? Edit #1 My Java code, the same result I need achieve in PHP public static byte[] derivateKey(char[]