In 2.7.1, go to ‘Pages’ in the Admin Menu and click edit. Then click on the page you wish to edit.
The second block on the right side is called “Publish”. Look for the link which says, “visibility”. Click ‘edit’ next to it to change from ‘public’ to ‘private’ or ‘password protected’.