encrypt and decrypt data points