fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. /* The class name doesn't have to be Main, as long as the class is not public. */
  4. import org.apache.commons.codec.binary.Base64;
  5.  
  6. class Main
  7. {
  8. public static void main (String[] args) throws java.lang.Exception
  9. {
  10. String encodedBytes ="LyJwNh9iPil3MyMSGRhWCCpXBExXAWZBGg1eFjNcShpSCmZxCwJSAC9TBDxbBTRfCw9KRDNbHkxHCzISBwNBAyNcRkxJAWZfBQlHASgSDgkTEilAAwtWRCRTHg9bATUSBANURCRXHg1fASg=";
  11. String message = decodeBase64(encodedBytes);
  12. String paramString = "jl3dF2";
  13. int paramInt= 2;
  14. String str= "";
  15.  
  16. System.out.println("----------------- START ---------------------");
  17. for (int i = 0; i < message.length(); i++)
  18. {
  19. int k = paramString.charAt(i % paramString.length());
  20. int j = message.charAt(i);
  21. k &= 1 << paramInt;
  22. str = str + (k ^ j);
  23. }
  24. System.out.println(str);
  25. }
  26. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:4: package org.apache.commons.codec.binary does not exist
import org.apache.commons.codec.binary.Base64; 
                                      ^
Main.java:11: cannot find symbol
symbol  : method decodeBase64(java.lang.String)
location: class Main
  String message = decodeBase64(encodedBytes); 
                   ^
2 errors
stdout
Standard output is empty