returning signal and encryption