List of utility methods to do Encrypt Byte Array
byte[] | encrypt(byte[] data, byte[] key) encrypt if (data.length == 0) { return data; return toByteArray(encrypt(toIntArray(data, true), toIntArray(fixKey(key), false)), false); |
void | encryptL(byte[] bytes, int length) encrypt L for (int i = 0; i < bytes.length; i++) { bytes[i] = (byte) (bytes[i] + 29); |
byte[] | encryptRaw(byte[] key, byte[] b) encrypt Raw ByteArrayOutputStream baos = new ByteArrayOutputStream(); for (int i = 0; i < b.length; i++) { baos.write(b[i] ^ key[i % key.length]); return (baos.toByteArray()); |