Skip to main content

A versatile and efficient cryptography library implemented in Python

Project description

Crypt Tool

crypt_tool 提供了一个简单的加密和数据转换工具集,包含以下组件:

  1. LinearCongruentialGenerator: 生成伪随机数,用于加密和字符串生成。
  2. XorCipher: 基于 XOR 的简单加密解密类。
  3. BytesBitsConverter: 将字节转换为位、位转换为字节的工具类。

使用示例

1. 生成随机数

from crypt_tool import system_random, LinearCongruentialGenerator

rand = system_random()
print("A random number:", rand)

seed = b"a seed"
rnd = LinearCongruentialGenerator.from_seed(seed)
print("Random number from seed:", rnd.generate_u8())
print("Random string:", rnd.generate_random_string(20))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

crypt_tool-0.1.2.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

crypt_tool-0.1.2-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file crypt_tool-0.1.2.tar.gz.

File metadata

  • Download URL: crypt_tool-0.1.2.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for crypt_tool-0.1.2.tar.gz
Algorithm Hash digest
SHA256 8369fdbbe7dab4b735b8f2ab8c7c4ffdadc1ec225c769938827f66bb084cb3f7
MD5 07a0ddc7ceb5c88a8f7ac10ebd2e7680
BLAKE2b-256 6fb0db486762927714b4429eb4b186b854c068466c732d3a3d783b8117c431db

See more details on using hashes here.

File details

Details for the file crypt_tool-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: crypt_tool-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for crypt_tool-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f4253ae988286f06419a45b3e7d8f5d4a215c2a09005eb30c7538f0e83c30d5c
MD5 d895c9c462565aa250c3d9dbb7047437
BLAKE2b-256 2a153c002521a8f022794f80be0ed21a14b6f850924cde5bc72042578167a652

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page