4G and 5G network security techniques and algorithms