The issue of trading away a degree of liberty in exchange for enhanced security lay at the heart of the Social Contract theories of Hobbes, Locke, Rousseau and others. Be loyal to the king or state and they will/have a duty to protect you. In times of national crisis such as war, liberties may be withdrawn for "security" and the greater and future good.
The theory applies equally to benevolent dictator and benevolent democracy, but of course in practice, it can be difficult to control the state - whichever form of government it has - and the liberties that are safeguarded by the state, and those that are sacrificed for "security" vary greatly.
Libertarians make great play of human rights. Those on the right concentrate on freedom of speech, thought and individual action. Those on the left add the right to food, shelter, and employment; and socialists also place importance on collective association and action such as the right to belong to a trade union and the right to strike.
These rights may conflict, and who decides which is more important? How many starving, jobless, homeless people would put freedom of expression as there highest priority? How many would choose a democracy that perpetually condemned millions to poverty, homelessness and hunger, rather than a more inclusive one party state that provided homes, jobs, food, and even free health services and education?
And even on questions of freedom: Do we really have more control of the media when it is owned by a handful of rich people rather than by the state? Come to that, how democratic are democracies?
Joseph Schumpeter define Western democracy as "the competitive struggle for the people's vote". Anarchists will tell you that it doesn't matter who you vote for, it's the government that gets elected. And if voting changed anything, they'd abolish it.
Looking at major democracies, recognition of the right of other nations to self-determination is often subjugated to geopolitics and economic imperialism.
I want my rights - all of them - but I accept that where rights conflict, democratic means should be used to resolve conflict. To this end, I want greater democracy to ensure equal rights. The rights of ordinary people should carry as much weight as those of the rich and privileged.
Protecting our rights may entail "security measures", but where these impinge upon our rights, they should always be subject to the greatest possible degree of democratic control and scrutiny; they should not be arbitrary; and they should be no more and last no longer than is democratically agreed necessary.