updated
This commit is contained in:
@ -154,7 +154,7 @@ public class AES {
|
||||
throw new IllegalArgumentException("No args provided. Need password as argument");
|
||||
}
|
||||
if (args.length % 2 == 0) {
|
||||
System.out.println(AES.createInstance(String.valueOf(args[1])).encrypt(String.valueOf(args[0])));
|
||||
System.out.println(AES.createInstance(String.valueOf(args[1])).decrypt(String.valueOf(args[0])));
|
||||
} else {
|
||||
System.out.println(AES.createInstance().encrypt(String.valueOf(args[0])));
|
||||
}
|
||||
|
Reference in New Issue
Block a user