Metadata-Version: 2.4
Name: xj-sm4-utils
Version: 0.1
Summary: SM4 symmetric encryption utilities
Author: xj-dev
License: MIT
Keywords: sm4,crypto,encryption
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# xj-sm4-utils

SM4 symmetric encryption utilities in a single Python module.

## Install

```bash
pip install xj-sm4-utils
```

## Quick Start

```python
import xj_sm4_tools

key = b"2021110824051457"
iv = b"1234567890abcdef"
plain = b"hello sm4"

cipher = xj_sm4_tools.SM4Utils.encrypt_CBC_Padding(key, iv, plain)
restored = xj_sm4_tools.SM4Utils.decrypt_CBC_Padding(key, iv, cipher)
print(restored.decode("utf-8"))
```
