Rosalind Wiseman, who studies how teenagers use technology and is author of “Queen Bees and Wannabes,” a book for parents about helping girls survive adolescence, said the sharing of passwords, and the pressure to do so, was somewhat similar to sex.