A high-ranking Department of Justice official is taking aim at Silicon Valley’s methods for protecting privacy, saying there should be a public debate about whether companies should create digital lock boxes that cannot be opened by police and judges.