Replies: 1 comment 1 reply
-
@shin-san Did you figure that out? To my knowledge, since gnupg 2.1+, exporting the keys is necessary so that Bouncy Castle can use them. Which is quite unpleasant because users need to build apps that would work seamlessly, assuming that most users have gnupg installed with their personal keys present on the FS. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am currently working on doing some simple GPG RSA encryption and decryption using BouncyCastle and I have noticed that the KeyBox model has been introduced in order to support .kbx files.
Now that both pubring and secring are under one file. I was just wondering if it is programmatically possible to extract the secring from the KeyBox model? The current method I had to do is to manually export it from cli which I assume is still the only way to extract it.
I am quite new to this so I may not fully understand how all the classes work in gpg but I don't I came across any classes that allows us to extract the secring from KeyBox directly.
I would like to hear some thoughts regarding this on whether it is feasible or not.
Beta Was this translation helpful? Give feedback.
All reactions