For many the election hinged on the tradeoff of curtailed civil liberties for security in a country once terrorized by gangs.