1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2025-09-10 02:39:39 +02:00

Replace all remaining usages of PGPainless.generateKeyRing()

This commit is contained in:
Paul Schaub 2025-04-07 14:09:21 +02:00
parent 686244a730
commit 049f7422c0
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
8 changed files with 64 additions and 62 deletions

View file

@ -17,9 +17,9 @@ public class ArmorTest {
@Test
public void armor() throws IOException {
byte[] data = PGPainless.generateKeyRing()
PGPainless api = PGPainless.getInstance();
byte[] data = api.generateKey()
.modernKeyRing("Alice")
.getPGPSecretKeyRing()
.getEncoded();
byte[] knownGoodArmor = ArmorUtils.toAsciiArmoredString(data)
.replace("Version: PGPainless\n", "") // armor command does not add version anymore