Skip to content

Commit e23b751

Browse files
author
Open Lowcode SAS
committed
Extra log for encrypter
1 parent db10fbe commit e23b751

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public class OLcEncrypter
4949
* @return the singleton encrypter
5050
*/
5151
public static OLcEncrypter getEncrypter() {
52-
if (singleton == null)
52+
if (singleton == null)
5353
singleton = new OLcEncrypter();
5454
return singleton;
5555
}

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010

1111
package org.openlowcode.tools.enc;
1212

13+
import java.util.logging.Logger;
14+
15+
16+
1317
/***
1418
* This class just holds the encoding key for 2-ways encoding. Recommendation is
1519
* for companies to override this class in their client and server build
@@ -19,12 +23,15 @@
1923
*
2024
*/
2125
public class OLcEncrypterString {
26+
private static Logger logger = Logger.getLogger(OLcEncrypterString.class.getName());
27+
2228
/**
2329
* gets the encryption string
2430
*
2531
* @return the encryption string
2632
*/
2733
protected static String getEncryptionString() {
34+
logger.severe("Using default encryption key. This is not recommended for production purpose. Please refer to operation manual");
2835
return "HeureuxQuiCommeUlysse";
2936
}
3037
}

0 commit comments

Comments
 (0)