fork(1) download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public static String encrypt(String paramString)
  11. {
  12. String str = new String("");
  13. for (int i = 0; i < paramString.length(); i++) {
  14. str = (char)(paramString.charAt(i) ^ 0x7C) + str;
  15. }
  16. return str;
  17. }
  18.  
  19. public static void main (String[] args) throws java.lang.Exception
  20. {
  21. System.out.println(encrypt("H4x0rJ4V4"));
  22. System.out.println(encrypt("H*H6LH4"));
  23. System.out.println(encrypt("challenge"));
  24.  
  25. }
  26. }
Success #stdin #stdout 0.11s 55416KB
stdin
Standard input is empty
stdout
H*H6LH4
H4x0rJ4V4t