Someone has been jailed for refusing to decrypt their data.