hub: working signature and encryption