This is the code I'm using: private static byte[] xor(final byte[] input, final byte[] secret) { final ...
stackoverflow.com