Metadata-Version: 2.1
Name: brealid
Version: 0.0.6
Summary: brealid's python package
Home-page: https://github.com/brealid/brealid-python-lib
Author: brealid
Author-email: brealid@mail.ustc.edu.cn
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pycryptodome>=3.15.0
Requires-Dist: requests>=2.24.0
Requires-Dist: tqdm>=4.0.0

# brealid-python-lib

brealid python library

## Installation

```bash
pip install brealid
```

## Structure

- brealid
  - utils
    - benchmark
  - ctf
    - crypto
      - some useful functions
        - bytes_xor
      - GF2n

## Usage

### ctf

```python
from brealid.ctf import *
from brealid.ctf.crypto import GF2n

print(bytes_xor(b'hello, world', b'\x06\nL\x01\x00^EW\t\x1e\r\x03'))
# b'no more flag'

num = GF2n(0x13) * GF2n(0x13)
print(num)
print(repr(num))
# 261
# GF2n<GaloisField(2^512), poly=0x125> (0x105)
```
