pure Python format preserving encryption
Project description
pyffx
pyffx is a pure Python implementation of Format-preserving, Feistel-based encryption (FFX).
Only method 2 is implemented.
See also libffx
Usage
>>> import pyffx
>>> e = pyffx.Integer(b'secret-key')
>>> e.encrypt(1234)
6103
>>> e.decrypt(6103)
1234
>>> e = pyffx.String(b'secret-key', alphabet='abc')
>>> e.encrypt('aaabbb')
'acbacc'
>>> e.decrypt('acbacc')
'aaabbb'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyffx-0.1.0.tar.gz
(3.0 kB
view details)
File details
Details for the file pyffx-0.1.0.tar.gz
.
File metadata
- Download URL: pyffx-0.1.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96425742ab24fe2151b629aa77ee0f81a1d5486ef7f6cde4e73e9f23f27f5f72 |
|
MD5 | bb7d2de0c61c78d096e3d9150c5a6d82 |
|
BLAKE2b-256 | d188680517bbc046ae5e39e48041114099792175e22e1129f926b5da858cb362 |