Class FileEncryptor
java.lang.Object
ml.karmaconfigs.api.common.utils.security.file.FileEncryptor
File encryption utilities
-
Constructor Summary
ConstructorsConstructorDescriptionFileEncryptor(File tar, String key)Initialize the file encryptorFileEncryptor(Path tar, String key)Initialize the file encryptor -
Method Summary
-
Constructor Details
-
FileEncryptor
Initialize the file encryptor- Parameters:
tar- the target filekey- the file key
-
FileEncryptor
Initialize the file encryptor- Parameters:
tar- the target filekey- the file key
-
-
Method Details
-
encrypt
public boolean encrypt()Encrypt the file- Returns:
- if the file could be encrypted
-
decrypt
public boolean decrypt()Decrypt the file- Returns:
- if the file could be decrypted
-