Java xor xor(byte abyte0[])

Here you can find the source of xor(byte abyte0[])

Description

xor

License

Open Source License

Declaration

private static byte[] xor(byte abyte0[]) 

Method Source Code

//package com.java2s;
/***************************************************************************************************
 * Copyright (c) 2003, 2004 IBM Corporation and others. All rights reserved. This program and the
 * accompanying materials are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * /*from   w ww  .j  a  va2 s. c  om*/
 * Contributors: IBM Corporation - initial API and implementation
 **************************************************************************************************/

public class Main {
    private static byte[] xor(byte abyte0[]) {
        byte abyte1[] = null;
        if (abyte0 != null) {
            abyte1 = new byte[abyte0.length];
            for (int i = 0; i < abyte0.length; i++)
                abyte1[i] = (byte) (0x5f ^ abyte0[i]);
        }
        return abyte1;
    }
}

Related

  1. xor(boolean val1, boolean val2)
  2. xOr(boolean x, boolean y)
  3. xor(boolean... bools)
  4. xor(boolean[] array)
  5. xor(boolean[][] b1, boolean[][] b2)
  6. xor(byte data[], byte key[])
  7. xor(byte lhs[], byte rhs[])
  8. xor(byte[] a, byte[] b)
  9. xor(byte[] a, byte[] b)