WEBVTT

0
00:00.320 --> 00:02.780
All right, guys, well done for sticking it through.

1
00:02.810 --> 00:06.380
You are now on Day 5 of 100 Days of Code.

2
00:06.380 --> 00:09.380
And today I've got a fun project for you.

3
00:09.380 --> 00:14.930
And the inspiration for the project comes from the fact that all sorts of companies seem to be getting

4
00:14.930 --> 00:16.250
hacked these days.

5
00:16.250 --> 00:18.770
Everything from Ashley Madison to Verizon.

6
00:18.770 --> 00:22.910
Everybody seems to be really bad at keeping your password safe.

7
00:22.910 --> 00:31.160
So how can we make sure that these hackers who are in hoodies and wearing face masks don't get to you

8
00:31.160 --> 00:32.460
and your account.

9
00:32.700 --> 00:36.210
I also don't know why hackers are always portrayed like this.

10
00:36.210 --> 00:37.980
I mean, they're in their own house,

11
00:37.980 --> 00:44.250
they don't have to hide their face, but at least they're conscious of not spreading germs and staying

12
00:44.250 --> 00:44.580
warm.

13
00:44.580 --> 00:45.810
So that's good.

14
00:45.810 --> 00:49.320
But how do these hackers get into your account anyways?

15
00:49.350 --> 00:53.280
Well, one of the most common reasons is password reuse.

16
00:53.280 --> 00:59.720
Using the same password on 20 different sites, from Google to Facebook to Skype to Spotify, to all

17
00:59.720 --> 01:01.790
the random services that we sign up to.

18
01:01.820 --> 01:06.920
The problem is that when one of these sites get hacked, then the email and password combination you

19
01:06.920 --> 01:09.200
used to sign up is compromised.

20
01:09.200 --> 01:15.110
So all the hacker has to do is try out those credentials on a bunch of other websites and see if they

21
01:15.110 --> 01:15.740
work.

22
01:15.800 --> 01:20.090
So how do you know if your email and password is on a database somewhere?

23
01:20.090 --> 01:23.210
You can head over to haveibeenpwned.com.

24
01:23.210 --> 01:29.400
Notice the spelling there, and type in your email to see if it was involved in a website that had been

25
01:29.400 --> 01:30.000
hacked.

26
01:30.000 --> 01:39.510
So let's try an email here elon@tesla.com and it tells us, Oh no, it seems like this email has

27
01:39.510 --> 01:40.500
been pawned.

28
01:40.500 --> 01:48.210
And these were the websites which got hacked, potentially leaking this email and its associated password.

29
01:48.540 --> 01:53.510
I actually recommend you to try out your own email addresses right now and see which services you signed

30
01:53.510 --> 02:00.260
up to have been compromised, but if you want better security, then you'll actually need unique passwords

31
02:00.260 --> 02:01.820
for each and every website.

32
02:02.240 --> 02:08.570
And they should really be strong passwords, not 123456, or qwerty.

33
02:09.020 --> 02:12.110
If I just called out your password, please change it.

34
02:13.130 --> 02:16.340
Now, what we're going to be building is exactly that.

35
02:16.340 --> 02:22.830
We're going to be building a Password Generator, something that's going to generate strong passwords

36
02:22.830 --> 02:26.340
with letters, and symbols, and numbers.

37
02:26.520 --> 02:29.940
Firstly, it asks us how many letters would you like in your password?

38
02:29.970 --> 02:31.830
I would like 12.

39
02:31.860 --> 02:33.420
How many symbols would you like?

40
02:33.450 --> 02:34.500
I would like 2.

41
02:34.560 --> 02:38.250
And I would also like 2 numbers in my password.

42
02:38.250 --> 02:40.140
And then I hit Enter,

43
02:40.140 --> 02:49.070
and it gives me the password that it has generated with two symbols, two numbers, and 12 letters.

44
02:49.070 --> 02:53.210
So that's a pretty strong looking password, if you ask me.

45
02:53.240 --> 03:00.200
Now I can use this and update my password to something very strong and very secure.

46
03:00.320 --> 03:04.010
So this is what we'll be building by the end of today,

47
03:04.010 --> 03:09.590
but in order to do it, we first need to learn some new skills and new concepts.

48
03:09.590 --> 03:12.560
So head over to the next lesson and let's get started.