Package convex.core.crypto
Class PBE
java.lang.Object
convex.core.crypto.PBE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
deriveKey
(char[] password, byte[] salt, int bitLength) Gets a key of the given length (in bits) from a password using key derivation function
-
Constructor Details
-
PBE
public PBE()
-
-
Method Details
-
deriveKey
public static byte[] deriveKey(char[] password, byte[] salt, int bitLength) Gets a key of the given length (in bits) from a password using key derivation function- Parameters:
password
- Password stored in a char array.salt
- Salt bytesbitLength
- Bit length- Returns:
- Decrypted key
-