The paper presents the results of research on the implementation of password protection as a way to ensure information security. The varieties of passwords used in practice (user-set passwords, system-generated passwords, half-words, key phrases, interactive "question-answer" sequences) are considered, their advantages and disadvantages are analyzed with illustrative examples. Taking into account the current regulatory documents, recommendations on the formation of strong user passwords and actions of information security specialists to maintain the relevance and functionality of password protection are proposed. Using the high-level programming language C++, various variants of the password verification process that can be implemented in corporate information systems are discussed in detail. In addition to full source codes of computer programs, detailed comments on the logic of their functioning are given.