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: ...
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.0.dev2.tar.gz
(114.4 kB
view hashes)
Built Distributions
Close
Hashes for ftea-0.1.0.dev2-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b23cb3c0f757c07fac3797f3999cc3c21bf9498d714c8d7e8a4c285d0a9f888 |
|
MD5 | b63f38691bcc88d6826f7f6adfcd2729 |
|
BLAKE2b-256 | e52e5a114aba8706fd0c5a50cb3e0dfab2dc2c4a053bfe71963cd4034516e61f |
Close
Hashes for ftea-0.1.0.dev2-cp310-cp310-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3a21ec537b08d41199fd7f58530f0ff3e2642cd2bebf6bc4ec982fdcdb8281f |
|
MD5 | 27dd6acfe36d2954f0399d62c061dcd4 |
|
BLAKE2b-256 | 2238f2f9a9001ec8ef9e7da1d54c5a3b02e33f4803df01d4ded271df262f2fe0 |
Close
Hashes for ftea-0.1.0.dev2-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e79ae6d0d92bff2792dbef8497c92f84f0712039a207923e3bc6e9690af428f9 |
|
MD5 | 4d44514f24657be4204e27207bce206f |
|
BLAKE2b-256 | 8585eaf29902f0397a183458c0a397e4832c85fbefbd80e87f3af116a96e0c4b |
Close
Hashes for ftea-0.1.0.dev2-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2bd0d63e4fb20c1df0fb96ce13629914296ce15d844eb6a26a3eeb5a71dbb5b |
|
MD5 | 30f25d0a82b32b689d24d6a1dc219c8d |
|
BLAKE2b-256 | 5182d590eb63da1c6690a74daad423910b093b8f164fa6960d4af34d06b54d82 |
Close
Hashes for ftea-0.1.0.dev2-cp39-cp39-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d51fcc729c734b769d924a46916bbd66c1219318825acd2c76dcc5dbd6ad001 |
|
MD5 | c95f49e889b6578560cba51ab0fa97d7 |
|
BLAKE2b-256 | 2ee028cd8000cfba9fd185babed91f8fa973a5a1d121661eb05bc7a4f208822d |
Close
Hashes for ftea-0.1.0.dev2-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb72589216ebb404a93444df1e577806e277eca4025a3d400011e51e234bf837 |
|
MD5 | 3cb18d9e5989da1f81cce0c7b0c5a337 |
|
BLAKE2b-256 | 3ffa6808b3022716213afbb571a844766581d82f15522b76f95cf6d11a703ff2 |
Close
Hashes for ftea-0.1.0.dev2-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a9857f0678fcb27ef8fb77cc3216aa514eb43d6addd9f3acebc9715e9fc55ce |
|
MD5 | 035c1aa14f5f930f02d7d248a589f940 |
|
BLAKE2b-256 | 5d5df782c02bf4ed6d8c8b20965e12b2ab51da7a99902f04d7b974e4cbf6a430 |
Close
Hashes for ftea-0.1.0.dev2-cp38-cp38-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b6d06bbdcd25f71c2fa01f146acb3457dd48746be07e230859b42c85d4d6266 |
|
MD5 | 095490fe1a087e0607cda27462c98f3f |
|
BLAKE2b-256 | ca6fb4117a6892d8cb717355f157b76e874c7e33ced25168d00d1e1655304c32 |
Close
Hashes for ftea-0.1.0.dev2-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0d1abec881733c7293287658f28fe42ec9b1a18e472214430793c025edc5cd4 |
|
MD5 | 16cfadd7fd95ac366b916cabb578ee72 |
|
BLAKE2b-256 | fa7972634813b0b09a716eb0032f3bbf527d701def5779b41bd05156fc82e05d |
Close
Hashes for ftea-0.1.0.dev2-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 914039f79bb2e00afe33784f8dafe1a2c0405a18dabc99250fc42522745e438c |
|
MD5 | cef6b3c0e78c183dc706ae31b4c4dd29 |
|
BLAKE2b-256 | f0948610078be8a8e75ca486ff34f225f87842f2c3e53554bb545e8a949dfa14 |
Close
Hashes for ftea-0.1.0.dev2-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1998a9a6474ae8ff9152bdf77d617164ccaae46e21df060f0fcb9f4876373597 |
|
MD5 | 5c656d392b770c20c1dd26bffbd9848f |
|
BLAKE2b-256 | c27f6267e330ab3aa3d03c85f4ab5c564a177b4898cc596be0087a817457255c |
Close
Hashes for ftea-0.1.0.dev2-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75ee37e35f13d9bcd218782b2aa21d43377b0e683fb9369d59dafb7f2ab05296 |
|
MD5 | 9b8c68b3b70b784dfd224055ddb6b97f |
|
BLAKE2b-256 | 25cb01a010328b3059a6441ecca7ba4279b0e477e1b0608c780021db2cb97078 |
Close
Hashes for ftea-0.1.0.dev2-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | efc1e8f64980412b8d98dacc0d7690ad38de3616ffa8569313d4e609bc39c4e2 |
|
MD5 | ac87c8d51a9f17117e997ca53c9a4d0e |
|
BLAKE2b-256 | 64891bc0d1c4ff482f6eb3e5385696e2d46deb048dfa2e544d5adfc2d7512ecd |
Close
Hashes for ftea-0.1.0.dev2-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 609f2265f2fbab4727fcf633bd9e225bafd2ab39ba89c45e4a15e6dec31cb800 |
|
MD5 | 262ba6bf84af8b2d3c4e3d8cbc97c4a6 |
|
BLAKE2b-256 | fba863277934bc2c60496d30633d69b574b8438798e5962a6d3b10b55342ab93 |
Close
Hashes for ftea-0.1.0.dev2-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64a42eddec62a3d5e23aa532e17f5b1c60eebf8e7f16dbe48995c39f1c95ca84 |
|
MD5 | b8d5159100715fd1486be5d60077dfd2 |
|
BLAKE2b-256 | eed8be924d61e1ec939391fb37f8a5da0afce7ff6b425380f886a964cda36055 |