Encrypted and password protected static site

You can use Staticrypt as a NPM plugin like I did: Encrypt Hugo Site using Staticrypt