Fuststraße 18, 55268 Nieder-Olm, Germany +49 176 600 32 119 info@now-success.com

Feistel Cipher

July 23, 2026 admin 0 Comments

Shoutout to Horst Feistel

A customer recently came up with a set of perfectly reasonable requirements for a CSM rollout:

  • No volume guessing: Customers shouldn’t be able to infer case volume from sequential numbers when calling multiple times.
  • Voice & Bot friendly: Numbers must be strictly numeric and easy to spell out over the phone.
  • High performance: Millions of records per year, so uniqueness checks can’t slow down record creation.

ServiceNow’s default auto-numbering couldn’t hit all three out of the box, but the solution was surprisingly clean: A Feistel cipher.

For context, a Feistel cipher is a symmetric block cipher structure that splits data into two halves and repeatedly modifies them using a round function. Because it’s a 1:1 mathematical permutation, it’s completely reversible and guarantees uniqueness without storing state.

The implementation:

  • A Script Include containing the cipher logic
  • A default value script to store the obfuscated string directly in the number field upon creation

The result: Case CS0010042 turns into CS 047 675 0485.
Unique, non-sequential, digit-only, and zero overhead on database performance.

I am sure there are multiple ways to achieve this, but this one worked well for this customer.
Have you had similar masking or numbering requirements in CSM/ITSM, and how did you tackle them?

Leave a Reply