PHPackages                             jan2000/ffxradix - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. jan2000/ffxradix

ActiveLibrary[Security](/categories/security)

jan2000/ffxradix
================

The Scheme FFX\[radix\] of the FFX Mode of Operation for Format-Preserving Encryption

v1.1.0(9y ago)9364.6k↑51.3%1MITPHPPHP &gt;=5.4.0

Since Jul 17Pushed 9y ago1 watchersCompare

[ Source](https://github.com/jan2000/ffxradix)[ Packagist](https://packagist.org/packages/jan2000/ffxradix)[ RSS](/packages/jan2000-ffxradix/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (7)Used By (0)

FFXRadix
========

[](#ffxradix)

[![Build Status](https://camo.githubusercontent.com/f0ed9408058b97762bc33f826b93ef19067c845bf973783f1191c4a81487773d/68747470733a2f2f7472617669732d63692e6f72672f6a616e323030302f66667872616469782e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/jan2000/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\]
- \[2\]
- \[3\]

Example Usage
-------------

[](#example-usage)

```
