How to protect a page with password

how to protect a page with password?

You can use the private plugin:
bin/gpm install private

(y)

Actually I would recommend using the grav-team provided: login plugin. It has support for page protection as well as user registration, password recovery etc.

Docs here: https://github.com/getgrav/grav-plugin-login