99542bb2879de19f1ca000f8de884ed3477cfbaf
technology/networking/openssl.md
| ... | ... | @@ -5,5 +5,15 @@ |
| 5 | 5 | openssl s_client -connect domain.com:443 |
| 6 | 6 | ``` |
| 7 | 7 | |
| 8 | +## encrypt file |
|
| 9 | +``` |
|
| 10 | +openssl enc -aes-256-cbc -salt -in examplefile -out examplefile.enc |
|
| 11 | +``` |
|
| 12 | + |
|
| 13 | +## decrypt file |
|
| 14 | +``` |
|
| 15 | +openssl enc -aes-256-cbc -d -in examplefile.enc -out examplefile |
|
| 16 | +``` |
|
| 17 | + |
|
| 8 | 18 | ## encryption |
| 9 | 19 | https://linuxconfig.org/using-openssl-to-encrypt-messages-and-files-on-linux |