Update README.md

openssl encryptiong
This commit is contained in:
rootTHC
2020-01-25 13:21:21 +00:00
committed by GitHub
parent 1cc756af31
commit 21076d926a
+16
View File
@@ -49,6 +49,7 @@ Got tricks? Send them to root@thc.org or submit a pull request.
7. [Crypto](#cr-anchor)
1. [Generate quick random Password](#crgrp-anchor)
1. [Linux transportable encrypted filesystems](#crltefs-anchor)
1. [Encrypting a file](#cref-anchor)
8. [Miscellaneous](#misc-anchor)
1. [Sniff a user's SSH session](#sss-anchor)
1. [Sniff a user's SSH session without root priviledges](#ssswor-anchor)
@@ -501,6 +502,21 @@ Store data in `/mnt/crypted`, then unmount:
# losetup -d /dev/loop0
```
<a id="misc-anchor"></a>
**7.iii Encrypting a file**
Encrypt your 0-Days and log files before transfering them - please. (and pick your own password):
Encrypt:
```
$ openssl enc -aes-256-cbc -pbkdf2 -k fOUGsg1BJdXPt0CY4I <input.txt >input.txt.enc
```
Decrypt:
```
$ openssl enc -d -aes-256-cbc -pbkdf2 -k fOUGsg1BJdXPt0CY4I <input.txt.enc >input.txt
```
---
<a id="misc-anchor"></a>
<a id="sss-anchor"></a>