WEBVTT

1
00:00.000 --> 00:03.000
Okay, so let's walk through the solution if I go into the file in fact

2
00:03.000 --> 00:06.400
I haven't actually created it yet so let me just go into my file dot yl

3
00:06.400 --> 00:08.480
Have my three hyphens at the top

4
00:08.480 --> 00:12.560
So I'll add the name key and I'll give it the value of some owner and I'll

5
00:12.560 --> 00:14.220
specify an occupation key and

6
00:14.220 --> 00:17.000
Samona can be an engineer kills

7
00:17.000 --> 00:20.510
Let's just save this right now as we can see this file is fully readable as it

8
00:20.510 --> 00:21.680
stands at the moment

9
00:21.680 --> 00:23.280
It is not protected

10
00:23.280 --> 00:26.600
So what we want to do is to use answerable fault to actually encrypt this

11
00:26.600 --> 00:27.480
particular file

12
00:27.480 --> 00:30.750
So again if you don't recall how to actually use answerable vault you can use
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

12
00:27.480 --> 00:30.750
So again if you don't recall how to actually use answerable vault you can use

13
00:30.750 --> 00:31.400
the - help option

14
00:31.400 --> 00:34.720
And this is going to tell us all the ways in which we can use this particular

15
00:34.720 --> 00:35.080
term

16
00:35.080 --> 00:39.130
So we see we have some positional arguments create the crypt edit view encrypt

17
00:39.130 --> 00:41.120
that type of thing now it says here

18
00:41.120 --> 00:43.720
Create that sounds like it might be what we want

19
00:43.720 --> 00:46.920
But this is to create a new vault encrypted file remember

20
00:46.920 --> 00:51.120
This is for fails that don't already exist when we just use the encrypt option

21
00:51.120 --> 00:55.160
This is how we can actually encrypt an already existing yaml file

22
00:55.160 --> 00:59.130
Okay, so this here is the particular utility that we want to use so let's go

23
00:59.130 --> 00:59.840
and try this them

24
00:59.840 --> 01:05.720
So if I just happen to say answerable - vault and I say encrypt and I specify
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

24
00:59.840 --> 01:05.720
So if I just happen to say answerable - vault and I say encrypt and I specify

25
01:05.720 --> 01:06.800
the file as my file

26
01:06.800 --> 01:11.020
Dot yml what I'm going to have to do is to provide the actual password that I

27
01:11.020 --> 01:14.080
specified in the password should be nuggets as we see right here

28
01:14.080 --> 01:16.840
So I was typing nuggets and again

29
01:16.840 --> 01:20.910
I'll just confirm that with nuggets and now if I do it in ls we still have my

30
01:20.910 --> 01:21.480
fail here

31
01:21.480 --> 01:25.340
But if I happen to try to cat it and to enter now we just get what is the

32
01:25.340 --> 01:28.480
encrypted version utilizing a yes to five six encryption

33
01:28.480 --> 01:31.640
So if I try to view the contents of this particular file
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

33
01:28.480 --> 01:31.640
So if I try to view the contents of this particular file

34
01:31.640 --> 01:36.920
I would say answerable vault view and then my fail dot yml if I enter

35
01:36.920 --> 01:39.890
I'm going to have to provide the password if I type the wrong part of us such

36
01:39.890 --> 01:40.840
as maybe say Bob

37
01:40.840 --> 01:42.600
That is not the right password

38
01:42.600 --> 01:46.170
So we're not going to be allowed to view it if I try a game and I type in the

39
01:46.170 --> 01:47.320
password of nuggets

40
01:47.320 --> 01:51.760
Which is the correct password now we see the actual contents now the next thing

41
01:51.760 --> 01:52.960
we want to do is to actually

42
01:52.960 --> 01:55.300
Updates the password as we see right here

43
01:55.300 --> 01:59.310
We want to change this to the password of CBT and pass and now we don't

44
01:59.310 --> 02:01.240
actually wanted to connect to the file on disk
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

44
01:59.310 --> 02:01.240
actually wanted to connect to the file on disk

45
02:01.240 --> 02:05.040
So this is what I'm trying to say here if we go back into the help menu

46
02:05.040 --> 02:08.000
What we don't want to do is to decrypt the file

47
02:08.000 --> 02:11.160
Which is going to decrypt the file and then leave it on disk and then

48
02:11.160 --> 02:11.840
effectively

49
02:11.840 --> 02:14.920
Re-encrypt it by using the encrypt option again instead

50
02:15.040 --> 02:19.210
We want to use the re-key option which is going to allow us to effectively give

51
02:19.210 --> 02:21.520
a new password to the vault and

52
02:21.520 --> 02:24.480
Cryptophile whilst I'm leaving it as an encrypted file game

53
02:24.480 --> 02:28.500
So I'll say answerable vault re-key this time and the file is going to be my

54
02:28.500 --> 02:29.400
fail dot yml

55
02:29.400 --> 02:33.170
If I hit enter I'm going to have to first type in the original password so I
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

55
02:29.400 --> 02:33.170
If I hit enter I'm going to have to first type in the original password so I

56
02:33.170 --> 02:34.880
can get access to the actual files

57
02:34.880 --> 02:39.040
I'll say nuggets and now I'm going to have to type in my new updated password

58
02:39.040 --> 02:43.520
Which in my case here is CBT and pass and again, I'm going to have to reconfirm

59
02:43.520 --> 02:46.080
that with CBT and pass with that now done

60
02:46.080 --> 02:49.120
If I enter now the re-key has been successful

61
02:49.120 --> 02:53.330
So if I now say answerable vault and I try to view the same file again if I

62
02:53.330 --> 02:54.560
type in nuggets

63
02:54.560 --> 02:56.800
This is not going to be the correct password

64
02:56.800 --> 03:01.660
But if I try again and I know type in CBT and pass and to enter as we can see
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

64
02:56.800 --> 03:01.660
But if I try again and I know type in CBT and pass and to enter as we can see

65
03:01.660 --> 03:02.000
here

66
03:02.000 --> 03:04.080
We now get access to that particular file
