Skip to content
Browse files

Removed formatArray(), so secret keys cannot be seen by enabling logg…

  • Loading branch information...
1 parent a085466 commit 62065e7265727609c797311bea779b08870df430 @belaban committed Oct 18, 2011
Showing with 0 additions and 21 deletions.
  1. +0 −21 src/org/jgroups/protocols/ENCRYPT.java
View
21 src/org/jgroups/protocols/ENCRYPT.java
@@ -886,13 +886,6 @@ private void sendSecretKey(SecretKey secret, PublicKey pubKey, Address source)
//encrypt current secret key
byte[] encryptedKey = tmp.doFinal(secret.getEncoded());
-
- //SW logout encrypted bytes we are sending so we
- // can match the clients log to see if they match
- if (log.isDebugEnabled())
- log.debug(" Generated encoded key which only client can decode:"
- + formatArray(encryptedKey));
-
newMsg = new Message(source, local_addr, encryptedKey);
newMsg.putHeader(EncryptHeader.KEY, new EncryptHeader(
@@ -1132,20 +1125,6 @@ private PublicKey generatePubKey(byte[] encodedKey)
}
- /*
- * simple helper method so we can see the format of the byte arrays in a
- * readable form could be better to use Base64 but will do for now
- */
- private String formatArray(byte[] array)
- {
- StringBuffer buf = new StringBuffer();
- for (int i = 0; i < array.length; i++)
- {
- buf.append(Integer.toHexString(array[i]));
- }
- return buf.toString();
- }
-
/**
* @return Returns the asymInit.

0 comments on commit 62065e7

Please sign in to comment.
Something went wrong with that request. Please try again.