https://github.com/synodriver/ftea
Ultra fast tea encrypt and decrypt
https://github.com/synodriver/ftea
crypto cython cython-wrapper python python3 tea
Last synced: 7 months ago
JSON representation
Ultra fast tea encrypt and decrypt
- Host: GitHub
- URL: https://github.com/synodriver/ftea
- Owner: synodriver
- Created: 2022-04-18T06:29:45.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-14T12:41:25.000Z (about 1 year ago)
- Last Synced: 2024-10-11T11:26:08.582Z (about 1 year ago)
- Topics: crypto, cython, cython-wrapper, python, python3, tea
- Language: Cython
- Homepage:
- Size: 1.58 MB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
- Changelog: changename.py
Awesome Lists containing this project
README
✨ ftea ✨
The python binding for simple-crypto
[](https://pypi.org/project/ftea/)




### 使用
- 加密解密
```python
from ftea import TEAtea = TEA(bytes(16))
encoded = tea.encrypt_qq(b"haha")
print(tea.decrypt_qq(encoded))```
### 公开函数
```python
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: ...
```