Skip to main content

XOR

一个简单的异或生成Token

安装

pip install pyunit-xor

使用

from pyunit_xor import SimpleXOR

# 测试代码
if __name__ == "__main__":
    manager = SimpleXOR()
    tokens = manager.generate("2024-01-10 00:00:00")
    print("生成的Token:", tokens)

    # 验证Token
    is_valid, result = manager.validate(tokens)
    if is_valid:
        print("Token有效,过期日期:", result)
    else:
        print("Token无效,原因:", result)

Metadata

Release files for pyunit-xor 2025.4.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyunit-xor 2025.4.11
File Size Uploaded Provenance Actions
pyunit_xor-2025.4.11.tar.gz 2.9 kB Without provenance Details for pyunit_xor-2025.4.11.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyunit-xor 2025.4.11
File Interpreter ABI Platform Actions
pyunit_xor-2025.4.11-py3-none-any.whl Python 3 none any Details for pyunit_xor-2025.4.11-py3-none-any.whl

Total release size: 6.1 kB

Release files / pyunit_xor-2025.4.11.tar.gz

Download URL pyunit_xor-2025.4.11.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
174fea6abbe62d0df9e0b081bb300760ca57e7cae048b7a98d8fbb76dfe0abd1
BLAKE2b-256 checksum
How to use checksums
a88f8bdc2cfb34206bdfc72403977af9f7e130c52c1c6beff64062ebf8532bf9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.18

Release files / pyunit_xor-2025.4.11-py3-none-any.whl

Download URL pyunit_xor-2025.4.11-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b1ee1eaf363b4e8c81234d4e7bddb49033849e082a9d13bf2488881e298246ca
BLAKE2b-256 checksum
How to use checksums
28ccd4d3a2edc84788f690fc09253de939589b0ea12586fed471e9508e21097a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.18

Security for pyunit-xor 2025.4.11

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2025.4.11 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page