How to encrypt files on Linux via terminal using GPG

preview_player
Показать описание
How to encrypt files on Linux via terminal using GPG

Commands used in the video:
To encrypt files:
$gpg -c filename

To decrypt files:
$gpg filename

Рекомендации по теме
Комментарии
Автор

You forgot something important: The test.txt that you removed with the rm command after encyrpting your file is actually still available on your filesystem as you just removed the filesystems index reference pointer in the table of contents to test.txt. A hacker can recover this file to its original state.

So if you not host your data on an encrypted filesystem and in order to safely (military level) remove test.txt, you should shred it using random bytes prior to the rm command, e.g. 'shred test.txt && rm test.txt'. More info 'man shred'.

marculix
Автор

Well guys, as you can see I'm trying to restart again with the channel. This time in English and I'll try to keep uploading videos every day. If you like this content, please don't forget to subscribe, like and enable notifications for new content.

AaronStarkLinux
Автор

Hello! Thanks for the video. I was wandering if this is decipherable from another computer, since you haven't provided the passphrase

hackergr
Автор

What desktop environment are you using? It so beautiful

mostafaebrahimi
Автор

dude... you use vim? I feel bad for you. Anyhoo, thnx for the info.

humptyDumptyHadAGreatFall
Автор

if you want to encrypt it very good try this gpg -c --no-symkey-cache --cipher-algo AES256 -c --no-symkey-cache = symmetric
--symmetric
-c Encrypt with a symmetric cipher using a passphrase. The default symmetric cipher used is AES-128, but may be chosen with the
--cipher-algo option. This command may be combined with --sign (for a signed and symmetrically encrypted message), --encrypt
(for a message that may be decrypted via a secret key or a passphrase), or --sign and --encrypt together (for a signed mes‐
sage that may be decrypted via a secret key or a passphrase). gpg caches the passphrase used for symmetric encryption so
that a decrypt operation may not require that the user needs to enter the passphrase. The option --no-symkey-cache can be
used to disable this feature.
cipher-algo AES256 = the encryption algorithm is aes256 normally it uses aes128 so it is as sucre as you can make it this is what i do for all my files in the cloud google drive & dropbox to be precise

linuxstreamer