O'Reilly logo

Effective XML: 50 Specific Ways to Improve Your XML by Elliotte Rusty Harold

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Item 48. Verify Documents with XML Digital Signatures

XML documents are used on Wall Street for financial transactions totaling hundreds of millions of dollars per day. Worldwide, the figure's even larger. There's significant incentive for criminals to modify XML documents moving from one system to another. XML digital signatures can help ensure that XML documents have not been tampered with in transit. Not all documents need to be digitally signed, but those that do need to be signed need it badly.

The basic process of signing something digitally involves a keyed hash function. A hash function converts documents into numbers, generally smaller than the document itself. Feed a document into the hash function; get a 128-byte number out. A very ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required