added NoEC encryption and decryption for different network parameters