Okay, so let's walk through the solution if I go into the file in fact
I haven't actually created it yet so let me just go into my file dot yl
Have my three hyphens at the top
So I'll add the name key and I'll give it the value of some owner and I'll
specify an occupation key and
Samona can be an engineer kills
Let's just save this right now as we can see this file is fully readable as it
stands at the moment
It is not protected
So what we want to do is to use answerable fault to actually encrypt this
particular file
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
So again if you don't recall how to actually use answerable vault you can use
the - help option
And this is going to tell us all the ways in which we can use this particular
term
So we see we have some positional arguments create the crypt edit view encrypt
that type of thing now it says here
Create that sounds like it might be what we want
But this is to create a new vault encrypted file remember
This is for fails that don't already exist when we just use the encrypt option
This is how we can actually encrypt an already existing yaml file
Okay, so this here is the particular utility that we want to use so let's go
and try this them
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
So if I just happen to say answerable - vault and I say encrypt and I specify
the file as my file
Dot yml what I'm going to have to do is to provide the actual password that I
specified in the password should be nuggets as we see right here
So I was typing nuggets and again
I'll just confirm that with nuggets and now if I do it in ls we still have my
fail here
But if I happen to try to cat it and to enter now we just get what is the
encrypted version utilizing a yes to five six encryption
So if I try to view the contents of this particular file WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
So if I try to view the contents of this particular file
I would say answerable vault view and then my fail dot yml if I enter
I'm going to have to provide the password if I type the wrong part of us such
as maybe say Bob
That is not the right password
So we're not going to be allowed to view it if I try a game and I type in the
password of nuggets
Which is the correct password now we see the actual contents now the next thing
we want to do is to actually
Updates the password as we see right here
We want to change this to the password of CBT and pass and now we don't
actually wanted to connect to the file on disk WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
actually wanted to connect to the file on disk
So this is what I'm trying to say here if we go back into the help menu
What we don't want to do is to decrypt the file
Which is going to decrypt the file and then leave it on disk and then
effectively
Re-encrypt it by using the encrypt option again instead
We want to use the re-key option which is going to allow us to effectively give
a new password to the vault and
Cryptophile whilst I'm leaving it as an encrypted file game
So I'll say answerable vault re-key this time and the file is going to be my
fail dot yml
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
If I hit enter I'm going to have to first type in the original password so I
can get access to the actual files
I'll say nuggets and now I'm going to have to type in my new updated password
Which in my case here is CBT and pass and again, I'm going to have to reconfirm
that with CBT and pass with that now done
If I enter now the re-key has been successful
So if I now say answerable vault and I try to view the same file again if I
type in nuggets
This is not going to be the correct password
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
But if I try again and I know type in CBT and pass and to enter as we can see
here
We now get access to that particular file