added encryptValue(value, encoding) method.