A Wikipedia sign in form requesting a username and password. A password is a word or string of characters used for user authentication to prove identity or access approval to gain access to a resource (example: an access code is a type of password), which is to be kept secret from those not allowed access. The use of passwords is known to be ancient.