justinludwig / jpgpj

Java Pretty Good Privacy Jig
MIT License
74 stars 20 forks source link

Is it possible to use pure java code to make a detached signature ? #42

Closed Chen-Dixi closed 2 years ago

Chen-Dixi commented 2 years ago

I want to develop a web service to publish my SDK to maven central repository automatically. It is necessary to create a detached signature during the pipeline wrote in Java. What should I do if jpgpj can't create a detached signature?

yexiong commented 2 years ago

来信已收到,我会尽快处理。加急请联系:13675888422谢谢叶熊

justinludwig commented 2 years ago

You can use the Bouncy Castle library directly to create a detached signature; see this example code:

https://github.com/bcgit/bc-java/blob/master/pg/src/main/java/org/bouncycastle/openpgp/examples/DetachedSignatureProcessor.java

Chen-Dixi commented 2 years ago

Thank you. I'll look into this example.