mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-23 12:52:07 +01:00
GenerateKeyTest: Print public key instead of secret key
This commit is contained in:
parent
8c97b6ead1
commit
883c819536
1 changed files with 3 additions and 3 deletions
|
@ -48,15 +48,15 @@ public class GenerateKeyTest {
|
|||
|
||||
ByteArrayOutputStream bytes = new ByteArrayOutputStream();
|
||||
ArmoredOutputStream armor = ArmoredOutputStreamFactory.get(bytes);
|
||||
secretKeys.encode(armor);
|
||||
publicKeys.encode(armor);
|
||||
armor.close();
|
||||
String publicKey = new String(bytes.toByteArray());
|
||||
String publicKey = bytes.toString();
|
||||
|
||||
bytes = new ByteArrayOutputStream();
|
||||
armor = ArmoredOutputStreamFactory.get(bytes);
|
||||
secretKeys.encode(armor);
|
||||
armor.close();
|
||||
String privateKey = new String(bytes.toByteArray());
|
||||
String privateKey = bytes.toString();
|
||||
|
||||
LOGGER.log(Level.INFO, String.format("Generated random fresh EC key ring.\n" +
|
||||
"User-ID: %s\n" +
|
||||
|
|
Loading…
Reference in a new issue