Skip to main content

Bring fast TEA cipher to Python. Powered by Rust.

Project description

rtea

Bring fast TEA cipher to Python. Powered by Rust.

为 Python 带来快速的TEA密码实现

依赖

开发依赖

  1. 一个能跑起来的 Rust,不知道最低是什么版本,但是用新的准没错 你大概需要一个 Nightly 的 Rust
  2. Python 3.7+
  3. requirements-dev.txt 里的 maturin

运行依赖

  1. Python 3.7+

构建

假设环境已经存在满足条件的 Rust 和 Python

  1. 新建一个虚拟环境并激活
  2. 安装开发依赖 pip install -r requirements-dev.txt
  3. 运行 maturin develop [--release]rtea 目录下生成二进制库文件,可直接引入
  4. 或者运行 maturin build [--release]target/wheels 下生成 whl,在 Unix 系统上还可添加 --strip 以减少生成体积

测试

  1. 运行 pytest 同时运行单元测试与速度测试
  2. 运行 cargo test 运行单元测试
  3. 运行 cargo bench 运行速度测试

预编译包

  1. 从右侧 Release 页面获取
  2. 使用 pip 直接从 PyPI 安装

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

rtea-0.3.5.tar.gz (12.9 kB view details)

Uploaded Source

Built Distributions

rtea-0.3.5-cp37-abi3-win_arm64.whl (106.6 kB view details)

Uploaded CPython 3.7+ Windows ARM64

rtea-0.3.5-cp37-abi3-win_amd64.whl (114.3 kB view details)

Uploaded CPython 3.7+ Windows x86-64

rtea-0.3.5-cp37-abi3-win32.whl (105.5 kB view details)

Uploaded CPython 3.7+ Windows x86

rtea-0.3.5-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (179.4 kB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ x86-64

rtea-0.3.5-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl (238.2 kB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ s390x

rtea-0.3.5-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (192.3 kB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ppc64le

rtea-0.3.5-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (170.0 kB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ARMv7l

rtea-0.3.5-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (168.7 kB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ARM64

rtea-0.3.5-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl (185.3 kB view details)

Uploaded CPython 3.7+ manylinux: glibc 2.5+ i686

rtea-0.3.5-cp37-abi3-macosx_11_0_arm64.whl (165.4 kB view details)

Uploaded CPython 3.7+ macOS 11.0+ ARM64

rtea-0.3.5-cp37-abi3-macosx_10_7_x86_64.whl (177.7 kB view details)

Uploaded CPython 3.7+ macOS 10.7+ x86-64

File details

Details for the file rtea-0.3.5.tar.gz.

File metadata

  • Download URL: rtea-0.3.5.tar.gz
  • Upload date:
  • Size: 12.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for rtea-0.3.5.tar.gz
Algorithm Hash digest
SHA256 2d881a8943314370abb189e87ff74fc6e4f86c9d2ca259003ecbf0ca5db0c26a
MD5 c6117c483dd8c2ac3f3148311002bebd
BLAKE2b-256 aaa6e815653e138046439445877b2c0e85f3bed0f12dded36412a5a44387720e

See more details on using hashes here.

File details

Details for the file rtea-0.3.5-cp37-abi3-win_arm64.whl.

File metadata

  • Download URL: rtea-0.3.5-cp37-abi3-win_arm64.whl
  • Upload date:
  • Size: 106.6 kB
  • Tags: CPython 3.7+, Windows ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for rtea-0.3.5-cp37-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 38d61ef0f8e353d1b8645417d49b23cf49c47fe1f4dcdbb74d39716ac2d1b704
MD5 49f7e1b7afedf056f803981abba4468e
BLAKE2b-256 23fc5711801538b4b8c7add4b0648110bba458907cd3bf283cb7b810bd89e50a

See more details on using hashes here.

File details

Details for the file rtea-0.3.5-cp37-abi3-win_amd64.whl.

File metadata

  • Download URL: rtea-0.3.5-cp37-abi3-win_amd64.whl
  • Upload date:
  • Size: 114.3 kB
  • Tags: CPython 3.7+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for rtea-0.3.5-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 4064343659e5a27f54adaba1c6bf30607b6b06ae8829653ec8a70310206fd064
MD5 9a44b989d3d98a0b4ce4767c8cdaa316
BLAKE2b-256 cc425c5d1e672a3e4f2210e4440d12cb1ea697c751af3ecc9c0ddd93348b6197

See more details on using hashes here.

File details

Details for the file rtea-0.3.5-cp37-abi3-win32.whl.

File metadata

  • Download URL: rtea-0.3.5-cp37-abi3-win32.whl
  • Upload date:
  • Size: 105.5 kB
  • Tags: CPython 3.7+, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for rtea-0.3.5-cp37-abi3-win32.whl
Algorithm Hash digest
SHA256 abbf5821ee41ae2669cfdb8413d1bc26e0038ba2d28296be5f1699283d2cc46f
MD5 beb8924c50a48576fa9d124cc213b85f
BLAKE2b-256 7c06475a5955a9eb677283f4e65721bfabf07eb6708ecfd643e692e45cb0fd04

See more details on using hashes here.

File details

Details for the file rtea-0.3.5-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for rtea-0.3.5-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cf995469abdce68b43ed71b25040f3dec82e8c8fe9cf425219e1f81ee718ce43
MD5 affc7cfaf7351b9beb7a201161c42bd9
BLAKE2b-256 bc6545d7a6fbc1778a12eb81eeb729ec7f5680688b0c73a8a704d681a1888e66

See more details on using hashes here.

File details

Details for the file rtea-0.3.5-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl.

File metadata

File hashes

Hashes for rtea-0.3.5-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 3de23cdfae9e0950296d78828dcc2ef2b375cc3b56063d14341cda17a23fe30b
MD5 4ef543345f75eb2b1c56104038538613
BLAKE2b-256 78318be4774ccfb25c08ddb350156b3455be7e9d5038903f0d6fa3bf0c01ac9b

See more details on using hashes here.

File details

Details for the file rtea-0.3.5-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.

File metadata

File hashes

Hashes for rtea-0.3.5-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 aeb6359e5b1aa7eabe7645ce6db9ceaa2904a9f1215fbea6cce25c6550348fca
MD5 458633b440e67680c81bf9cb8c4809f4
BLAKE2b-256 50097d31a92c4c132a8d47fd2d8236106b60c9214626df5fe9a4d46567b5d667

See more details on using hashes here.

File details

Details for the file rtea-0.3.5-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for rtea-0.3.5-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 4e4c60c40c919acc52645fb0023cb6abe93f326fe7c5d766ddad40c227f414f3
MD5 9215f18b1de8383cf4ebd6cf7e47a47b
BLAKE2b-256 89e4add26de708a24e79e024740d499f76b7eb29a510bc920932d05ed11c6735

See more details on using hashes here.

File details

Details for the file rtea-0.3.5-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for rtea-0.3.5-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 095e98ed4ca8977fef8b1c5f074096797618dc4a759c40e6d39462b7fdc3ddb8
MD5 2070ba582b3a34b6a2f29bdf568ed2ce
BLAKE2b-256 22d5755daa2a89a4cb4aa26181d2f9399a5baf8aa7b490b7d4b8b8903ec53731

See more details on using hashes here.

File details

Details for the file rtea-0.3.5-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl.

File metadata

File hashes

Hashes for rtea-0.3.5-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 0ce09918dac86d834f04ff349429d889457d1e6ab26c6587d1c83d9d562cc437
MD5 f0e4d7653cbd3d7d625db200a5d4e7d1
BLAKE2b-256 3779271e11799ae9dc619f86ef1b11eeb26fd46af3f4d2609f2330f736da7897

See more details on using hashes here.

File details

Details for the file rtea-0.3.5-cp37-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for rtea-0.3.5-cp37-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 67c085dd5b7d3f8fdf3a0186ddf64945c56b3e786a64787fd2b3b3e6cc8c17e8
MD5 b629c8750efcea52f9e1930415c43c78
BLAKE2b-256 4a0580db831ad570ba72d381421e920723184c8423ccc5c2657c64443746b1ce

See more details on using hashes here.

File details

Details for the file rtea-0.3.5-cp37-abi3-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for rtea-0.3.5-cp37-abi3-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 23f22ba76abea42015587983a3329c6ed9b0a8f0603b6470a61438a82d8b97d0
MD5 10df671720157666464064031a841494
BLAKE2b-256 a0b8b1eac3dc243496041a6b2045da18bc2bc261da2343cf03ba115fdd8e150a

See more details on using hashes here.

Supported by

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