Example of Encoding a string with Base64 Encoding and then decoding it back (Java)

By Rohit Nirmal
Base64StringTest.java is a simple Java program that serves as an excellent example of Base64 encoding and decoding of any string. You can download this program, compile it and run it.

Click here to download base64.zip that contains Base64StringTest.java and Base64.java