How does Internet Security Work?

Internet Security such as WEP key checks the key or password while connecting to the access point. If the password matches, it provides access else not.