1
0
Fork 0
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:
Paul Schaub 2021-09-23 18:06:54 +02:00
parent 8d5e36e267
commit f15f3a4e2a
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -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);