fix test of return values
don't encrypt data while sending to client. instead sign data in accordance with RSA