Class PBKDF2SHA512

java.lang.Object
org.bitcoinj.crypto.PBKDF2SHA512

public class PBKDF2SHA512 extends Object
This is a clean-room implementation of PBKDF2 using RFC 2898 as a reference. Modified to use SHA-512 by Ken Sedgwick (ken@bonsai.com)
See Also:
  • Constructor Details

    • PBKDF2SHA512

      public PBKDF2SHA512()
  • Method Details

    • derive

      public static byte[] derive(String P, String S, int c, int dkLen)
      Derive a key using PBKDF2-SHA512
      Parameters:
      P - password
      S - salt
      c - iteration count, a positive integer
      dkLen - intended length in octets of the derived key, a positive integer
      Returns:
      derived key