You are on page 1of 5

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)

- Chuyển đến thư mục cài đặt OpenSSL

- 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>

 Decryption: openssl aes-128-cbc -d -in <file1> -out <file2>


- Thực tập sinh số ngẫu nhiên:

- 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>

 Decryption: openssl rc4 -d -provider-path option -provider default -in


<file1> -out <file2>

You might also like