Server is working, issue with encryption/decryption