Я немного изучил, как добиться того, что я сказал в этом вопросе, и нашел несколько API-интерфейсов, но большинство из них выглядят очень сложными, и поскольку я всего лишь noobie в этой области, мне просто нужен простой метод:
public String Encrypt(String message, PublicKey publicKey)
Не знаю, можно ли это сделать? Если нет, то пожалуйста, кто-нибудь просветит меня другим способом, чтобы достичь этого:)
Спасибо.
UPDATE:
До сих пор я видел, что вся библиотека для шифрования OpenPGP требует как открытого ключа, так и закрытого ключа для шифрования, пока я хочу только шифровать с помощью открытого ключа (потому что у меня нет закрытого ключа для используйте его)!