Coding Theory For Security And Reliability In Wireless Networks