grimoire

personal wiki
git clone git://git.pyratebeard.net/grimoire.git
Log | Files | Refs

commit 99542bb2879de19f1ca000f8de884ed3477cfbaf
parent 8891f69fdbcd433f22b6de6d24593310790ec0c4
Author: pyratebeard <root@pyratebeard.net>
Date:   Wed, 20 Feb 2019 23:41:20 +0000

encrypt and decrypt file examples

Diffstat:
Mtechnology/networking/openssl.md | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/technology/networking/openssl.md b/technology/networking/openssl.md @@ -5,5 +5,15 @@ openssl s_client -connect domain.com:443 ``` +## encrypt file +``` +openssl enc -aes-256-cbc -salt -in examplefile -out examplefile.enc +``` + +## decrypt file +``` +openssl enc -aes-256-cbc -d -in examplefile.enc -out examplefile +``` + ## encryption https://linuxconfig.org/using-openssl-to-encrypt-messages-and-files-on-linux