https://github.com/ttcong/hello-cryptography
Some hello-world examples about cryptography
https://github.com/ttcong/hello-cryptography
cryptography pycrypto python
Last synced: about 1 year ago
JSON representation
Some hello-world examples about cryptography
- Host: GitHub
- URL: https://github.com/ttcong/hello-cryptography
- Owner: ttcong
- Created: 2016-03-21T15:06:15.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-04-26T06:11:40.000Z (about 9 years ago)
- Last Synced: 2025-02-03T21:58:26.722Z (over 1 year ago)
- Topics: cryptography, pycrypto, python
- Language: Python
- Homepage:
- Size: 18.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
2. Giải mã dữ liệu với thuật toán AES
Cú pháp: decrypt.py –m
3. 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
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
4. Tạo chữ ký
Cú pháp: sign.py –h
5. Kiểm tra chữ ký
Cú pháp: very_sign.py –h