A versatile and efficient cryptography library implemented in Python
Project description
Crypt Tool
crypt_tool 提供了一个简单的加密和数据转换工具集,包含以下组件:
LinearCongruentialGenerator: 生成伪随机数,用于加密和字符串生成。XorCipher: 基于 XOR 的简单加密解密类。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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8369fdbbe7dab4b735b8f2ab8c7c4ffdadc1ec225c769938827f66bb084cb3f7
|
|
| MD5 |
07a0ddc7ceb5c88a8f7ac10ebd2e7680
|
|
| BLAKE2b-256 |
6fb0db486762927714b4429eb4b186b854c068466c732d3a3d783b8117c431db
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4253ae988286f06419a45b3e7d8f5d4a215c2a09005eb30c7538f0e83c30d5c
|
|
| MD5 |
d895c9c462565aa250c3d9dbb7047437
|
|
| BLAKE2b-256 |
2a153c002521a8f022794f80be0ed21a14b6f850924cde5bc72042578167a652
|