i have a problem in decrypting a message on the client side, as it shows the BadPaddingException:Final block is not padded properly. i am using DES, and using getInputStream and getOutputStream for sending and receiving data, first reading the length of the bytes n then byte itself. problem is, it works properly at first time, even for two clients but next time it shows exception.
please help.
thank you