Teenager jailed for refusing to hand over computer password