if you mean you have a website and you only want people who have a password to see it , then if it is hosted on an apache server, then you can set up a password with a .htaccess file. If you dont like the look of that then you can do it in php but thats more work
Don't use simple words like "computer", "good morning" etc. Try the complex words and your password should contain a mix of alphabets and digits like "alpha4321" or "c4catd4dog" etc. Also keep it long enough. Longer the password is, harder to break it. Recommended is more than 10 chars. You can also use (o, 0), (i,1, l) etc. interchangeably. Hope it helps.
Ok. But I wanted to know how to create one
Go to your Modem Settings and add a Password.
Do you want to lock internet alone or your system?