1
00:00:00,430 --> 00:00:02,800
All right guys, well done for sticking it through.

2
00:00:02,830 --> 00:00:06,220
You are now on day 5 of 100 Days of code.

3
00:00:06,610 --> 00:00:09,190
And today I've got a fun project for you.

4
00:00:09,730 --> 00:00:13,660
And the inspiration for the project comes from the fact that all sorts of

5
00:00:13,660 --> 00:00:17,440
companies seem to be getting hacked these days. Everything from Ashley

6
00:00:17,440 --> 00:00:18,820
Madison to Verizon,

7
00:00:18,850 --> 00:00:22,690
everybody seems to be really bad at keeping your password safe.

8
00:00:23,200 --> 00:00:28,200
So, how can we make sure that these hackers who are in hoodies and wearing face

9
00:00:29,110 --> 00:00:33,200
masks, don't get to you and your account? I

10
00:00:33,220 --> 00:00:36,640
don't know why hackers are always portrayed like this? I mean,

11
00:00:36,670 --> 00:00:40,630
they're in their own house. They don't have to hide their face.

12
00:00:41,410 --> 00:00:44,620
But at least they are conscious of not spreading germs and staying warm.

13
00:00:44,650 --> 00:00:49,210
So that's good. But how do these hackers get into your account anyways?

14
00:00:49,630 --> 00:00:50,050
Well,

15
00:00:50,050 --> 00:00:55,050
one of the most common reasons is password reuse. Using the same password on 20

16
00:00:55,540 --> 00:00:58,960
different sites from Google to Facebook, to Skype, to Spotify,

17
00:00:59,230 --> 00:01:01,600
to all the random services that we sign up to.

18
00:01:02,110 --> 00:01:04,480
The problem is that when one of these sites get hacked,

19
00:01:04,629 --> 00:01:09,190
then the email and password combination you used to signup is compromised.

20
00:01:09,400 --> 00:01:13,600
So all a hacker has to do is try out those credentials on a bunch of other

21
00:01:13,600 --> 00:01:17,200
websites and see if they work. So how would you know,

22
00:01:17,200 --> 00:01:21,610
if your email and password is on a database somewhere? You can head over to have

23
00:01:21,610 --> 00:01:24,520
ibeenpwned.com, notice the spelling there,

24
00:01:24,910 --> 00:01:29,410
and type in your email to see if it was involved in a website that had been

25
00:01:29,410 --> 00:01:30,243
hacked.

26
00:01:30,280 --> 00:01:35,050
So let's try an email here: elon@tesla.com

27
00:01:36,850 --> 00:01:40,210
And it tells us, Oh, no, it seems like this email has been pwned.

28
00:01:40,810 --> 00:01:43,570
And these where the websites which got hacked

29
00:01:43,630 --> 00:01:48,040
potentially leaking this email and it's associated password.

30
00:01:48,850 --> 00:01:52,150
I actually recommend you to try out your own email addresses right now and see

31
00:01:52,150 --> 00:01:55,300
which services you signed up to have been compromised.

32
00:01:55,600 --> 00:01:57,490
But if you want better security,

33
00:01:57,550 --> 00:02:01,630
then you'll actually need unique passwords for each and every website.

34
00:02:02,380 --> 00:02:06,340
And they should really be strong passwords, not 12345

35
00:02:06,340 --> 00:02:10,810
6, or qwerty. If I just called out your password,

36
00:02:11,080 --> 00:02:11,913
please change it.

37
00:02:13,390 --> 00:02:17,890
Now what we're going to be building is exactly that. We're going to be building a

38
00:02:17,920 --> 00:02:19,600
password generator,

39
00:02:19,870 --> 00:02:24,870
something that's going to generate strong passwords with letters and symbols and

40
00:02:25,450 --> 00:02:29,860
numbers. First, they ask us how many letters would you like in your password?

41
00:02:30,160 --> 00:02:34,270
I would like 12. How many symbols would you like? I would like 2.

42
00:02:34,930 --> 00:02:38,050
And I would also like 2 numbers in my password.

43
00:02:38,560 --> 00:02:43,560
And then I hit enter and it gives me the password that it has generated with two

44
00:02:45,100 --> 00:02:49,150
symbols, two numbers and 12 letters.

45
00:02:49,210 --> 00:02:52,000
So that's a pretty strong looking password

46
00:02:52,300 --> 00:02:57,300
if you asked me. Now I can use this and update my passwords to something very

47
00:02:58,210 --> 00:03:00,040
strong and very secure.

48
00:03:00,610 --> 00:03:05,470
So this is what we'll be building by the end of today. But in order to do it,

49
00:03:05,530 --> 00:03:09,580
we first need to learn some new skills and new concepts.

50
00:03:09,760 --> 00:03:12,400
So head over to the next lesson and let's get started.

