Created
October 6, 2011 00:49
-
-
Save RichardHJensen/1266187 to your computer and use it in GitHub Desktop.
Before and after Base64 encoding
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Change Base64 string decoding from: | |
new BASE64Decoder().decodeBuffer(sessionKey); | |
//To: | |
new Base64().decode(sessionKey); | |
// AND | |
//Change Base64 string encoding from: | |
return new BASE64Encoder().encode(ciphertext); | |
//To: | |
return new Base64().encodeToString(ciphertext); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment