Skip to main content

tea encrypt and decrypt

Project description

✨ ftea ✨

The python binding for simple-crypto

pypi python implementation wheel license action

使用

  • 加密解密
from ftea import TEA

tea = TEA(bytes(16))

encoded = tea.encrypt_qq(b"haha")
print(tea.decrypt_qq(encoded))

公开函数

class TEA:
    key: bytes = ...
    @classmethod
    def __init__(self, key: bytes) -> None: ...
    def decrypt(self, text: bytes, sumtable: bytes) -> bytes: ...
    def decrypt_into(self, text: bytes, sumtable: bytes, out: bytearray) -> int: ...
    def decrypt_native_endian(self, text: bytes, sumtable: bytes) -> bytes: ...
    def decrypt_native_endian_into(self,text: bytes, sumtable: bytes, out: bytearray) -> int: ...
    def decrypt_qq(self, text: bytes) -> bytes: ...
    def decrypt_qq_into(self, text: bytes, out: bytearray) -> int: ...
    def encrypt(self, text: bytes, sumtable: bytes) -> bytes: ...
    def encrypt_into(self, text: bytes, sumtable: bytes, out: bytearray) -> int: ...
    def encrypt_native_endian(self, text: bytes, sumtable: bytes) -> bytes: ...
    def encrypt_native_endian_into(self, text: bytes, sumtable: bytes, out: bytearray) -> int: ...
    def encrypt_qq(self,  text: bytes) -> bytes: ...
    def encrypt_qq_into(self, text: bytes, out: bytearray) -> int: ...

def encrypt_len(src: int) -> int: ...

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

ftea-0.1.1.tar.gz (122.9 kB view details)

Uploaded Source

Built Distributions

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

ftea-0.1.1-cp310-cp310-win_amd64.whl (183.8 kB view details)

Uploaded CPython 3.10Windows x86-64

ftea-0.1.1-cp310-cp310-manylinux2014_x86_64.whl (218.5 kB view details)

Uploaded CPython 3.10

ftea-0.1.1-cp310-cp310-macosx_10_15_universal2.whl (254.6 kB view details)

Uploaded CPython 3.10macOS 10.15+ universal2 (ARM64, x86-64)

ftea-0.1.1-cp39-cp39-win_amd64.whl (184.9 kB view details)

Uploaded CPython 3.9Windows x86-64

ftea-0.1.1-cp39-cp39-manylinux2014_x86_64.whl (219.4 kB view details)

Uploaded CPython 3.9

ftea-0.1.1-cp39-cp39-macosx_10_15_x86_64.whl (191.2 kB view details)

Uploaded CPython 3.9macOS 10.15+ x86-64

ftea-0.1.1-cp38-cp38-win_amd64.whl (185.0 kB view details)

Uploaded CPython 3.8Windows x86-64

ftea-0.1.1-cp38-cp38-manylinux2014_x86_64.whl (219.8 kB view details)

Uploaded CPython 3.8

ftea-0.1.1-cp38-cp38-macosx_10_15_x86_64.whl (190.1 kB view details)

Uploaded CPython 3.8macOS 10.15+ x86-64

ftea-0.1.1-cp37-cp37m-win_amd64.whl (184.2 kB view details)

Uploaded CPython 3.7mWindows x86-64

ftea-0.1.1-cp37-cp37m-manylinux2014_x86_64.whl (217.4 kB view details)

Uploaded CPython 3.7m

ftea-0.1.1-cp37-cp37m-macosx_10_15_x86_64.whl (190.7 kB view details)

Uploaded CPython 3.7mmacOS 10.15+ x86-64

ftea-0.1.1-cp36-cp36m-win_amd64.whl (184.3 kB view details)

Uploaded CPython 3.6mWindows x86-64

ftea-0.1.1-cp36-cp36m-manylinux2014_x86_64.whl (217.8 kB view details)

Uploaded CPython 3.6m

ftea-0.1.1-cp36-cp36m-macosx_10_14_x86_64.whl (190.5 kB view details)

Uploaded CPython 3.6mmacOS 10.14+ x86-64

File details

Details for the file ftea-0.1.1.tar.gz.

File metadata

  • Download URL: ftea-0.1.1.tar.gz
  • Upload date:
  • Size: 122.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for ftea-0.1.1.tar.gz
Algorithm Hash digest
SHA256 078a53596f0c1e48445de0ea2797c02b0ad52a4874879d72f72fbad02cacc2bb
MD5 e9f120746599303263dd5e7999edbfb1
BLAKE2b-256 db7ead27cd37afb3be381d28324213de2a4ea2b7452710e87fb7e70ae58c4c7f

See more details on using hashes here.

File details

Details for the file ftea-0.1.1-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: ftea-0.1.1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 183.8 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for ftea-0.1.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 bcb52ecdf8cefe3b3c0031b4bfc269119f8b2723570081d1772adeebbf922967
MD5 92dacc0ec7f36e7d3bc71b946b5ddc5a
BLAKE2b-256 09ff6aac40fc8f4b71d52125011b3b40e0873463940c77076568bea6ef4ace0f

See more details on using hashes here.

File details

Details for the file ftea-0.1.1-cp310-cp310-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ftea-0.1.1-cp310-cp310-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 086ed62e70c6b8fdf41ab51d5839402028869fe1409d803d93e05d3da202e304
MD5 4c5d6a28770524457a6b5caef7f66f0c
BLAKE2b-256 296ae410a0605530ffe0efe157b980245d4cc633b15857cc77bcb8065f78adc6

See more details on using hashes here.

File details

Details for the file ftea-0.1.1-cp310-cp310-macosx_10_15_universal2.whl.

File metadata

File hashes

Hashes for ftea-0.1.1-cp310-cp310-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 377809377ef6620eea1f5984e79cce7e2c1252842fcfef2bf94576bfbcd4f02b
MD5 2627fd41dfe8644753652b440c718764
BLAKE2b-256 1796186074e2b5b7c09b1888ff0e1583e2b02b638a768e1e74028235f6b31150

See more details on using hashes here.

File details

Details for the file ftea-0.1.1-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: ftea-0.1.1-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 184.9 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for ftea-0.1.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f71d872612e393e492b408b649beff340a687cc881366cb68e795903cd2e9c2b
MD5 406647d2e7f010f663ca0a6b88c10108
BLAKE2b-256 fecfd79d78c685ddc98c249ed79d9e880c6eb94c6a77725fd6dc603012672c2a

See more details on using hashes here.

File details

Details for the file ftea-0.1.1-cp39-cp39-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ftea-0.1.1-cp39-cp39-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6702f2721923639ca8b9846e218d50f6600a7a394eadb0d2f849f133d4c18642
MD5 c90411d924f41fb0ea088c24748b43ef
BLAKE2b-256 e52b3a3095f1197fba7847302901de54af725c75e9235c43fe03f8db95d3bcf7

See more details on using hashes here.

File details

Details for the file ftea-0.1.1-cp39-cp39-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for ftea-0.1.1-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 f6ae0775ca34d67db3f9e20f4d0e7c0fb571d79a72477297c81beaa7906c6ea5
MD5 abb3906fe1762df026900b8d55f06cef
BLAKE2b-256 32623438d55f5cbd486413c1f20b0bd86679c4f2e5204d8cc5e24ca57a3effeb

See more details on using hashes here.

File details

Details for the file ftea-0.1.1-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: ftea-0.1.1-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 185.0 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for ftea-0.1.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 cc038eaa55a5919d0421840685f9caa066520b3a2533bbb211599be444973b27
MD5 e7a25e01b15252a7cb716c3c664283eb
BLAKE2b-256 735bc76c7a534ef2b48432f73aad34ebfe8d7a88d5f1d2fa798c6ed720a78bec

See more details on using hashes here.

File details

Details for the file ftea-0.1.1-cp38-cp38-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ftea-0.1.1-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8508dfcb022aa76a43e1ee3ce8f745c670f7c578dc394e2b06f1e7679a87bd19
MD5 66dedb4d427a8322e003dc23bdf540b8
BLAKE2b-256 1cfaa537546b2f884c1648837d5c224523cf1c826aee13025ea8462efdff55ba

See more details on using hashes here.

File details

Details for the file ftea-0.1.1-cp38-cp38-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for ftea-0.1.1-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 7c46287a23b9c7b2b2266632b78b6ec9e556b9b25cf2555894cf25329bfaebcf
MD5 52be02c6c932755673683ca02ccfbb26
BLAKE2b-256 02f8ac5a8ee6c06124257f06eaab74edf8cd05cbd66dbdabb9acee9a33849df2

See more details on using hashes here.

File details

Details for the file ftea-0.1.1-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: ftea-0.1.1-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 184.2 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.9

File hashes

Hashes for ftea-0.1.1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 ce258327cdc1ad54ac78cf9b03fa055d9ee6a481be82ffa1a17b8ccd8eafb2ae
MD5 8efd033a1ee4643400927aaf93df4564
BLAKE2b-256 711133d04c9d203094e200c1f5523af92a767c8570a91af777ebf92a4912e621

See more details on using hashes here.

File details

Details for the file ftea-0.1.1-cp37-cp37m-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ftea-0.1.1-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8878b50be877824ade0e59ea0ee0a6ab0877ffce79deb6c5201ca7d69271f81f
MD5 8e90ab7c69ce97943836137e50daceff
BLAKE2b-256 7ab2d0c36abb9687455fc3ca437baf612406f4f46c5b45c7933d66d3c70368b2

See more details on using hashes here.

File details

Details for the file ftea-0.1.1-cp37-cp37m-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for ftea-0.1.1-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 f273e0719118c740463426f0068e9ae0451a38d894627c8ee5ea774b8bdfb0d5
MD5 2673126dbbe1e02666732f69c19168bc
BLAKE2b-256 c7baf356698b5cb1149ae9ec5d85d293fb52729961aae34a4dcba38e54a8ee2a

See more details on using hashes here.

File details

Details for the file ftea-0.1.1-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: ftea-0.1.1-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 184.3 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.2.0 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.8

File hashes

Hashes for ftea-0.1.1-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 3ed4563a9baf1f92ccde78ec1814182c7449a398003192f6ea5764ac32872fbe
MD5 792d931c1ab80ea33d585e31a2774efb
BLAKE2b-256 341d520498f3034551a4ca815883fac5dd9ed3b3eaa2d53554ee05d42dd2f3be

See more details on using hashes here.

File details

Details for the file ftea-0.1.1-cp36-cp36m-manylinux2014_x86_64.whl.

File metadata

  • Download URL: ftea-0.1.1-cp36-cp36m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 217.8 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.2.0 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.15

File hashes

Hashes for ftea-0.1.1-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0031c6d3e0d0f3202fdc536da14bda8d5d4b80bddcaf4a68cc3822bb9566b055
MD5 774f25ff04034997535a14e5c9a0212a
BLAKE2b-256 5ce14b2555355931192ab24a5388019054c62721960a23b5d909b9576079eef2

See more details on using hashes here.

File details

Details for the file ftea-0.1.1-cp36-cp36m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: ftea-0.1.1-cp36-cp36m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 190.5 kB
  • Tags: CPython 3.6m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.2.0 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.15

File hashes

Hashes for ftea-0.1.1-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 e5dc61fdaaca5e3f6117054adcaf4d4138dcfa01546e8fecf6185025f589da6e
MD5 204b704cf446db7046e5d1c273860093
BLAKE2b-256 9c9b8022a356ddb6c23a683c4b1ca77c3cd67967ee128ca6a0329f03f640600d

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