Skip to content

Commit cb4effa

Browse files
author
Open Lowcode SAS
committed
Put a (probably unused) key to 128 bits.
1 parent a9affe1 commit cb4effa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/org/openlowcode/tools/enc/AESCommunicator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public String decryptandunzip(byte[] encryptedmessage) throws Exception {
115115
public static void main(String args[]) {
116116
try {
117117
KeyGenerator keyGen = KeyGenerator.getInstance("AES");
118-
keyGen.init(256);
118+
keyGen.init(128);
119119
SecretKey secretKey = keyGen.generateKey();
120120
AESCommunicator communicator = new AESCommunicator(secretKey);
121121
for (int a = 0; a < 3; a++) {

0 commit comments

Comments
 (0)