adding encryption interface.