Here you can find the source of encrypt(String inStr)
public static String encrypt(String inStr)
//package com.java2s; //License from project: Apache License public class Main { public static String encrypt(String inStr) { char[] a = inStr.toCharArray(); for (int i = 0; i < a.length; i++) { a[i] = (char) (a[i] ^ 't'); }//from ww w .ja v a 2s . c o m String s = new String(a); return s; } }