Java String Descrypt decryptBytes(final byte[] b, final int i)

Here you can find the source of decryptBytes(final byte[] b, final int i)

Description

decrypt Bytes

License

Apache License

Declaration

public static byte[] decryptBytes(final byte[] b, final int i) 

Method Source Code

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

public class Main {

    public static byte[] decryptBytes(final byte[] b, final int i) {
        byte temp;
        int startKey = i * 12345;
        int mulKey = startKey >>> 8;
        int addKey = startKey >>> 16;
        int j;//from ww w .  j a  v a 2 s  . c  o  m
        for (j = 0; j < b.length; j++) {
            temp = b[j];
            b[j] = (byte) (b[j] ^ (startKey >>> 8));
            startKey = (temp + startKey) * mulKey + addKey;
        }
        return b;
    }
}

Related

  1. decrypt(String str)
  2. decrypt(String str)
  3. decrypt(String string)
  4. decrypt(String string)
  5. decrypt2(byte[] arg0, int arg1, String arg2, byte arg3)
  6. decryptChar(String pwd, int offset, int pos)
  7. decryptCharcode(char c, int start, int end, int offset)
  8. decryptEmailId(String encryptedEmailId)
  9. decryptL(byte[] bytes, int length)