Metadata-Version: 2.1
Name: ckl-psm
Version: 1.2
Summary: A password strength meter (PSM) with CKL_PCFG model
Home-page: https://github.com/snow0011/CKL_PSM
Author: snow0011
Author-email: daslab@163.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown

# Chunk level PCFG Library

We offer a chunk level PCFG library for password strength query. We hope this will help password manager create more secure tokens.   

### How to build  

```bash
cd backend
# Install ckl_psm to current python environment
python setup.py install
```
or install by pip

```bash
pip install ckl-psm
```

### How to use  

```python
# Import ckl_psm and make sure you have installed the library
from ckl_psm import ckl_pcfg as psm

# Strength query for given password
result = psm.check_pwd("123456")

# The result is consist of four parts:
print(
    result["guess_number"],
    result["segments"],
    result["chunks"],
    result["prob"]
)

```

