3
0
mirror of https://github.com/Qortal/qortal.git synced 2025-02-14 11:15:49 +00:00

Hopeful fix for InvalidKeyException seen in some JDK implementations.

This commit is contained in:
CalDescent 2022-08-20 15:33:52 +01:00
parent cd2010bd06
commit dcc943a906

View File

@ -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