To give password or to make a post become private it is very easy. You can do it while you’re editing or creating a post.
On the left side you’ll see tab Publish like this.
Click Visibility: Public Edit. Then you’ll see this.
You can choose Password protected if you want to allow someone sees your post by a password, or make it private for you and logged in user. Don’t forget to click OK and publish it.