mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-23 04:42:06 +01:00
Fix example use of ascii armoring
This commit is contained in:
parent
8d5e36e267
commit
f15f3a4e2a
1 changed files with 1 additions and 2 deletions
|
@ -43,7 +43,6 @@ import org.pgpainless.key.generation.type.rsa.RsaLength;
|
|||
import org.pgpainless.key.info.KeyRingInfo;
|
||||
import org.pgpainless.key.util.KeyRingUtils;
|
||||
import org.pgpainless.key.util.UserId;
|
||||
import org.pgpainless.util.ArmorUtils;
|
||||
import org.pgpainless.util.Passphrase;
|
||||
|
||||
/**
|
||||
|
@ -84,7 +83,7 @@ public class GenerateKeys {
|
|||
// Extract public key
|
||||
PGPPublicKeyRing publicKey = KeyRingUtils.publicKeyRingFrom(secretKey);
|
||||
// Encode the public key to an ASCII armored string ready for sharing
|
||||
String asciiArmoredPublicKey = ArmorUtils.toAsciiArmoredString(publicKey);
|
||||
String asciiArmoredPublicKey = PGPainless.asciiArmor(publicKey);
|
||||
|
||||
|
||||
KeyRingInfo keyInfo = new KeyRingInfo(secretKey);
|
||||
|
|
Loading…
Reference in a new issue