Metadata-Version: 2.1
Name: pyserpent
Version: 1.0.1
Summary: Pure Python implementation of the Serpent block cipher with CBC mode and PKCS#7 padding
Home-page: https://github.com/svvqt/pyserpent
Author: svvqt
Author-email: kon.vitkovskii@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Security :: Cryptography
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

# pyserpent

Pure Python implementation of the Serpent block cipher with CBC mode and PKCS#7 padding.

## Install

```bash
pip install pyserpent

## Example

from pyserpent import Serpent, serpent_cbc_encrypt, serpent_cbc_decrypt

key = Serpent.generate_key()
iv = Serpent.generateIV()
data = "Hello, Serpent!"

encrypted = serpent_cbc_encrypt(key, data, iv)
decrypted = serpent_cbc_decrypt(key, encrypted, iv)

print(decrypted.decode())

