server eng
linux 데이터 암호화 압축 Encrypt tar
soo_wim
2022. 6. 9. 14:10
반응형
1. * 테스트 파일 만들기
2. * 암호화 압축
tar -czf - soowim | openssl enc -e -aes256 -out soowimzip.tar.gz
3. * 암호화 된 파일 풀기
openssl enc -d -aes256 -in soowimzip.tar.gz | tar xz -C /BiO/
soowimzip.tar.gz 를 /BiO/ 에 풀어랏 !
3. * 풀린 데이터 확인
시원 하게 잘 풀렸다
요약
1) Encrypt 커맨드
- tar -czf - 파일이름 | openssl enc -e -aes256 -out 압축파일이름
- ex) tar -czf - soowim | openssl enc -e -aes256 -out soowimzip.tar.gz
2) Decrypt 커맨드
- openssl enc -d -aes256 -in 압축파일이름 | tar xz -C 압축파일 풀 경로
- ex) openssl enc -d -aes256 -in soowimzip.tar.gz | tar xz -C /BiO/Install
반응형