How to create a strong password. How to write a password in Latin letters and numbers: php regular expressions Cyrillic

Hi all! Today I would like to discuss with you one rather banal, but at the same time, very important and necessary thing. What kind of thing is this? We'll talk about the password for your Apple ID account. Why even talk about this? Because this is perhaps the most important thing in an iPhone or iPad - only the device itself is more important than it. And even that is not a fact.

Let's see together what a high-quality and reliable password should look like, what you need to pay close attention to, what to consider before and after creating it, why we need to come up with and use our imagination... Stop. Too many questions, but not a single answer yet. Disorder. I'll fix it now. Let's go! :)

The Apple company is quite sensitive to the problems of security of personal data of users of the devices it produces, therefore, the requirements for the Apple ID password are quite strict, here they are:

  • It must contain at least one capital letter.
  • And at least one number.
  • You cannot enter identical characters in a row.
  • Does not match the account name.
  • Minimum 8 characters.
  • Should not coincide with the old one, if there was one.

So if Apple ID does not accept your password, pay attention to this list; most likely, not all points are met. This means that it is necessary to come up with another, more suitable one.

Here is an example of an incorrect password:
1234Qwerty
Despite the fact that it fully complies and fits the rules, it is clear that there is not much reliability in it.

An example correct password looks like this:
Ds234QCr5
Agree, much better, more complex and reliable than the previous version.

What to do after creation? Protect it like the apple of your eye. Never give it to anyone. After all, knowing it you can (photos, videos, contacts and messages) absolutely without your knowledge.

And, of course, do not forget (remember, highlight a separate place in your head, write it down on paper, in the end), otherwise you will have a long and meaningful conversation with those. support from Apple. And it’s not a fact that the outcome of this conversation will suit you.

By the way, it is equally important to take care of the mailbox specified during registration. After all, if you gain access to it, then everything written in this article is unlikely to help you.

Let's summarize. So, we save it and don’t give it to anyone:

  1. The email used to create your account.
  2. Apple ID password.

Subject to these conditions, the information on the iPhone and iPad will be securely stored, and your personal data will never fall into the hands of third parties.

P.S. Do you want to come up with the best password? Click on the social media buttons below the article and get +10% resourcefulness! Still have questions? Be sure to write in the comments - I will try to help!

This question is starting to go viral and a lot of interesting suggestions have come up.

Yes, writing by hand is difficult. So it's easier to use a template. Although the given regular expression may not be the most optimal, it will be easier to maintain and/or modify, and the user will have more control over the outcome. It's possible that I missed something, so any constructive criticism would be helpful.

These links might be interesting: Match at least 2 numbers 2 letters in any order in a string, Regular Expression Language, Capturing Groups

I'm using this pattern (?=(?:.*?((type)))(((count)))) based on all the regex I've seen on SO. The next step is to replace the required template (number , special character ...) and add configuration for the length.

I made a small class to build a regular expression PasswordRegexGenerator.cs Example:

String result = new PasswordRegexGenerator ().UpperCase (3, -1) // ... (3,).Number (2, 4) // ... (2,4).SpecialCharacter (2) // .. .(2).Total(8,-1).Compose(); ///

/// Generator for regular expression, validating password requirements. /// public class PasswordRegexGenerator ( private string _elementTemplate = "(?=(?:.*?((type)))(((count))))"; private Dictionary _elements = new Dictionary ( ( "uppercase", "" ), ( "lowercase", "" ), ( "number", @"\d" ), ( "special", @"\W" ), ( "alphanumeric", @" \w" ) ); private StringBuilder _sb = new StringBuilder(); private string Construct (string what, int min, int max) ( StringBuilder sb = new StringBuilder (_elementTemplate); string count = min.ToString (); if (max == -1) ( count += ","; ) else if (max > 0) ( count += "," + max.ToString(); ) return sb .Replace ("((type))", what) .Replace ("((count))", count) . ToString() /// /// Change the template for the generation of the regex parts /// /// the new template /// public PasswordRegexGenerator ChangeRegexTemplate (string newTemplate) ( _elementTemplate = newTemplate; return this; ) /// /// Change or update the regex for a certain type (number, uppercase ...) /// /// type of the regex /// new value for the regex /// public PasswordRegexGenerator ChangeRegexElements (string name, string regex) ( if (_elements.ContainsKey (name)) ( _elements[ name ] = regex; ) else ( _elements.Add (name, regex); ) return this; ) #region construction methods / // /// Adding number requirement /// /// /// /// public PasswordRegexGenerator Number (int min = 1, int max = 0) ( _sb.Append (Construct (_elements[ "number" ], min, max)); return this; ) public PasswordRegexGenerator UpperCase (int min = 1, int max = 0) ( _sb.Append (Construct (_elements[ "uppercase" ], min, max)); return this; ) public PasswordRegexGenerator LowerCase (int min = 1, int max = 0) ( _sb.Append (Construct (_elements[ " lowercase" ], min, max)); return this; ) public PasswordRegexGenerator SpecialCharacter (int min = 1, int max = 0) ( _sb.Append (Construct (_elements[ "special" ], min, max)); return this ; ) public PasswordRegexGenerator Total (int min, int max = 0) ( string count = min.ToString () + ((max == 0) ? "" : "," + max.ToString ()); _sb.Append ( ".(" + count + ")"); return this; ) #endregion public string Compose () ( return "(" + _sb.ToString () + ")"; ) )

How to understand: passwords must contain at least 8 characters, including numbers

  1. Dirzhi 15dfgf61989
  2. HOW TO UNDERSTAND YOUR LOGIN CONTAINS PROHIBITED SYMBOLS (a-zA-zO-9_)*
  3. What's incomprehensible here? 8 characters must contain at least one digit...
  4. passwords usually consist of Latin letters and numbers, for example R111d222g333
  5. The password should not contain more than 5 numbers
    Password must contain at least 1 non-alphanumeric characters
  6. scribe... it looks like this: dfcz1234
  7. this is what it looks like: poiu1234
  8. The password must contain no less than 8 and no more than 12 characters. The password must contain only Latin uppercase and lowercase letters and numbers.
  9. The password must contain both numbers and letters, but no more than 8 characters in total
  10. You just need to make sure that 1 letter is with caps lock
  11. Your admin has written a rule for entering passwords, i.e. the scheme is something like this, for example qwer-123, or asdf*321 or 123qweASD
  12. The password must contain both letters and numbers. it's better encrypted
  13. Moy8paroL Here
  1. Loading... how to add a video file from your desktop to a wall contact? this is the easiest thing. . upload video from computer to vk.com (to yourself...
  2. Loading... How to download the former ifolder from Rusfolder You can do this: Set up a browser in Windows so that it pretends to be, for example, Chrome with MacOS. (for firefox this is...
  3. Loading... what is the best anti-Trojan, can you tell me? The adaware anti-Trojan has been working for me http://files.mail.ru/O4WA4H - Spyware Terminator has been working against Trojans and viruses for almost a year, not yet...
  4. Loading... In order to make a link for a site, you can use several methods. And a lot of the way this is done depends on the resource you're planning on...
  5. Loading... I lost my Steam password and forgot the answer to my secret question, I only know my nickname. What to do? go to Steam, I forgot my password, etc...
  6. Loading... Kaspersky Anti-Virus is not uninstalled! what to do? In the vast majority of cases, to correctly remove Kaspersky, the standard method is sufficient - through the Control Panel. In case of occurrence...

When asked, the Password must be between 8 and 16 characters, including at least one lowercase letter, one uppercase letter, and one number. given by the author Dagestan power the best answer is Not necessary. I have a set of 8 numbers and a letter. Good luck!

Answer from Anya Korytnik[newbie]
dfghjkLLLL999


Answer from Eurovision[guru]
link
You need numbers at the bottom, turn them on, and at the same time special characters if necessary
==
I succeeded
5JTxuob108AUl15A


Answer from Become aware[active]
Already registered?


Answer from tales[newbie]
lhe0rxqu3


Answer from Sergo baby[newbie]
Your password must be 6-12 characters long and contain a combination of letters and at least one number (*@#?$%, etc. is not allowed).
Hello guys, can you tell me what password I can’t come up with?


Answer from ANASTASIA SCHINDRIGINA[active]
Password: SXGgfsndfhj654
Password: HGDFHuufhgsdf
And this can go on forever...
Or your date of birth or year of birth :)


Answer from Kirill Perdunov[newbie]
sort of yes or kind of no


Answer from Lbvf t,frjd[newbie]
come up with it yourself, otherwise someone will say it yourself, you will do it and they will slap you


Answer from Pasha Pidr[newbie]
Nada vadit whatever is good wholesale


Answer from Kirill Starikov[newbie]
Large letters, numbers, and symbols must be, in general, a complete mince of the password, and only then the field will light up green


Answer from Sergio00o[guru]
Not necessary!


Answer from ЀА[guru]


Answer from CAHR[guru]
Yes


Answer from ZLOBNYI XOXOL[newbie]
A password is the only and most important protection for your registration. Take this seriously! If you think someone has access to your data, change your password. Do not use simple passwords like “12345”, “qwerty”, “password”, etc. Do not write your first name, last name, birthday or passport number, just names or nouns as a password! Such passwords are very easy to guess. The password must: contain at least 6 characters; contain capital and lowercase Latin letters; contain numbers or punctuation elements; do not match the login; be easy to remember so that you yourself do not forget it.


Answer from Igor Cheryomukhin[active]
prince who am I


Answer from Dimentiy S.[newbie]
The password must contain several characters, including a minimum of: one string of letters, one string of numbers, and one string of symbols. Here... For reliability, you can add a line of spaces.


Answer from Kawaii Girl[newbie]
Hello! I can't register. Help me please?! They write to me: Attention! Your registration has NOT been accepted! The nickname and password must consist of at least 6 characters and only letters and numbers!


Answer from _ginger_[guru]
An example of such a password
Moy8paroL
There are uppercase and lowercase letters, and there is also 1 number.


Answer from Victoria Gizatulina[guru]
Computer security experts agree that a brute-force password should consist of at least eight mixed-case characters (lowercase and uppercase letters), including numbers and/or special characters. Only such a password can be partially considered reliable.
Why partly? According to statistics, in the vast majority of cases when a network attack is carried out, the victim’s computer is attacked on average more than 2000 times a day - this is enough for after some time - depending on the attackers’ available capabilities - to even select a complex password of 8 characters. Therefore, it is advisable to change the password at least once a month.
There is nothing more to add - add letters
Finally, it is extremely important to use different passwords for different sites and services. Creating your own memorization system will help greatly facilitate the process of using a large number of different combinations. So, as an example of a convenient mnemonic technique, Stanislav Shevchenko, head of the education department at Kaspersky Lab, recommends adding alphabetic (numeric) characters to the secret word, which will help associatively associate the password with a specific site. For example, if we are talking about the website “Odnoklassniki. ru", the password can start or end with the letter "o", if we are interested in the social network "VKontakte", we can add the letter "v" to our code word.

Any person who uses the Internet has probably more than once encountered the need to come up with and set passwords: for logging into mail, for an account on a forum, for online banking. And in almost every registration form you are advised to come up with a strong password. After all, the confidentiality of your correspondence, the safety of your funds, and the security of your computer as a whole depend on how complex your secret word or phrase is. The question arises: how to come up with a complex password?

How to come up with a strong password

Length. The recommended minimum length for a strong password is 8 characters. It is believed that cracking passwords of 8 or more characters by guessing is a too long process and the chances of an attacker finding such a combination are too small.

Register. A good password should contain both lowercase and uppercase letters.

Special characters. An extremely secure password, along with letters and numbers, also contains special characters. For example #, ~,+, _

In total, the ideal option would be a combination of upper and lower case Latin letters, numbers and special characters with a total length of at least 8 characters. For example:

uE_xm932
9203Jb#1
29Rtaq!2

Which should never be used as a password

Never use: as a password or secret word:

  • dates of birth
    The biggest stupidity is to set your own date of birth in the format 12071992 as a password for your VKontakte page, where the same date is indicated in the information :)
  • phone numbers
    A password consisting of your phone number will not be cracked only by the lazy. And here it doesn’t matter how many numbers there are :)
  • names, surnames, animal names
    It's funny when people consider a mother's maiden name to be a magically reliable protection. ...which the whole yard has known for 50 years :)
  • and of course, all sorts of nonsense like “qwerty123”, “password”, “password”, “********”, “123”, “12345678”, “fyva”, “asdf”, etc. By the way, the leader among secretaries’ passwords is “one”, i.e. one single digit “1” :)

Conclusion

In conclusion, I want to say - do not neglect your safety. Do not use the same secret words for authorization on different sites and services, no matter how complex and reliable they may be. If you have one password for everything, everywhere, then by hacking one site, attackers can gain access to all your online accounts, which means they can see information on yours, use saved credentials in the browser and other information. And remember: there is nothing more permanent than temporary. Therefore, do not be lazy to come up with strong combinations and set complex passwords straightaway- don’t put this matter off until later. Let your information be available only to you! Good luck!