Home » Android » java – How to encode a string with Base64 in Android?

java – How to encode a string with Base64 in Android?

Posted by: admin June 15, 2020 Leave a comment

Questions:

Possible Duplicate:
Base64 encoder and decoder

I am trying to encode a Url with Base64. Is there any way to encode it with Base64 in java/android?

I need something similar to base64_encode() function in PHP.

How to&Answers:

Base64 is part of the Android SDK from API level 8 onwards.