processing-android icon indicating copy to clipboard operation
processing-android copied to clipboard

Getting Base64Encoder deprecated API

Open ghhann opened this issue 6 years ago • 2 comments

capture

Getting the above error in both the Master Branch and AR branch Using windows 10, using gradle all the latest versions

ghhann avatar Sep 28 '18 20:09 ghhann

Ok, thanks for the heads up. Before it would give a warning, but if this API was finally removed from Java, then is time to find an alternative...

codeanticode avatar Dec 24 '18 02:12 codeanticode

Upon closer examination, I found that there is a public Base64 Encoder/Decoder in java 8:

https://docs.oracle.com/javase/8/docs/api/java/util/Base64.html

However, the PKCS7 encoding classes appear to be available only for internal use, and only an external crypto library such as Bouncy Castle would enable such encoding without any errors or warnings.

Until we find a replacement for the internal API, you should be able to build the mode, I also use Gradle and only get warnings.

codeanticode avatar Dec 24 '18 06:12 codeanticode

No longer needed as the mode uses gradle to create the packages and bundles.

codeanticode avatar Jan 25 '23 22:01 codeanticode