Implementated an ISAAC encryption algorithm and packet callback function