Package org.bitcoinj.crypto
Class PBKDF2SHA512
- java.lang.Object
-
- org.bitcoinj.crypto.PBKDF2SHA512
-
public class PBKDF2SHA512 extends java.lang.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)
-
-
Constructor Summary
Constructors Constructor Description PBKDF2SHA512()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]
derive(java.lang.String P, java.lang.String S, int c, int dkLen)
Derive a key using PBKDF2-SHA512
-
-
-
Method Detail
-
derive
public static byte[] derive(java.lang.String P, java.lang.String S, int c, int dkLen)
Derive a key using PBKDF2-SHA512- Parameters:
P
- passwordS
- saltc
- iteration count, a positive integerdkLen
- intended length in octets of the derived key, a positive integer- Returns:
- derived key
-
-