forked from Qortal/qortal
Hopeful fix for InvalidKeyException seen in some JDK implementations.
This commit is contained in:
parent
cd2010bd06
commit
dcc943a906
@ -429,7 +429,7 @@ public class ArbitraryDataReader {
|
||||
try {
|
||||
LOGGER.info("Decrypting using algorithm {}...", algorithm);
|
||||
Path unencryptedPath = Paths.get(this.workingPath.toString(), "zipped.zip");
|
||||
SecretKey aesKey = new SecretKeySpec(secret, 0, secret.length, algorithm);
|
||||
SecretKey aesKey = new SecretKeySpec(secret, 0, secret.length, "AES");
|
||||
AES.decryptFile(algorithm, aesKey, this.filePath.toString(), unencryptedPath.toString());
|
||||
|
||||
// Replace filePath pointer with the encrypted file path
|
||||
|
Loading…
x
Reference in New Issue
Block a user