mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-12-23 03:17:58 +01:00
Update readme
This commit is contained in:
parent
fedf7c0cf8
commit
cff69006f7
1 changed files with 11 additions and 14 deletions
25
README.md
25
README.md
|
@ -76,22 +76,19 @@ There are some predefined key archetypes, but it is possible to fully customize
|
||||||
// Customized key
|
// Customized key
|
||||||
PGPSecretKeyRing keyRing = PGPainless.generateKeyRing()
|
PGPSecretKeyRing keyRing = PGPainless.generateKeyRing()
|
||||||
.withSubKey(
|
.withSubKey(
|
||||||
KeySpec.getBuilder(ECDSA.fromCurve(EllipticCurve._P256))
|
KeySpec.getBuilder(ECDSA.fromCurve(EllipticCurve._P256), KeyFlag.SIGN_DATA)
|
||||||
.withKeyFlags(KeyFlag.SIGN_DATA)
|
.overrideCompressionAlgorithms(CompressionAlgorithm.ZLIB)
|
||||||
.withDetailedConfiguration()
|
.build()
|
||||||
.withDefaultSymmetricAlgorithms()
|
|
||||||
.withDefaultHashAlgorithms()
|
|
||||||
.withPreferredCompressionAlgorithms(CompressionAlgorithm.ZLIB)
|
|
||||||
.withFeature(Feature.MODIFICATION_DETECTION)
|
|
||||||
.done()
|
|
||||||
).withSubKey(
|
).withSubKey(
|
||||||
KeySpec.getBuilder(ECDH.fromCurve(EllipticCurve._P256))
|
KeySpec.getBuilder(
|
||||||
.withKeyFlags(KeyFlag.ENCRYPT_COMMS, KeyFlag.ENCRYPT_STORAGE)
|
ECDH.fromCurve(EllipticCurve._P256),
|
||||||
.withDefaultAlgorithms()
|
KeyFlag.ENCRYPT_COMMS, KeyFlag.ENCRYPT_STORAGE)
|
||||||
|
.build()
|
||||||
).withMasterKey(
|
).withMasterKey(
|
||||||
KeySpec.getBuilder(RSA.withLength(RsaLength._8192))
|
KeySpec.getBuilder(
|
||||||
.withKeyFlags(KeyFlag.SIGN_DATA, KeyFlag.CERTIFY_OTHER)
|
RSA.withLength(RsaLength._8192),
|
||||||
.withDefaultAlgorithms()
|
KeyFlag.SIGN_DATA, KeyFlag.CERTIFY_OTHER)
|
||||||
|
.build()
|
||||||
).withPrimaryUserId("Juliet <juliet@montague.lit>")
|
).withPrimaryUserId("Juliet <juliet@montague.lit>")
|
||||||
.withAdditionalUserId("xmpp:juliet@capulet.lit")
|
.withAdditionalUserId("xmpp:juliet@capulet.lit")
|
||||||
.withPassphrase("romeo_oh_Romeo<3")
|
.withPassphrase("romeo_oh_Romeo<3")
|
||||||
|
|
Loading…
Reference in a new issue