Skip to content

Instantly share code, notes, and snippets.

@RichardHJensen
Created October 6, 2011 00:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RichardHJensen/1266187 to your computer and use it in GitHub Desktop.
Save RichardHJensen/1266187 to your computer and use it in GitHub Desktop.
Before and after Base64 encoding
//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