fixed session key change - documented reason.
package org.bouncycastle.openpgp;
-import java.util.Arrays;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
@@ -31,7 +30,8 @@ public int getAlgorithm()
public String toString()
{
- return algorithm + ":" + Arrays.toString(sessionKey);
+ // mote: we only print the reference to sessionKey to prevent accidental disclosure of the actual key value.
+ return algorithm + ":" + sessionKey;
}
public static PGPSessionKey fromAsciiRepresentation(String ascii)
