3. The method of claim 1 , wherein the code portion of the application document is associated with one or more macros for the application document.
1. A method for forming a digital signature for a code portion of an application document comprising: invoking, on a computer, a code signature module registered with an operating system of the computer, wherein: the application document is stored on the computer as an application document file having a structured storage format that is associated with a corresponding application program utilized to open and access the application document, the code portion is embedded in the application document and includes code that is executed when the application document is opened and accessed by the corresponding application program to perform processing operations on the application document, the application document includes one or more other portions storing user edits that were made to data which is to be presented when the application document is opened and accessed by the corresponding application program, the structured storage format of the application document file determines where the code portion and the other portions are stored in the application document, the registered code signature module is registered with the operating system to process the structured storage format of the application document file and is able to process a plurality of different structured storage formats that define different locations for storing code, and the registered code signature module is invoked by an operating system routine on the computer for signing the code portion of the application document without utilizing the corresponding application program to open and access the application document; parsing the application document stored on the computer in accordance with the structured storage format of the application document file to locate the code portion of the application document; obtaining, by the registered code signature module, the code portion of the application document; providing a hash for the code portion of the application document to the operating system; and automatically signing the code portion of the application document by storing a digital signature constructed by the operating system in the application document, wherein: the digital signature is stored in the application document in accordance with the structured storage format of the application document file without utilizing the corresponding application program to open and access the application document, the digital signature corresponds to the code portion and is for verification that the code included in the code portion of the application document has not been modified after the digital signature was stored, and the digital signature does not correspond to the other portions of the application document and is not for verification of the data included in the other portions of the application document which is to be presented when the application document is opened and accessed by the corresponding application program.