{"id":16217247,"url":"https://github.com/synodriver/ftea","last_synced_at":"2025-03-19T10:30:45.100Z","repository":{"id":44761028,"uuid":"482740045","full_name":"synodriver/ftea","owner":"synodriver","description":"Ultra fast tea encrypt and decrypt","archived":false,"fork":false,"pushed_at":"2024-08-14T12:41:25.000Z","size":1655,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-11T11:26:08.582Z","etag":null,"topics":["crypto","cython","cython-wrapper","python","python3","tea"],"latest_commit_sha":null,"homepage":"","language":"Cython","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/synodriver.png","metadata":{"files":{"readme":"README.markdown","changelog":"changename.py","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-18T06:29:45.000Z","updated_at":"2024-08-14T12:41:28.000Z","dependencies_parsed_at":"2024-02-03T14:30:51.407Z","dependency_job_id":"fec959cf-b1a4-4ecf-8fa3-40a584e7b881","html_url":"https://github.com/synodriver/ftea","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synodriver%2Fftea","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synodriver%2Fftea/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synodriver%2Fftea/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synodriver%2Fftea/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/synodriver","download_url":"https://codeload.github.com/synodriver/ftea/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244407733,"owners_count":20447842,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["crypto","cython","cython-wrapper","python","python3","tea"],"created_at":"2024-10-10T11:26:16.696Z","updated_at":"2025-03-19T10:30:44.355Z","avatar_url":"https://github.com/synodriver.png","language":"Cython","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\u003ci\u003e✨ ftea ✨ \u003c/i\u003e\u003c/h1\u003e\n\n\u003ch3 align=\"center\"\u003eThe python binding for \u003ca href=\"https://github.com/synodriver/simple-crypto\"\u003esimple-crypto\u003c/a\u003e \u003c/h3\u003e\n\n\n\n[![pypi](https://img.shields.io/pypi/v/ftea.svg)](https://pypi.org/project/ftea/)\n![python](https://img.shields.io/pypi/pyversions/ftea)\n![implementation](https://img.shields.io/pypi/implementation/ftea)\n![wheel](https://img.shields.io/pypi/wheel/ftea)\n![license](https://img.shields.io/github/license/synodriver/ftea.svg)\n![action](https://img.shields.io/github/workflow/status/synodriver/ftea/build%20wheel)\n\n\n### 使用\n\n- 加密解密\n```python\nfrom ftea import TEA\n\ntea = TEA(bytes(16))\n\nencoded = tea.encrypt_qq(b\"haha\")\nprint(tea.decrypt_qq(encoded))\n\n```\n\n### 公开函数\n```python\nclass TEA:\n    key: bytes = ...\n    @classmethod\n    def __init__(self, key: bytes) -\u003e None: ...\n    def decrypt(self, text: bytes, sumtable: bytes) -\u003e bytes: ...\n    def decrypt_into(self, text: bytes, sumtable: bytes, out: bytearray) -\u003e int: ...\n    def decrypt_native_endian(self, text: bytes, sumtable: bytes) -\u003e bytes: ...\n    def decrypt_native_endian_into(self,text: bytes, sumtable: bytes, out: bytearray) -\u003e int: ...\n    def decrypt_qq(self, text: bytes) -\u003e bytes: ...\n    def decrypt_qq_into(self, text: bytes, out: bytearray) -\u003e int: ...\n    def encrypt(self, text: bytes, sumtable: bytes) -\u003e bytes: ...\n    def encrypt_into(self, text: bytes, sumtable: bytes, out: bytearray) -\u003e int: ...\n    def encrypt_native_endian(self, text: bytes, sumtable: bytes) -\u003e bytes: ...\n    def encrypt_native_endian_into(self, text: bytes, sumtable: bytes, out: bytearray) -\u003e int: ...\n    def encrypt_qq(self,  text: bytes) -\u003e bytes: ...\n    def encrypt_qq_into(self, text: bytes, out: bytearray) -\u003e int: ...\n\ndef encrypt_len(src: int) -\u003e int: ...\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsynodriver%2Fftea","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsynodriver%2Fftea","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsynodriver%2Fftea/lists"}