hello youtube and welcome to another
Linux tutorial in this video I will show
you how you can use up an SSL in order
to encrypt and decrypt files so already
let's get started so as you may know
open SSL is installed by default in
Ubuntu Linux and many other Linux
distributions actually it's a program
and a library that support different
cryptographic operations it can for
example create the hashes or generate by
private and public keys it also can
create certificate and digital signature
but in this tutorial I will just show
you how you can use open SSL in order to
encrypt and decrypt files so let's begin
so as you can see here on my desktop I
have a file called sample that SQL so if
I open it using for example sublime text
you will see is just the database
actually SQL statement for a database so
let's say that we want actually to
encrypt this file so in order to do it
using open SSL it's really easy all you
have to do is to type the command open
SSL then you have to specify which
cipher you want to encrypt your file wet
so here I'll be using as 256 with the
mod CBC ok then space and do specify - a
- a actually means the encrypted output
will be base64 encoded so it can be
actually applied using text editor or it
can be attached to an email for example
so this option is optional so you can
get rid of of it if you don't want to
use it okay
then space that mine is a salt actually
this option also adds strength to do
encryption and should always be used
okay then we have to provide actually
the input file so our just type - in for
input and I can specify my file which is
sample not SQL okay then we have to
provide the name of our encrypted file
so I will use option - out for output
and then I can specify the file that
will be encrypted so I will just call it
some but encrypt okay then I hit enter I
get something wrong yes actually I have
to add here a t4 output and here we go
now it will ask me for actually the best
friends or encryption key so here you
have to provide a password or secret
password so I will just use password as
encryption key here I will have to
verify it all type at once again
here we go now you can see that I have
created an encrypted version of my file
here so let's open this encrypted file
here we go you can see now it's
completely corrupted okay so it's pretty
easy process now in order to decrypt
this file of course I have to provide
this passphrase that they have entered
here which is our encryption password so
in order to actually decrypt the file
you have to reverse the process but you
have also to add option here - D for
decrypt ok so the input this time will
be my encrypted file which is that D and
C and let's actually specify as input
you crept here ok
you can add a Y if you want ok so if I
hit enter it will ask me for the secret
key which is in my case password
here we go as you can see now on my
desktop I have recreated what we call a
plan text or a decrypted version of my
encrypted file so let's open it using
text editor and here we go you can see
that I have actually my SQL statement
for my database so open SSL actually is
a very powerful tool that you can use in
order to encrypt and decrypt your files
of course you can use whatever cipher or
encryption algorithm you want here I I
used is 256 which is actually stoned are
in the united state government but you
can use whatever encryption algorithm
you want for example three days or
Blowfish or as you want if you want to
see all the encryption or the ciphers
that are actually compatible with open
ssl all you have to do is to type the
command open ssl then the option list
Seifer algorithms
okay so here you can see all surfers
algorithms that are supported by open
SSL so there are quite a lot that you
can use is 128 with the mod CPC or CFP
so there are plenty of ciphers that you
can use with open SSL so that was just a
brief introduction to how we can use
open SSL on the command line on Ubuntu
Linux as always I hope it has been
informative for you
and I want to thank you for viewing
bye bye