Privacy in smart devices