Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

java base64 decrypt script

import java.util.Base64;

class Base64Decode {
  public static void main(String[] args) {
    String b64 = "Z3VydQ==";
    byte[] decoder = Base64.getDecoder().decode(b64);
    String str = new String(decoder);
    System.out.println(str); //-> "guru"
  }
}
Comment

PREVIOUS NEXT
Code Example
Java :: Read json url in android - NAYCode.com 
Java :: jpql spring boot 
Java :: Java Creating ArrayBlockingQueue 
Java :: java empty array list vs null elements 
Java :: Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8 
Java :: android snackbar message is behind back button 
Java :: android studio SELECT * FROM table 
Java :: java map remove all null values 
Java :: GetMapping("/rest/v1/books") in spring rest api 
Java :: double if statement java 
Java :: Java 8 merge 2 collections. 
Java :: fix nullpointerexception 
Java :: stringbuilder with delimiter java 
Java :: android studio check if email is valid java 
Java :: how to change datatypes in java 
Java :: procedure java 
Java :: how to get config values bukkit 
Java :: observer design pattern 
Java :: string to char array 
Java :: Java How to use Deque? 
Java :: how to close scanner in java 
Java :: how to get length of 2d array java 
Java :: classpath 
Java :: java @override annotation 
Java :: spring login response data 
Java :: extends class in java 
Java :: wrapper classes in java ebhor.com 
Java :: java firebase syncrhonous data read 
Java :: java stream dristinct 
Java :: Does JVM create object of Main class (the class with main())? 
ADD CONTENT
Topic
Content
Source link
Name
6+6 =