bc-java icon indicating copy to clipboard operation
bc-java copied to clipboard

Possible error at example method

Open polyakoff opened this issue 10 years ago • 1 comments

Trying ty compile method readSecretKey from this example class I get the following error: Error: java: incompatible types: java.io.InputStream cannot be converted to java.lang.String that relates to this line of code: PGPSecretKey secKey = readSecretKey(keyIn); I'm using this bouncy castle version org.bouncycastle:bcpg-jdk14:1.50 Is it possible there is a mistake in the code?

polyakoff avatar Jan 28 '16 15:01 polyakoff

No. It might be that you need to use the latest version of the PGP library though. 1.50 is over 2 years old.

ghost avatar Apr 12 '16 04:04 ghost