Example of Encoding a string with Base64 Encoding and then decoding it back
(Java)
By Barry Nirmal and 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.