FPE Encryption

Format Preserving Encryption (FPE) refers to transforming data PlainText such that output is in the same format as input. FPE works on finite set of alphabets and typically used for

  • Encrypt 16 digit credit card number, so that the cipher text is another 16 digit number
  • Encrypt any English word, so that the cipher is another English word

0123456789

How to use this tool?

This tool allows you to encrypt any numeric or alphanumeric text, so that resulting ciphertext is in same format.

  • Select input Alphabet (either Numeric or Alphanumeric)
  • Enter or paste plain text data that needs to be encrypted in the first text box. No space or special characters are allowed and the characters must be within Alphabet range
  • Select what type of key you want to specify.
    • Use "Secret" option, if want to remember the key to decrypt at later point of time.
    • Use "Key (Base64 encoded)", if you already have a key and same should be used for encryption. This is useful when you need to compare or validate cipher text with other program. Key should be Base64 encoded.
  • Enter secret text or Key depending on option selected in previous step
  • Select encryption algorithm from the drop down
  • Click "Encrypt" to perform encryption operation

After encryption, the Cipher Text will be displayed in the text box along with actual IV and encryption key. Cipher Text is the encryted form of Plain Text

About AES Encryption & Decryption

Format Preserving Encryption (FPE) is a symmetric block cipher and there are two modes FF1 and FF3 approved by NIST SP 800-38G

Cipher Modes

There are two modes of operation for FPE

  • FF1
  • FF3
Plain Text

Text that needs to be encrypted is referred as Plain Text

Cipher Text

Encrypted text is referred to as Cipher Text