반응형
[대칭키 암호화, 복호화]
echo 'this is the plain text' > plaintext.txt;
openssl enc -e -des3 -salt -in plaintext.txt -out ciphertext.bin;
openssl enc -d -des3 -in ciphertext.bin -out plaintext2.txt;
[비대칭키 생성 및 암호화 복호화]
openssl genrsa -out private.pem 1024;
openssl rsa -in private.pem -out public.pem -outform PEM -pubout;
echo 'coding everybody' > file.txt
openssl rsautl -encrypt -inkey public.pem -pubin -in file.txt -out file.ssl;
openssl rsautl -decrypt -inkey private.pem -in file.ssl -out decrypted.txt반응형
'ITNSA' 카테고리의 다른 글
| 2023년 기능경기대회 후기 (2) | 2023.04.10 |
|---|---|
| 2022 Theory of ITNSA Service (Container Monitioring Service) (0) | 2023.02.27 |
| [GNS3] DMVPN Setting (0) | 2022.11.15 |
| [GNS3] GRE-over-IPSEC Setting (0) | 2022.11.14 |
| 패킷트레이서 라우팅 총 명령어집 (0) | 2022.11.09 |