An open API service indexing awesome lists of open source software.

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

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