Java Utililty Methods String XOR Decode

List of utility methods to do String XOR Decode

Description

The list of methods to do String XOR Decode are organized into topic(s).

Method

StringxorDecode(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;
...
StringXORdecode(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);