Class AES256Options
java.lang.Object
org.apache.commons.compress.archivers.sevenz.AES256Options
Options for
SevenZMethod.AES256SHA256
encoder- Since:
- 1.23
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAES256Options
(char[] password) AES256Options
(char[] password, byte[] salt, byte[] iv, int numCyclesPower) -
Method Summary
Modifier and TypeMethodDescription(package private) Cipher
(package private) byte[]
getIv()
(package private) int
(package private) byte[]
getSalt()
(package private) static SecretKeySpec
newSecretKeySpec
(byte[] bytes) private static byte[]
randomBytes
(int size)
-
Field Details
-
ALGORITHM
- See Also:
-
TRANSFORMATION
- See Also:
-
salt
private final byte[] salt -
iv
private final byte[] iv -
numCyclesPower
private final int numCyclesPower -
cipher
-
-
Constructor Details
-
AES256Options
public AES256Options(char[] password) - Parameters:
password
- password used for encryption
-
AES256Options
public AES256Options(char[] password, byte[] salt, byte[] iv, int numCyclesPower) - Parameters:
password
- password used for encryptionsalt
- for password hash salting (enforce password security)iv
- Initialization Vector (IV) used by cipher algorithmnumCyclesPower
- another password security enforcer parameter that controls the cycles of password hashing. More the this number is high, more security you'll have but also high CPU usage
-
-
Method Details
-
newSecretKeySpec
-
randomBytes
private static byte[] randomBytes(int size) -
getCipher
Cipher getCipher() -
getIv
byte[] getIv() -
getNumCyclesPower
int getNumCyclesPower() -
getSalt
byte[] getSalt()
-