A password is a secret word or string of characters that is used for authentication, to confirm the identity of a user, or to gain access to a resource such as a computer system, network, or account.