DES and RC4 algorithms coded in Java for both client and server