Here you can find the source of xorDecode(byte[] str, char[] key)
public static byte[] xorDecode(byte[] str, char[] key)
//package com.java2s; //License from project: Open Source License public class Main { public static byte[] xorDecode(byte[] str, char[] key) { byte[] buf = new byte[str.length]; for (int i = 0, j = 0; j < str.length; j++) { if (i >= 8) i = 0;/*from w w w . ja va2s .c om*/ buf[j] = (byte) ((char) str[j] ^ (char) key[i]); i++; } return buf; } }