The invention discloses an electronic contract encrypted storage method based on a national secret
algorithm, and relates to the technical field of contract encrypted storage. Comprising the following steps: extracting a complexity
feature vector based on a contract content structure, and calculating a slice
granularity parameter according to the complexity
feature vector; performing structure
slicing processing on the target electronic contract data according to the
slicing granularity parameter, and executing logic
breakpoint segmentation in combination with a
chain structure transfer node index in a contract to generate a contract
slicing sequence; respectively generating slice
metadata for the contract slice sequence, selecting a differentiated national cryptographic
algorithm parameter group according to the complexity
feature vector, and executing independent
encryption on each contract slice; and binding and packaging the encrypted contract slices and the corresponding slice
metadata into a slice archiving unit, and constructing an archiving index table according to the transfer node index and the
paragraph path information. According to the invention, the structure identification capability, the
encryption flexibility and the access
controllability of the electronic contract in the
encryption storage process are obviously improved.