Skip to main content

Cipher Shield

cipher-shield là bộ mã hoá/giải mã, phân tích và kiểm tra độ đầy đủ source dùng:

  • AES-256-GCM
  • PBKDF2-HMAC-SHA256
  • ZLIB
  • CUTC text envelope (Base64)
  • Seal mode: gắn footer kiểm tra toàn vẹn 1 dòng
  • Phân tích cấu trúc file chuyên sâu
  • So sánh 2 file theo hash / entropy / byte đầu tiên khác nhau
  • Audit source tree để kiểm tra độ đầy đủ của code

Cài như một gói pip

pip install .

Cài ở chế độ dev:

pip install -e .

Build wheel:

python -m pip install build
python -m build

Dùng CLI

Mã hoá:

cipher-shield input.bin
cipher-shield input.bin output.ec --seal
cipher-shield input.bin output.cutc --cutc
cipher-shield input.bin output.enc --password "matkhau"

Giải mã:

cipher-shield -dc input.ec
cipher-shield -dc input.cutc
cipher-shield -dc input.enc output.bin

Phân tích cấu trúc file:

cipher-shield --inspect input.bin
cipher-shield --inspect input.cutc --json
cipher-shield --inspect input.bin --report report.json

So sánh 2 file:

cipher-shield --compare other.bin input.bin
cipher-shield --compare other.bin input.bin --json

Audit source:

cipher-shield --audit .
cipher-shield --audit /path/to/source --json

Tuỳ chọn chính

  • -h, --help, -help: trợ giúp
  • -dc: giải mã
  • -en: mã hóa
  • --cutc: xuất ra CUTC text
  • --seal: bật footer kiểm tra toàn vẹn 1 dòng
  • --cutc-style: chọn kiểu banner
  • --cre TLVM: hiển thị credit trong banner / metadata
  • --deep: bật chế độ kiểm tra bảo mật chặt hơn
  • -p, --password: truyền mật khẩu
  • -k, --key-file: đọc mật khẩu từ file text
  • -f: ghi đè file đầu ra
  • -rm: xoá file gốc sau khi xử lý
  • --dry-run: chạy thử, không ghi file
  • --inspect: phân tích file
  • --compare FILE: so sánh file đầu vào với một file khác
  • --audit [PATH]: kiểm tra độ đầy đủ của source
  • --json: xuất báo cáo JSON
  • --report PATH: lưu báo cáo ra file

Ghi chú

  • Seal mode dùng key gốc để mã hoá file, đồng thời dùng SHA-256 của key để khoá footer kiểm tra hash của file đã mã hoá.
  • Header được ràng buộc bằng AAD của AES-GCM để phát hiện sửa đổi.
  • Phân tích file sẽ nhận diện: CUTC text, payload binary, độ entropy, hash SHA-256 / MD5 và byte khác nhau đầu tiên khi so sánh.

Metadata

Release files for cryptography-tlvm 2.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cryptography-tlvm 2.4.0
File Size Uploaded
cryptography_tlvm-2.4.0.tar.gz 18.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cryptography-tlvm 2.4.0
File Interpreter ABI Platform
cryptography_tlvm-2.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 37.2 kB

Release files / cryptography_tlvm-2.4.0.tar.gz

Download URL cryptography_tlvm-2.4.0.tar.gz
Size 18.2 kB
Tags Source
SHA-256 checksum
How to use checksums
55bdddaea64c909a640e46a221a6db7c385c3585ffec2e61cfb501044693eb52
BLAKE2b-256 checksum
How to use checksums
3b32dc3bc06c3828aa995f40adc90020ec78ce07bb6e35e096ba6e9bf368a91a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / cryptography_tlvm-2.4.0-py3-none-any.whl

Download URL cryptography_tlvm-2.4.0-py3-none-any.whl
Size 19.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8fc9f83d1ea84746f73651e5f9ed495cc39240949f13fff0bbb20dfc14c06a8a
BLAKE2b-256 checksum
How to use checksums
78d10fc9b2dac127e7ffc47cadb9a43fd0ef92bfc8f80a8906067fbc5ddfac71
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release history Release notifications | RSS feed

2.4.2

2 release files

2.4.1

2 release files

This release

2.4.0 This release

2 release files

2.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page