Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Base64 Encode
- Base64 Decode
- String test = "Nyaruko";
- String lalu_siapa = Base64.encodeToString(test.getBytes(),
- Base64.DEFAULT);
- Log.d("",lalu_siapa );
- byte[] bytes = Base64.decode(lalu_siapa,
- Base64.DEFAULT);
- try {
- lalu_siapa = new String(bytes, "UTF-8");
- } catch (UnsupportedEncodingException e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement