mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-09-10 02:39:39 +02:00
Allow different providers than BC
This commit is contained in:
parent
90649a5882
commit
36c871f198
7 changed files with 23 additions and 29 deletions
|
@ -40,6 +40,9 @@ The entry point to the API is the `PGPainless` class. Here you can find methods
|
|||
The first thing you probably want to do is generate you some nice tasty Key Pairs. The most straight forward way to do so is by calling
|
||||
|
||||
```java
|
||||
// Add a suitable cryptographic provider
|
||||
Security.insertProviderAt(new BouncyCastleProvider(), 1);
|
||||
|
||||
PGPSecretKeyRing keyRing = PGPainless.generateKeyRing()
|
||||
.simpleRsaKeyRing("Juliet <juliet@montague.lit>", RsaLength._4096);
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue