一个简单的异或生成Token
Project description
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)
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
pyunit_xor-2025.4.11.tar.gz
(2.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyunit_xor-2025.4.11.tar.gz.
File metadata
- Download URL: pyunit_xor-2025.4.11.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
174fea6abbe62d0df9e0b081bb300760ca57e7cae048b7a98d8fbb76dfe0abd1
|
|
| MD5 |
25087ddde4a085a08c23dee0a336269b
|
|
| BLAKE2b-256 |
a88f8bdc2cfb34206bdfc72403977af9f7e130c52c1c6beff64062ebf8532bf9
|
File details
Details for the file pyunit_xor-2025.4.11-py3-none-any.whl.
File metadata
- Download URL: pyunit_xor-2025.4.11-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1ee1eaf363b4e8c81234d4e7bddb49033849e082a9d13bf2488881e298246ca
|
|
| MD5 |
87c64852ed48e3e8286ab928bed38e71
|
|
| BLAKE2b-256 |
28ccd4d3a2edc84788f690fc09253de939589b0ea12586fed471e9508e21097a
|