Does anyone ever needed to make encryption/decryption in Enonic using PGP?
If so, can you share how it was resolved?
I found jsencrypt that uses RSA, but it did not work with PGP public keys.
I also found openpgpjs but it was impossible to bring to Enonic due to some functionalities used that Enonic does not support(e.g. async/await), and the code have 42k lines .
I’m also trying to resolve this on Java, but I cant find many useful content of the subject.
Also Enonic is already including and exposing org.bouncycastle:bcprov-jdk15on. So if you want to use the bouncycastle bcpg library for your app, you should do something similar to this in your build.gradle:
Well, I played with some content that I found on the internet. I got to encrypt a text, although the result was complete gibberish, not a PGP data base64 encoded string.
Hi. Let me ask you something.
I’m having a weird issue with bouncy castle, sometimes it generates the PGP message really fast, and other times it takes up to a minute (or more). Did you have this issue at any moment while using this lib?