Internationalization Puzzles

No user set, Login with GitHub Login with Google scoreboard

Unicode passwords

Most websites that accept passwords have some requirements. For example, they make you include at least one digit and at least one capital letter. The idea is that if you pick passwords from a large set of possible characters, the password will be harder to crack using brute force methods. It’s much harder to guess a password that include digits, upper-case and lower-case letters (62 possibilities) instead of just lower-case letters (26 possibilities) You wonder why websites don’t encourage you to use accented characters, because it would dramatically increase the possibilities even further. Unicode is a boon for strong passwords.

Here we’ll look at what such a password system could look like.

The IT department of a ficticious company named “TOPlap” has decided to introduce new, unicode-based password requirements. The requirements are as follows:

Given this test input:

d9Ō
uwI.E9GvrnWļbzO
ž-2á
Ģ952W*F4
?O6JQf
xi~Rťfsa
r_j4XcHŔB
71äĜ3

The IT department decided to do a little research on how well people handle these requirements. So they ask all the people at the company to choose a password, and then the IT department checks how often they manage to meet the password requirements correctly.

Your input is a list of passwords, one on each line. Write a program that checks if each password meets the requirements. Your answer should be the number of passwords that are valid. In the test input given above, the number of valid passwords is ‘2’.

Reading & reference materials

Each programming language is slightly different, use Google to find similar articles for yours.


You must be logged in to get the puzzle input and submit answers