Metadata-Version: 2.4
Name: saro-dat
Version: 1.2.0
Summary: Distributed Access Token
Author-email: Marker Seoul <j@saro.me>
Project-URL: Homepage, https://dat.saro.me
Project-URL: Repository, https://github.com/saro-lab/dat-pypi
Project-URL: Documentation, https://dat.saro.me/ko/libs/pypi-saro-dat
Keywords: dat,distributed,access,token,jwt,security,authentication
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: cryptography>=47.0.0
Requires-Dist: readerwriterlock>=1.0.9
Dynamic: license-file

# DAT - Distributed Access Token

## Document

### [DAT Run Online](https://dat.saro.me)

### [What is DAT](https://dat.saro.me/--/intro)

### [Example](https://dat.saro.me/--/libs/pypi-saro-dat)

## support signature algorithm
| name   | algorithm  |
|--------|------------|
| P256   | secp256r1  |
| P384   | secp384r1  |
| P521   | secp521r1  |

## support crypto algorithm
| name       | algorithm                   |
|------------|-----------------------------|
| AES128GCMN | aes-128-gcm n(nonce + body) |
| AES256GCMN | aes-256-cbc n(nonce + body) |


# Performance
- random plain and secure test
- mac mini m4 2024 basic (10 core)
- [test_bench.py](tests/test_bench.py)
```
Plain: z5Cbc0kNyjLtLbgjOkUwyQl9F3oQDG7usAI5W5Wz1eJcgfJRaXOHpNmZgsxevQ5BJSqhJsk31MsfzQZFdHJpNX39Il5bwVfTe8xB
Secure: AYQMai5jox5hDG8dvafIJPn15APgwRmCy5HsR8rmHNWiow36qVq7DmxaWmsh0mmQwRhZPNUBUBjIQsqhpvIhFTOd1UtdtgqyDoLf

--- Multi-Thread ---
P256 AES128GCMN Issue * 10000 : 190ms
P256 AES128GCMN Parse * 10000 : 191ms
P256 AES256GCMN Issue * 10000 : 199ms
P256 AES256GCMN Parse * 10000 : 227ms
P384 AES128GCMN Issue * 10000 : 831ms
P384 AES128GCMN Parse * 10000 : 1890ms
P384 AES256GCMN Issue * 10000 : 827ms
P384 AES256GCMN Parse * 10000 : 1923ms
P521 AES128GCMN Issue * 10000 : 719ms
P521 AES128GCMN Parse * 10000 : 1415ms
P521 AES256GCMN Issue * 10000 : 856ms
P521 AES256GCMN Parse * 10000 : 1514ms

--- Single-Thread ---
P256 AES128GCMN Issue * 10000 : 233ms
P256 AES128GCMN Parse * 10000 : 465ms
P256 AES256GCMN Issue * 10000 : 220ms
P256 AES256GCMN Parse * 10000 : 446ms
P384 AES128GCMN Issue * 10000 : 4999ms
P384 AES128GCMN Parse * 10000 : 12024ms
P384 AES256GCMN Issue * 10000 : 5122ms
P384 AES256GCMN Parse * 10000 : 12015ms
P521 AES128GCMN Issue * 10000 : 3576ms
P521 AES128GCMN Parse * 10000 : 7228ms
P521 AES256GCMN Issue * 10000 : 3563ms
P521 AES256GCMN Parse * 10000 : 7241ms
```
