Here you can find the source of encryptBytes(final byte[] b, final int i)
public static byte[] encryptBytes(final byte[] b, final int i)
//package com.java2s; //License from project: Apache License public class Main { public static byte[] encryptBytes(final byte[] b, final int i) { int startKey = i * 12345; int mulKey = startKey >>> 8; int addKey = startKey >>> 16; int j;/*from w ww .j a v a2 s . c o m*/ for (j = 0; j < b.length; j++) { b[j] = (byte) (b[j] ^ (startKey >>> 8)); startKey = (b[j] + startKey) * mulKey + addKey; } return b; } }