Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

how to use base64.getdecoder() android

// HazaaZOOZ - java - how to use base64.getdecoder() android studio - java

import android.util.Base64;

...

String testValue = "Hello, world!";

byte[] encodeValue = Base64.encode(testValue.getBytes(), Base64.DEFAULT);
byte[] decodeValue = Base64.decode(encodeValue, Base64.DEFAULT);

Log.d("ENCODE_DECODE", "defaultValue = " + testValue);
Log.d("ENCODE_DECODE", "encodeValue = " + new String(encodeValue));
Log.d("ENCODE_DECODE", "decodeValue = " + new String(decodeValue));

Comment

PREVIOUS NEXT
Code Example
Java :: sleep() java 
Java :: java parse xml string 
Java :: data to string format java 
Java :: renardfute 
Java :: get id of html tag by class 
Java :: button color xml android 
Java :: java get keys from tree map 
Java :: clear back stack android 
Java :: java initialize float to zero 
Java :: throw io exception java 
Java :: how to clear activity stack in android 
Java :: jenna fischer that 70s show 
Java :: how does devision works in Java 
Java :: Update UI on main thread Android 
Java :: java arraylist get second largest value 
Java :: swing enter key 
Java :: convert string to short java 
Java :: how to set the backtound color in java 
Java :: install java centos 8 
Java :: java code examples 
Java :: fibunacci java 
Java :: how to get only current date in java android studio 
Java :: java join list of strings 
Java :: find if a number is in a 2d array java 
Java :: jave arrayList to Array 
Java :: java run shell command 
Java :: java prime 
Java :: creating array java 
Java :: get hashmap into array 
Java :: expected exception junit 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =