Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -60,20 +60,20 @@
public class PasswordStrength extends LessonAdapter
{
private Map<String, Password> passwords = new TreeMap<String, Password>() {{
put("pass1", new Password("123456", "seconds", "0", "dictionary based, in top 10 most used passwords"));
put("pass2", new Password("abzfezd", "seconds", "2", "26 chars on 7 positions, 8 billion possible combinations"));
put("pass3", new Password("a9z1ezd", "seconds", "19", "26 + 10 chars on 7 positions = 78 billion possible combinations"));
put("pass4", new Password("aB8fEzDq", "hours", "15", "26 + 26 + 10 chars on 8 positions = 218 trillion possible combinations"));
put("pass5", new Password("z8!E?7D$", "days", "20", "96 chars on 8 positions = 66 quintillion possible combinations"));
put("pass6", new Password("My1stPassword!:Redd", "quintillion years", "364", "96 chars on 19 positions = 46 undecillion possible combinations"));
put("pass1", new Password("123456", "seconds", "0", "Common password: In the top 5 most used passwords"));
put("pass2", new Password("abzfezd", "seconds", "0.2", "Possible a word"));
put("pass3", new Password("a9z1ezd", "seconds", "2", "Length short"));
put("pass4", new Password("aB8fEzDq", "hours", "2", "Length short"));
put("pass5", new Password("z8!E?7D$", "days", "2", "Length short"));
put("pass6", new Password("My1stPassword!:Redd", "quintillion years", "36", "Length long"));
}};

private class Password {

String password;
String timeUnit;
String answer;
private String explanation;
String explanation;

public Password(String password, String timeUnit, String answer, String explanation) {
this.password = password;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,14 @@
Here are the results you get:<br><br>

Password = 123456: <font color="#ff0000">0</font> seconds<br>
Password = abzfezd: <font color="#ff0000">2</font> seconds<br>
Password = a9z1ezd: <font color="#ff0000">19</font> seconds<br>
Password = aB8fEzDq: <font color="#ff0000">15</font> hours<br>
Password = z8!E?7: <font color="#ff0000">20</font> days<br>
Password = My1stPassword!:Redd: <font color="#ff0000">364</font> quintillion years<br>
<br><br><br>
Password = abzfezd: <font color="#ff0000">0.2</font> seconds<br>
Password = a9z1ezd: <font color="#ff0000">2</font> seconds<br>
Password = aB8fEzDq: <font color="#ff0000">2</font> hours<br>
Password = z8!E?7D$: <font color="#ff0000">2</font> days<br>
Password = My1stPassword!:Redd: <font color="#ff0000">36</font> quintillion years<br>
<br>

<font size="2"><b>Important to note</b></font><br/>
It is possible that a password could be a dictionary word or a name. In the case of a name it might be easy to guess. If it's looks like a dictionary word it could be cracked very quickly.
</body>
</html>