public static final void decodeBuffer ( byte [ ] data , byte encryptionCode ) { for ( int i = 0 ; i < data . length ; i ++ ) { data [ i ] = ( byte ) ( data [ i ] ^ encryptionCode ) ; } }
This method decodes a byte array with the given encryption code using XOR encryption .