Professional Documents
Culture Documents
THỰC TẬP MẬT MÃ VỚI OPENSSL
THỰC TẬP MẬT MÃ VỚI OPENSSL
1. Mục tiêu
- Dùng công cụ OpenSSL để mật mã văn bản theo các chuẩn mật mã đối xứng
khác nhau.
2. Tiến hành
- Vào notepad soạn thảo một tập tin banro.txt và lưu lại tại một thư mục (c:\
thuctap)
- Thực tập mật mã và giải mật với tập tin banro.txt theo thuật toán DES dùng
cú pháp:
Encryption: openssl des -provider-path option -provider default -in <file1> -
out <file2>
Decryption: openssl des -d -provider-path option -provider default -in
<file1> -out <file2>
- Thực tập mật mã và giải mật với tập tin banro.txt theo thuật toán DES3 dùng
cú pháp
Encryption: openssl des3 -in <file1> -out <file2>
Decryption: openssl des3 -d -in <file1> -out <file2>
- Thực tập mật mã và giải mật với tập tin banro.txt theo thuật toán AES dùng
cú pháp
Encryption: openssl aes-128-cbc -in <file1> -out <file2>
- Thực tập mật mã và giải mật với tập tin banro.txt theo thuật toán RC4 dùng
cú pháp
Encryption: openssl rc4 -provider-path option -provider default -in <file1> -
out <file2>