Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

base64 decode java

import java.util.Base64;

//encode
String originalInput = "test input";
String encodedString = Base64.getEncoder().encodeToString(originalInput.getBytes());
//decode
byte[] decodedBytes = Base64.getDecoder().decode(encodedString);
String decodedString = new String(decodedBytes);
Source by www.baeldung.com #
 
PREVIOUS NEXT
Tagged: #decode #java
ADD COMMENT
Topic
Name
4+1 =