|
|
|
|
@ -68,6 +68,7 @@ public abstract class Cryptography extends AbstractComponent {
|
|
|
|
|
try {
|
|
|
|
|
return doEncrypt(plain);
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
log().error("Failed to encrypt: {}", plain);
|
|
|
|
|
throw runtimeException(e);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -97,6 +98,7 @@ public abstract class Cryptography extends AbstractComponent {
|
|
|
|
|
try {
|
|
|
|
|
return doDecrypt(encrypted);
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
log().error("Failed to decrypt: {}", encrypted);
|
|
|
|
|
throw runtimeException(e);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|