The invention is suitable for the technical field of data storage, and particularly relates to a data
encryption storage method and
system for gas detectors, and the method comprises the steps: obtaining the detection data of each
gas detector according to a preset time interval, and obtaining a plurality of
gas detector data packets; acquiring the data volume of each
gas detector data packet, performing normalization
processing, and constructing a first function; integrating the data packets of the gas
detector, and outputting a storage sequence to obtain
tail data; acquiring identity identification data, performing
data conversion on the first function, and forming head data in combination with the identity identification data. According to the method, the data storage sequence is changed through the randomly generated function, the data of the plurality of gas detectors are mixed and stored together to realize
encryption, and the required data can be quickly positioned by setting the head data and the
tail data, so that the data storage and positioning efficiency is greatly improved, and the requirement on the computing power is low.