Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Encoding Decoding Using Base64  RSS feed

 
sr ke
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can some help me to find a way to encode and decode a string using Base64
Thanks
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The book Java Cryptography has a whole section on this topic.
The sun.misc package has classes called BASE64Encoder and BASE64Decoder. These classes are undocumented. BASE64Encoder takes a byte array and produces a String containing Base64 digits. BASE64Decoder takes a String containing Base64 digits and produces a byte array.
If cryptography is a topic that interests you then I would purchase the above book.
 
Rahul Rathore
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think there is also a documented class in Java Mail package for BASE64 encoding/decoding. See Java Mail API
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!