Skip to content

ttcong/hello-cryptography

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hello-cryptography

Vài ví dụ hello-cryptography bằng python và thư viện pycrypto

  1. Mã hóa dữ liệu với thuật toán AES

Cú pháp: encrypt.py –m –i <tên file input> <tên file output>

  1. Giải mã dữ liệu với thuật toán AES

Cú pháp: decrypt.py –m <tên file input> <tên file output>

  1. Tính checksum của file với các thuật toán hex và kiểm tra có khớp với checksum cho trước không

Cú pháp: checksum.py –h -c <tên file input>

Với:

  • -h là thuật toán hash để tạo checksum như md5, sha1, sha256

  • -c : checksum đua vào kiểm tra có khớp với checksum được tính từ file hay không, nếu có trường này thì sẽ kiểm tra checksum, nếu không có sẽ tính checksum của file và xuất ra output chuẩn

  1. Tạo chữ ký

Cú pháp: sign.py –h <tên file input> <tên file sẽ ghi chữ ký vào>

  1. Kiểm tra chữ ký

Cú pháp: very_sign.py –h <tên file input> <tên file chứa chữ ký >

About

Some hello-world examples about cryptography

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages