-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handling byte arrays through jackson serialisation #157
Conversation
@@ -210,12 +213,21 @@ | |||
* @return The insert query message | |||
*/ | |||
public static Query dbInsert( String key, String value ) { | |||
byte[] hash; | |||
try { | |||
hash = MessageDigest.getInstance( "MD5" ).digest( value.getBytes( UTF_8 ) ); |
Check failure
Code scanning / CodeQL
Use of a broken or risky cryptographic algorithm
*/ | ||
public static byte[] md5( String text ) { | ||
try { | ||
return MessageDigest.getInstance( "MD5" ).digest( text.getBytes( UTF_8 ) ); |
Check failure
Code scanning / CodeQL
Use of a broken or risky cryptographic algorithm
LOG.info( "Storing '{}' to '{}'", data, key ); | ||
byte[] hash; | ||
try { | ||
hash = MessageDigest.getInstance( "MD5" ).digest( data.getBytes( UTF_8 ) ); |
Check failure
Code scanning / CodeQL
Use of a broken or risky cryptographic algorithm
String data = String.valueOf( m.get( "data" ) ); | ||
byte[] hash; | ||
try { | ||
hash = MessageDigest.getInstance( "MD5" ).digest( data.getBytes( UTF_8 ) ); |
Check failure
Code scanning / CodeQL
Use of a broken or risky cryptographic algorithm
Kudos, SonarCloud Quality Gate passed! |
No description provided.