tea encrypt and decrypt
Project description
✨ ftea ✨
The python binding for simple-crypto
使用
- 加密解密
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
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
ftea-0.1.1rc1.tar.gz
(117.5 kB
view hashes)
Built Distributions
ftea-0.1.1rc1-cp39-cp39-win_amd64.whl
(182.6 kB
view hashes)
ftea-0.1.1rc1-cp38-cp38-win_amd64.whl
(182.6 kB
view hashes)
Close
Hashes for ftea-0.1.1rc1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a56b559c07acddd13053f247d35e54cf11fb39b7f0cd971b823093488a1ff1f |
|
MD5 | 5f86bad21c752bfab020b827d7af0b33 |
|
BLAKE2b-256 | 453f385221668c6ca66492cfe54d65281de35b8f294e5f6def6f7aec4c39aac0 |
Close
Hashes for ftea-0.1.1rc1-cp310-cp310-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9c5bcdc5e2b1255c6d3da570c73a0c9734378ca4698d11d942673d08f977a78 |
|
MD5 | b0f8fb78a085b50044efc6fae84397c9 |
|
BLAKE2b-256 | b7fe5ee6e8383b9677d60c94436089126bdde7b88b11372dd8ca0d1e3e985288 |
Close
Hashes for ftea-0.1.1rc1-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30469a0e5c910a10c26ee79a2f47ff0e56bf6ca65fb0bcb940babc1bac1464b3 |
|
MD5 | 13e386bae1261577adc01e37eba4b954 |
|
BLAKE2b-256 | 5d345055367bfbd719e5351a22e0048a045c22d02988d90188396802313162c3 |
Close
Hashes for ftea-0.1.1rc1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9c1ddbdc8bd7bbc62449d6264ffbe9a4e6296a17a28499cb58d1df5ed2221f5 |
|
MD5 | 2638b5a6f29dac80fbe9c9423e563cce |
|
BLAKE2b-256 | 2073fbe9e4f6626b636d4291d898dfd6d95d220098473d612b7c70733f557cc1 |
Close
Hashes for ftea-0.1.1rc1-cp39-cp39-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df9119c306bf2ef3f100a4984d1409e49c26eb163311535978364ee9f10c7fc7 |
|
MD5 | 4ded9c0ed2bb7af4790ac08d369d9c92 |
|
BLAKE2b-256 | cc33635f3c47c09b4f86e5c47e0cb04fd9e0738066f1132253a67535cb468e48 |
Close
Hashes for ftea-0.1.1rc1-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 989cb8a1cc377d9f38a20d413dd560dbcf0a81fb4870e35d9d698316139d268a |
|
MD5 | 5714650974a5ef2ddff2a7cff1247372 |
|
BLAKE2b-256 | 1085d32a220d265b3ae400e432fe03414fecd20dbd08fd771e787d5c7a9bccf5 |
Close
Hashes for ftea-0.1.1rc1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00d985c0edaf1a1274b1c80fd8a8fcfe6fdf317be2e634f98537141511f7a799 |
|
MD5 | 6f52d6c370758590950d08e9575917cb |
|
BLAKE2b-256 | 0c8f98d960ca534b6cc3e9201cb6397d812b49fbcf40a08fc3c333aa4555951e |
Close
Hashes for ftea-0.1.1rc1-cp38-cp38-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fc9254f323163b6ffac3889bf8785cdf7e2f80c56f03a408f7090627d7f6317 |
|
MD5 | 02c284ca07df80e3cd92d19bd9886294 |
|
BLAKE2b-256 | af48463d204e8e30071279cd533274940e127cc8b0c8150b7ca731c7b5cf5d06 |
Close
Hashes for ftea-0.1.1rc1-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e043f3519e75fcdc98ffa8a22070046d1a670534b92f82a2aad05c5fb0e192b7 |
|
MD5 | efa1775c6b7b90d149501547258e75b4 |
|
BLAKE2b-256 | 6e2f4d0fbb37a536ecf2562c0877d9619d22c9a320fcdfe21ceab61e6958228c |
Close
Hashes for ftea-0.1.1rc1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68d15f37d9ab517791ed733c3f7a3ae96a92957b3402884402acafd33ed793b8 |
|
MD5 | 2109ea402c060e621b87a209ef99b13f |
|
BLAKE2b-256 | 57ce405980cef9510a82b85b4c65dabc617bd1cbca1e3c865626a847a0dabc25 |
Close
Hashes for ftea-0.1.1rc1-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2574bd77156ed451c81e791de3a0fbaeb89519988fdf55eaf76f8cae83707e8e |
|
MD5 | 5d7c66d7c3c16ba9dd84dd51e6778685 |
|
BLAKE2b-256 | 71467ecbf13da6d7ad720d4fa6a610b5983691190fabb1abe5b034094fdc2da5 |
Close
Hashes for ftea-0.1.1rc1-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d367118fea2e7c4f37354354577d7d774502cc4122b64658e667351f660c4be6 |
|
MD5 | 86c0a554b960cc407617e85a225989f5 |
|
BLAKE2b-256 | 5f8dd9fadfb07eda25f2b35d5972708471cbc78947304303f792ce793eb430ee |
Close
Hashes for ftea-0.1.1rc1-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42c6378def029f52fcb213ae8f576c667e635f602c0f83d9714ef654d42f39b7 |
|
MD5 | eef3a82613c7f944a5eeccf433b85ee3 |
|
BLAKE2b-256 | 5d8cf2d32338dcf19825d961b447384a6112854ecda1aaafd98c5ef8fe258605 |
Close
Hashes for ftea-0.1.1rc1-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 889e024ad3368225c3a4400407e30dd9f91e2e1600485f8ec45ffdea3ca70a5b |
|
MD5 | 615134df543a1dd2f7a01dca91207a9b |
|
BLAKE2b-256 | 82d0270723f8a7b1b093982425d733dc5bd9fd6ef7c440b2efb05622ef2d3db1 |
Close
Hashes for ftea-0.1.1rc1-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d270c5a11a94f454d355be3caae03d40df2d4c60f1b8f5a9e689e77b20a77995 |
|
MD5 | 20a7cfc0362342ead8b6e05908eab7b0 |
|
BLAKE2b-256 | 95e22cbbea91166e32eeaf82c003e01ba39d5541671caf8a54689c18fb40c50b |