List of utility methods to do String XOR Decode
String | xorDecode(String data, String key) xor Decode byte m_cData[] = data.getBytes(); byte m_cKey[] = key.getBytes(); int keyPointer = 0; byte keyPointerAdd = 0; for (int i = 0; i < m_cData.length; i++) { keyPointerAdd = m_cData[i]; m_cData[i] ^= m_cKey[keyPointer]; keyPointer += keyPointerAdd; ... |
String | XORdecode(String res, String key) XO Rdecode byte[] bs = parseHexStr2Byte(res); for (int i = 0; i < bs.length; i++) { bs[i] = (byte) ((bs[i]) ^ key.hashCode()); return new String(bs); |