Data Privacy Preservation on the Internet of Things