-
Notifications
You must be signed in to change notification settings - Fork 14
Closed
Description
part of #1051
PGPainless can be used directly to generate ECC / RSA2048 / RSA 3072 / RSA 4096 keys.
PGPSecretKeyRing secretKeys = PGPainless.generateKeyRing()
.withPrimaryKey(KeySpec.getBuilder(KeyType.RSA(RsaLength._3072))
.withKeyFlags(KeyFlag.CERTIFY_OTHER, KeyFlag.SIGN_DATA, KeyFlag.ENCRYPT_COMMS)
.withDefaultAlgorithms())
.withPrimaryUserId("primary@user.id")
.setExpirationDate(expiration)
.withoutPassphrase()
.build();You can also add more user ids this way, or pass phrase. Can completely drop dependency on Node for keygen.
I imagine right now we generate first and create a pass phrase later? If so, we could instead ask for pass phrase first, then generate.
Reactions are currently unavailable