zeslade

Untitled

Nov 10th, 2016
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.35 KB | None | 0 0
  1. String pw = "aB1!";
  2. if(pw.contains(a || A || b || B))
  3. {
  4. if(pw.contains("1" || "2" || "3" || "4"))
  5. {
  6. if(pw.contains("!" || "@" || "#" || "$"))
  7. {
  8. console.writeline("Your password is fine!");
  9. }
  10. console.writeline("Your password needs at least one special character.");
  11. }
  12. console.writeline("Your password needs at least one upper or lower case letter.");
  13. }
Advertisement
Add Comment
Please, Sign In to add comment