mirror of
https://github.com/Qortal/qortal.git
synced 2025-04-23 19:37:51 +00:00
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 {
|
try {
|
||||||
LOGGER.info("Decrypting using algorithm {}...", algorithm);
|
LOGGER.info("Decrypting using algorithm {}...", algorithm);
|
||||||
Path unencryptedPath = Paths.get(this.workingPath.toString(), "zipped.zip");
|
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());
|
AES.decryptFile(algorithm, aesKey, this.filePath.toString(), unencryptedPath.toString());
|
||||||
|
|
||||||
// Replace filePath pointer with the encrypted file path
|
// Replace filePath pointer with the encrypted file path
|
||||||
|
Loading…
x
Reference in New Issue
Block a user