Disclosed is a fragile watermarking scheme for detecting and localizing
malicious alterations made to a database relation with categorical
attributes without introducing distortions to cover data. A watermark for
a tuple group may be inserted by selectively switching the position of
tuples in tuple pairs using a tuple hash associated with each tuple in
the tuple pair; and a corresponding bit in a watermark derived from the
tuple group using a embedding key, a primary key and hash functions.