public class XorTest { public static void main(String[] args) { long encrypt_key=Long.MAX_VALUE; long xor=encrypt_key^5000; long reverse=xor^5000; StringBuffer sb=new StringBuffer("abcdefghijklmnopqrstuvwxyz·~!@#$%^&*()_+-={}[]|\\:';',./?"); testRandomCount(sb.toString(), 500000); System.out.println("执行完毕!"); int length=sb.length(); System.out.println("加密前长度:"+length+",数据:"+sb.toString()); StringBuffer encryptSb=new StringBuffer(); for(int i=0;i<length;i++){ encryptSb.append(makecodeChar(sb.substring(i,i+1), encrypt_key)); }