Communication security and data transmission