Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ftea

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ftea

tea encrypt and decrypt

  • 0.1.8
  • PyPI
  • Socket score

Maintainers
1

✨ 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: ...

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc