Skip to main content

pure Python format preserving encryption

Project description

https://travis-ci.org/emulbreh/pyffx.svg?branch=master

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


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)

Uploaded Source

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

Hashes for pyffx-0.1.0.tar.gz
Algorithm Hash digest
SHA256 96425742ab24fe2151b629aa77ee0f81a1d5486ef7f6cde4e73e9f23f27f5f72
MD5 bb7d2de0c61c78d096e3d9150c5a6d82
BLAKE2b-256 d188680517bbc046ae5e39e48041114099792175e22e1129f926b5da858cb362

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page