Package org.jpass.crypt
Class dbEncryptionAES
java.lang.Object
org.jpass.crypt.dbEncryptionAES
This class is used to encrypt and decrypt the password file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Decrypts the file to bytesstatic void
encryptFileFromBytes
(byte[] data) Encrypts data from bytes to the filestatic void
Encrypts the file from plain text filestatic void
getInstance
(byte[] bkey) Gets the instance
-
Constructor Details
-
dbEncryptionAES
public dbEncryptionAES()Constructor - load the file path
-
-
Method Details
-
encryptFileFromFile
public static void encryptFileFromFile()Encrypts the file from plain text file -
encryptFileFromBytes
public static void encryptFileFromBytes(byte[] data) Encrypts data from bytes to the file -
decryptFileToBytes
public static void decryptFileToBytes()Decrypts the file to bytes -
getInstance
public static void getInstance(byte[] bkey) Gets the instance- Parameters:
bkey
- byte array key
-