mirror of
https://github.com/hackerschoice/thc-tips-tricks-hacks-cheat-sheet.git
synced 2026-06-07 06:13:53 +02:00
Update README.md
openssl encryptiong
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user