Java String Encrypt encrypt(byte[] serialize)

Here you can find the source of encrypt(byte[] serialize)

Description

encrypt

License

Apache License

Declaration

public static byte[] encrypt(byte[] serialize) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static byte[] encrypt(byte[] serialize) {
        for (int i = 0; i < serialize.length; i++) {
            //         serialize[i] = shiftBits(serialize[i]);
            serialize[i] = (byte) (serialize[i] ^ 3629);
        }//from w  ww  . j a  va  2 s  .  c o  m
        return serialize;
    }
}

Related

  1. encrypt(byte[] data)
  2. encrypt(byte[] plaintextBytes, int r, int n)
  3. encrypt(char ch)
  4. encrypt(int original, int salt)
  5. encrypt(String data, String key)
  6. encrypt(String inStr)