Class PBE

java.lang.Object
convex.core.crypto.PBE

public class PBE extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    PBE()
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 bytes
      bitLength - Bit length
      Returns:
      Decrypted key