Skip to content

emulbreh/pyffx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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', length=4)
>>> e.encrypt(1234)
6103
>>> e.decrypt(6103)
1234
>>> e = pyffx.String(b'secret-key', alphabet='abc', length=6)
>>> e.encrypt('aaabbb')
'acbacc'
>>> e.decrypt('acbacc')
'aaabbb'

About

pure Python format preserving encryption

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages