Rev 2 as server - Can it have a password

Hi, I have set up a small server with the Rev 2. It all works fine but I want the connection to have a password like all other wifi connections so people cant log onto it. I tried putting in a password on the 'secrets' file from one of the examples but it didn't seem to work. I want it to have a lock on the cion when I look at it on my phone. At the moment anybody can log onto it. Is this possible?