Write a program to check the password is too strong or strong or weak & also check the password is validate or not.. you can use code of c/c++ and you want ....

Recommended Answers

What does strong mean? What does weak mean? What is a valid password?

Jump to Post

Why are you starting a new thread for a question you just asked here yesterday

Jump to Post

All 6 Replies

What does strong mean? What does weak mean? What is a valid password?

Why are you starting a new thread for a question you just asked here yesterday

i can not get correct answer yet>>>> ##ShiftLeft

strong means hard password..that means the code output shows that the given password is hard password and also shows the output that given password is valid...ok...##Moschops

#include <iostream>
#include <string>

int main()
{

  std::cout << "Enter password: " << std::endl;
  std::string input;
  std::cin >> input;

  if (input.size() < 2)
  {
    std::cout << "Too weak";
    return 0;
  }

  if (input.size() > 2)
  {
    std::cout <<"Too strong";
    return 17;
  }

  std::cout << "Password is valid" << std::endl;
  return 0xee;

}

Please recheck your definition of strong and weak password. If the question does not give the definition then you need to set the rules for weak and strong password yourself. Only after having this rules you will be able to do the program. When you have it, post it here, and we will be pleased to help you

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.