Skip to main content

Cipher Shield

cipher-shield là bộ mã hóa/giải mã file dùng:

  • AES-256-GCM
  • PBKDF2-HMAC-SHA256
  • ZLIB
  • CUTC text envelope (Base64)

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ã hóa:

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

Giải mã:

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

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

Ghi chú

  • Mặc định chỉ tạo file đầu ra nếu thao tác hợp lệ.
  • Header được ràng buộc bằng AAD của AES-GCM để phát hiện sửa đổi.
  • Dữ liệu CUTC được bóc tách theo khung Base64 an toàn.

Metadata

Release files for cipher-shield 2.1.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 cipher-shield 2.1.0
File Size Uploaded
cipher_shield-2.1.0.tar.gz 10.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cipher-shield 2.1.0
File Interpreter ABI Platform
cipher_shield-2.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 22.8 kB

Release files / cipher_shield-2.1.0.tar.gz

Download URL cipher_shield-2.1.0.tar.gz
Size 10.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f340c0433811c41aa6eb55b5d0c814e3c2c0f72d52c00524638c50332af07475
BLAKE2b-256 checksum
How to use checksums
9babb1195ec4c6f42c257f88e3cc38a7f7434eebf55b8dfdc76a7927c765f287
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / cipher_shield-2.1.0-py3-none-any.whl

Download URL cipher_shield-2.1.0-py3-none-any.whl
Size 12.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8857211255753c01f53a709fa6c8755156fe4c90bf73f71e59d104a9a5f547a9
BLAKE2b-256 checksum
How to use checksums
7fe6a3e66d6cb86ef5ec34fcc22edfc67cbf5c4d4f3a0528116d5bde1500795a
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

This release

2.1.0 This release

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