April 5, 2016 By Larry Loeb 2 min read

There’s been a security problem with point-of-sale (POS) terminals that has been recognized and dealt with by both the retail industry and the government. The problem exists because payment card information ends up stored in the physical card reader after swiping. Those credit card readers are legacy hardware, designed in the days before operational security became a priority.

It has taken 10 years to devise a security scheme that would solve this problem without hindering transactions. The solution needed could not change the length or format of credit card numbers, for example, because related programs expected to see a certain format and would break if fed another.

This formatting problem extends beyond credit cards, even though they are an obvious case. Health information may have post-processing format sensitivity. Other uses may also include financial information security, data sanitization and the transparent encryption of fields in legacy databases.

NIST to the Rescue

The National Institute of Standards and Technology (NIST) announced a solution that can remedy this issue. It provided two possible ways of format-preserving encryption (FPE), which protects strings of payment card information from cybercriminals with encryption but still allows it to be read and processed by partner software.

According to the NIST release, “The new FPE method works on both binary and conventional (decimal) numbers — in fact, sequences created from any ‘alphabet’ of symbols — and it produces a result with the same length as the original.”

The NIST paper also noted that FPE facilitates the use of encryption with sensitive information as well as the retrofitting of encryption technology to legacy applications where a conventional encryption mode might not be feasible. This could include database applications that do not support changes to the length or format of data fields.

The two FPE techniques, called FF1 and FF3, were vetted during public comment periods in 2009 and 2013. While the implementations vary in execution speed, both are modes of operation for an approved symmetric block cipher algorithm known as the 128-bit block Advanced Encryption Standard (AES).

Adding Tweaks for More Security

In addition to the reformatted data, each of the possible techniques takes an additional input called a tweak. The tweak can be regarded as a changeable part of the key because together they determine the encryption and decryption functions. It is possible to have a static tweak, but the use of variable tweaks is strongly recommended by NIST as a security enhancement.

Keeping the native format of encrypted data intact may be a necessity for success, especially in a legacy system. This newest standard from NIST does just that.

More from

Cyberattack on American Water: A warning to critical infrastructure

3 min read - American Water, the largest publicly traded United States water and wastewater utility, recently experienced a cybersecurity incident that forced the company to disconnect key systems, including its customer billing platform. As the company’s investigation continues, there are growing concerns about the vulnerabilities that persist in the water sector, which has increasingly become a target for cyberattacks. The breach is a stark reminder of the critical infrastructure risks that have long plagued the industry. While the water utility has confirmed that…

What’s behind unchecked CVE proliferation, and what to do about it

4 min read - The volume of Common Vulnerabilities and Exposures (CVEs) has reached staggering levels, placing immense pressure on organizations' cyber defenses. According to SecurityScorecard, there were 29,000 vulnerabilities recorded in 2023, and by mid-2024, nearly 27,500 had already been identified.Meanwhile, Coalition's 2024 Cyber Threat Index forecasts that the total number of CVEs for 2024 will hit 34,888—a 25% increase compared to the previous year. This upward trend presents a significant challenge for organizations trying to manage vulnerabilities and mitigate potential exploits.What’s behind…

Quishing: A growing threat hiding in plain sight

4 min read - Our mobile devices go everywhere we go, and we can use them for almost anything. For businesses, the accessibility of mobile devices has also made it easier to create more interactive ways to introduce new products and services while improving user experiences across different industries. Quick-response (QR) codes are a good example of this in action and help mobile devices quickly navigate to web pages or install new software by simply scanning an image.However, legitimate organizations aren’t the only ones…

Topic updates

Get email updates and stay ahead of the latest threats to the security landscape, thought leadership and research.
Subscribe today