Download the PHP package jan2000/ffxradix without Composer
On this page you can find all versions of the php package jan2000/ffxradix. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jan2000/ffxradix
More information about jan2000/ffxradix
Files in jan2000/ffxradix
Package ffxradix
Short Description The Scheme FFX[radix] of the FFX Mode of Operation for Format-Preserving Encryption
License MIT
Informations about the package ffxradix
FFXRadix
A PHP implementation of the FFX[radix] Scheme of The FFX Mode of Operation for Format-Preserving Encryption[1,2]. Also known as mode FF1 in NIST Special Publication 800-38G: Recommendation for Block Cipher Modes of Operation: Methods for Format-Preserving Encryption[3]
Encrypt and decrypt a message with a radix between 2 to 62 and preserves its length. Messages to be enciphered under
FFX[radix] are regarded as strings of characters drawn from the alphabet Chars = {0, 1, 2,...,radix − 1}
.
Scheme FFX[radix] does its work using an AES-based balanced Feistel network. If the message length is odd, an
alternating, maximally-balanced Feistel scheme is used instead.
- [1] http://csrc.nist.gov/groups/ST/toolkit/BCM/documents/proposedmodes/ffx/ffx-spec.pdf
- [2] http://csrc.nist.gov/groups/ST/toolkit/BCM/documents/proposedmodes/ffx/ffx-spec2.pdf
- [3] http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-38G.pdf
Example Usage
Testing
This implementation is validated against the test vectors provided in:
All versions of ffxradix with dependencies
ext-gmp Version *