Doubt in Examining an encrypted file using Bouncy castle
posted 4 years ago
Actually I am trying to move my application using GNUPG tool to Bouncy castle (bcprov-jdk15on-147.jar). In the existing application which is using GNUPG tool, there is functionality of examining an encrypted file, i.e. when an encrypted file is provided by the user, --list-packets is executed on the GNUPG tool and depending on the results of this command, details like encrypted for which user id, signed by and packet details are displayed to the user. Although in Bouncy Castle i could find the api fetching the key id from the encrypted file, but i could not find the apis to fetch the other details from the encrypted files like user id, signed by and packet details. Please guide me on this. If you could provide me some example that would be great.