Machine Learning and Cryptographic Solutions for Data Protection and Network Security