Description
Format-preserving encryption.
README.md
[![Hackage](https://im"source-directories": [ "frontend" ]
://hackage.haskell.org/package/fpackage.elm-lang.org
tps://github.com/galenhuntington/fpe/actions/workflows/haskell.yml/badge.svg)
Format-preserving encryption encrypts data without changing its format. An example is encrypting a 16-digit credit card number as 16 digits. The encryption uses a key, which is secret, and an optional tweak, which can be public and varies for each record (such as the cardholder's name), and provides extra security.
This module implements FF1. Another similar algorithm, FF3, is no longer considered secure, and so is not included (yet).
For example usage, see ff1test.hs
.