Util logging changes
This commit is contained in:
@@ -134,6 +134,7 @@ public final class NoUtil {
|
|||||||
try {
|
try {
|
||||||
cipher.init(Cipher.ENCRYPT_MODE, secretKey);
|
cipher.init(Cipher.ENCRYPT_MODE, secretKey);
|
||||||
} catch (InvalidKeyException e) {
|
} catch (InvalidKeyException e) {
|
||||||
|
e.printStackTrace();
|
||||||
throw new NoDashFatalException("Secret key is invalid.");
|
throw new NoDashFatalException("Secret key is invalid.");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -163,6 +164,7 @@ public final class NoUtil {
|
|||||||
try {
|
try {
|
||||||
cipher.init(Cipher.DECRYPT_MODE, secretKey);
|
cipher.init(Cipher.DECRYPT_MODE, secretKey);
|
||||||
} catch (InvalidKeyException e) {
|
} catch (InvalidKeyException e) {
|
||||||
|
e.printStackTrace();
|
||||||
throw new NoDashFatalException("Secret key is invalid.");
|
throw new NoDashFatalException("Secret key is invalid.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user