CN114880680A - Record data storage system and storage method based on SHA256 encryption algorithm - Google Patents

Record data storage system and storage method based on SHA256 encryption algorithm Download PDF

Info

Publication number
CN114880680A
CN114880680A CN202210478966.0A CN202210478966A CN114880680A CN 114880680 A CN114880680 A CN 114880680A CN 202210478966 A CN202210478966 A CN 202210478966A CN 114880680 A CN114880680 A CN 114880680A
Authority
CN
China
Prior art keywords
certificate
data
storage
recording
platform
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210478966.0A
Other languages
Chinese (zh)
Inventor
徐单恒
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Ancun Network Technology Co ltd
Original Assignee
Hangzhou Ancun Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Ancun Network Technology Co ltd filed Critical Hangzhou Ancun Network Technology Co ltd
Priority to CN202210478966.0A priority Critical patent/CN114880680A/en
Publication of CN114880680A publication Critical patent/CN114880680A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/53Querying
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10527Audio or video recording; Data buffering arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
    • H04L9/0643Hash functions, e.g. MD5, SHA, HMAC or f9 MAC
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10527Audio or video recording; Data buffering arrangements
    • G11B2020/10537Audio or video recording
    • G11B2020/10546Audio or video recording specifically adapted for audio data

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Power Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Storage Device Security (AREA)

Abstract

The invention discloses a record data storage and certification system and a record data storage and certification method based on an SHA256 encryption algorithm, which comprise the following steps: the recording background management module is used for opening a recording function for the user terminal according to the user requirement; the data storage platform is used for storing the recording source data of the user terminal and generating a unique identification value corresponding to the recording source data; and the block chain data certificate storage platform acquires a hash value from the recording source data of the user terminal by adopting an SHA256 encryption algorithm, generates a certificate of certificate storage based on the corresponding hash value and the identification value and feeds the certificate of certificate storage back to the user terminal. The invention combines the block chain evidence storing platform with the IPFS data evidence storing platform, applies the block chain technology to electronic data storage and fixation, and can ensure that all contents of the electronic data are completely and credibly penetrated in the judicial evidence discharging process.

Description

Record data storage system and storage method based on SHA256 encryption algorithm
Technical Field
The invention belongs to the technical field of data encryption, and particularly relates to a recording data storage system and a recording data storage method based on an SHA256 encryption algorithm.
Background
With the development of internet technology and application services and the emergence of informatization and intelligent rapid development modes in China, electronic evidences account for more than 70% of the total number of the evidences, how to better collect, store and fix massive electronic data and ensure that the electronic data is not distorted at the same time becomes a key point and a difficulty in the judicial field.
The recording data records and stores the related calls. The sound recording file can be used for judicial notarization. The encryption of data mainly adopts an encryption algorithm technology in a block chain. The block chain technology can well solve the authenticity, safety and credibility of electronic data keeping, fixing and authentication.
As the block chain evidence storage technology is accepted by more subjects and approved by law, the links of third party authentication, qualification or notarization can be gradually reduced in the examination link.
Disclosure of Invention
The invention aims to provide a record data storage and certification system and a record data storage and certification method based on an SHA256 encryption algorithm, so as to solve the problems in the background art.
In order to achieve the purpose, the invention provides the following technical scheme:
a record data storage and certification system based on SHA256 encryption algorithm comprises:
the recording background management module is used for opening a recording function for the user terminal according to the user requirement;
the data storage platform is used for storing the recording source data of the user terminal and generating a unique identification value corresponding to the recording source data;
and the block chain data certificate storage platform acquires a hash value from the recording source data of the user terminal by adopting an SHA256 encryption algorithm, generates a certificate of certificate storage based on the corresponding hash value and the identification value and feeds the certificate of certificate storage back to the user terminal.
Preferably, the data evidence storage platform is an IPFS data evidence storage platform, and the identification value is a CID identification value.
Preferably, the certificate storage certificate comprises a plurality of certificate storage information, the certificate storage information comprises a certificate storage party, a certificate storage type, a certificate storage name, a business name, certificate storage time, a certificate storage platform, a certificate storage number, a certificate storage block chain and certificate storage hash, and the certificate storage hash comprises a hash value and an identification value.
Preferably, the recording data storage system further comprises a recording justice query module, which is used for querying and downloading the stored recording source data and verifying the data in the recording data storage system.
Preferably, the recording source data stored in the recording data certificate storing system is inquired and downloaded based on the certificate storing number in the certificate storing certificate.
Preferably, the downloaded sound recording source data is subjected to data verification based on a hash value in the certificate of authenticity.
A record data evidence storing method based on an SHA256 encryption algorithm comprises the following steps:
the administrator activates a recording function to the user terminal of the user through the recording background management module;
the data storage platform stores corresponding recording source data according to a storage request of the user terminal, generates a unique identification value based on the recording source data and sends the unique identification value to the block link evidence storage platform;
the block chain certificate storage platform calculates a hash value by adopting an SHA256 encryption algorithm on the corresponding recording source data based on a storage request of the user terminal, generates a certificate of certificate storage based on the hash value and the identification value, stores the certificate of certificate storage, and feeds the certificate of certificate storage back to the user terminal.
Preferably, the method further comprises the steps of query downloading of the recorded sound source data and data verification: inquiring and downloading corresponding recording source data in a data certificate storage platform based on the identification value in the certificate storage certificate; and calculating the downloaded recording source data by adopting an SHA256 algorithm to obtain a parameter to be verified, judging whether the parameter to be verified is consistent with the hash value in the certificate of authenticity storage, if so, passing the data verification, otherwise, failing to pass the data verification.
Compared with the prior art, the invention has the beneficial effects that:
according to the method, the block chain evidence storage platform is arranged, whether the submitted sound recording source data are tampered or not is judged based on the hash value, and the real validity of the evidence is determined. Furthermore, the real and reliable recording source data is ensured by the IPFS data evidence storage platform and by the characteristics of safety, block storage, high-efficiency storage, permanent storage and the like of the IPFS storage. The invention combines the block chain evidence storing platform with the IPFS data evidence storing platform, applies the block chain technology to electronic data storage and fixation, and can ensure that all contents of the electronic data are completely and credibly penetrated in the judicial evidence discharging process. Compared with the traditional electronic data evidence, the block chain based decentralized and multi-node trust consensus mechanism. Has the advantages of multi-side evidence storage, evidence solidification, convenient evidence collection and wide efficacy.
Drawings
Fig. 1 is a schematic diagram of the overall architecture of the record data storage system based on the SHA256 encryption algorithm.
FIG. 2 is a schematic diagram of a message digest decomposition and an algorithm iteration in the SHA256 encryption algorithm; wherein, the first and the second end of the pipe are connected with each other,
FIG. 2-1 is a schematic diagram of 8 initial hash values in the SHA256 encryption algorithm;
FIG. 2-2 is a schematic diagram of message data decomposition in the SHA256 encryption algorithm;
fig. 2-3 are schematic diagrams of message data mapping iteration processes in the SHA256 encryption algorithm.
Fig. 3 is a schematic diagram of a certificate of authenticity storage structure.
FIG. 4 is a flowchart of the recording data certification method based on the SHA256 encryption algorithm of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without any inventive step, are within the scope of the present invention.
Fig. 1 is a schematic diagram of the overall architecture of a recorded data storage system based on the SHA256 encryption algorithm. Referring to fig. 1, a record data evidence storing system based on SHA256 encryption algorithm includes a record background management module, a data evidence storing platform, and a block chain data evidence storing platform.
The recording background management module is used for opening a recording function for the user terminal according to the user requirement; the user can select the corresponding recording function according to the package provided by the platform. After the recording function is activated, the user terminal can record the voice call.
The IPFS data storage platform is used for storing the recording source data of the user terminal and generating a unique CID identification value corresponding to the recording source data.
The IPFS is a content distribution network, the whole network is composed of thousands of nodes, and as long as an apparatus runs the IPFS service, the apparatus can be said to be a node.
In the invention, when the recording source data is uploaded to the IPFS node for storage by the IPFS data storage and verification platform, the data is stored in blocks by the IPFS node, and specifically, when the IPFS stores files, the following steps are performed:
1. splitting a single file into a number of 256KB sized blocks;
2. calculating a block hash (block hash) block by block;
3. splicing all block hashes into an array in sequence, calculating the hash of the array once to obtain the root hash of the file, associating the root hash with the spliced array to form an object, and using the object as an index structure;
4. and uploading all the blocks and the index structure to the IPFS node, and synchronizing the file to the IPFS network.
Therefore, the data storage of the IPFS is based on block storage, and after the recording source data is stored in blocks, the root hash is used to represent the stored recording source data file.
The CID is a mark used for indicating content in the IPFS and can be used for indicating a document, and since the generation of the CID is obtained by performing hash encryption on the content, different CIDs are generated for any different content, and therefore each stored file has a unique CID identification value.
In the present invention, IPFS is content-addressing based, tamper resistant. All content is checked and verified based on content addressing, and if the data is tampered or damaged, the IPFS will detect the corresponding data file.
According to the invention, a data storage platform based on an IPFS protocol is established to realize the efficient storage and downloading of large file data.
The block chain data certificate storage platform adopts an SHA256 encryption algorithm to obtain a hash value for recording source data of the user terminal, and generates a certificate of certificate storage based on the corresponding hash value and the identification value. The SHA256 algorithm processes the input recording source data according to 512bit grouping, and finally generates a256 bit abstract.
In the application process of the SHA256 encryption algorithm, 8 initial hash values and 64 constant hash values are specified first. As shown in fig. 2-1, the 8 hash initial values take the first 32 bits of the fractional part of the square root of the first 8 prime numbers in the natural number.
As shown in fig. 2-2 and fig. 2-3, in the data encryption process, the file data message is first divided into N parts of 512-bit size, the data of the first data block is taken, the data is divided into 16 parts of 32-bit size, the first 8 hash initial values H (0) are obtained through the first message block data operation, H (1) is obtained through the second message block data operation, H (2) is obtained, and the process is repeated until H (N), and the finally obtained information digest is a 256-bit digest.
The data encryption process relates to constant initialization, information preprocessing, a logic operation formula and calculation of the obtained information abstract.
In the SHA256 encryption algorithm, 6 logical operation formulas are required to operate on byte data, each operation formula operates on 32-bit bytes and outputs 32-bit bytes, and the specific operation formula is as follows:
Figure BDA0003624039860000051
Figure BDA0003624039860000052
Figure BDA0003624039860000053
Figure BDA0003624039860000054
Figure BDA0003624039860000055
Figure BDA0003624039860000056
the block chain data certificate storage platform generates a certificate storage serial number based on a hash value H1 and a CID identification value, and takes the hash value H1, the CID identification value and the certificate storage serial number as certificate storage information of the certificate storage certificate, wherein the certificate storage information of the certificate storage certificate further comprises a certificate storage party, a certificate storage type, a certificate storage name, a service name, certificate storage time, a certificate storage platform and a certificate storage block chain.
The certificate storing number is generated according to a preset arrangement rule based on the name of the certificate storing platform, the timestamp for generating the certificate storing number, the random letter and the UUID value.
In the invention, the encrypted recording source data file is determined according to the unique attribute of the hash value, so that the original data file can be effectively prevented from being tampered.
The recording justice inquiry module is used for applying for inquiry downloading and data verification of the recording sound source data in the recording data storage and certification system: and inquiring and downloading the recording source data stored in the IPFS data certificate storage platform based on the certificate storage codes in the certificate storage certificate, checking whether the file CID value in the certificate storage certificate is consistent with the file CID value retrieved from the IPFS, if so, performing data verification on the recording source data downloaded from the IPFS data certificate storage platform based on the hash value in the certificate storage certificate, and otherwise, discarding the recording source data.
FIG. 4 is a flowchart of the recording data certification method based on the SHA256 encryption algorithm of the present invention. Referring to fig. 4, a record data certification method based on the SHA256 encryption algorithm specifically includes the following 4 steps.
Step 1: and the administrator activates a recording function to the user terminal of the user in need through the recording background management module.
Step 2: and the data storage platform stores corresponding recording source data according to a storage request of the user terminal, generates a unique CID identification value based on the recording source data and sends the CID identification value to the block chain storage platform.
And step 3: and the block link certificate storage platform calculates a hash value H1 by adopting an SHA256 encryption algorithm on the corresponding recording source data based on a storage request of the user terminal, generates a certificate of certificate storage based on the hash value and the identification value, stores the certificate of certificate storage, and feeds the certificate of certificate storage back to the user terminal.
And 4, step 4: inquiring and downloading corresponding recording source data on a data certificate storing platform based on the certificate storing number in the certificate storing certificate; and calculating the downloaded recording source data by adopting an SHA256 algorithm to obtain a parameter to be verified, judging whether the parameter to be verified is consistent with the hash value H1 in the certificate of authenticity storage, if so, passing the data verification, otherwise, failing to pass the data verification.
In the invention, the applicant writes all content reports, prepares relevant materials and applies for handling the notarization to a notarization department. And the notarization department applies for the acceptance parties meeting the acceptance conditions and calls the recording file needing the notarization from the IPFS evidence storage platform. The notarization personnel can review the recording data and issue a notarization certificate with a certain legal effect within a certain time after meeting the application conditions. The specific certification process comprises the following steps: application, acceptance, evidence collection, examination and discharge.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (9)

1. A record data storage and certification system based on SHA256 encryption algorithm is characterized by comprising:
the recording background management module is used for opening a recording function for the user terminal according to the user requirement;
the data certificate storage platform is used for storing the recording source data of the user terminal and generating a unique identification value corresponding to the recording source data;
and the block chain data certificate storage platform acquires a hash value from the recording source data of the user terminal by adopting an SHA256 encryption algorithm, generates a certificate of certificate storage based on the corresponding hash value and the identification value and feeds the certificate of certificate storage back to the user terminal.
2. The system of claim 1, wherein the data certification platform is an IPFS data certification platform, and the identification value is a CID identification value.
3. The system for evidence storage of recorded data based on SHA256 encryption algorithm as claimed in claim 1, wherein the evidence storage certificate comprises a plurality of evidence storage information, the evidence storage information comprises evidence storage party, evidence storage type, evidence storage name, service name, evidence storage time, evidence storage platform, evidence storage number, evidence storage block chain, and evidence storage hash, and the evidence storage hash comprises hash value and identification value.
4. The system of claim 4, wherein the certification number is generated according to a preset arrangement rule based on the certification platform, the timestamp, the random alphabet and the UUID value.
5. The record data credentialing system based on the SHA256 encryption algorithm as claimed in claim 1, wherein said credentialing system further comprises a record fairness query module for querying and downloading the stored record source data and performing data verification in the record data credentialing system.
6. The system of claim 5, wherein the recording source data stored to the recording data certification system is downloaded based on a certificate number stored in a certificate.
7. The record data certification system based on the SHA256 encryption algorithm of claim 5, wherein the downloaded record source data is data-verified based on a hash value in the certification.
8. A record data evidence storing method based on an SHA256 encryption algorithm is characterized by comprising the following steps:
the administrator activates a recording function to the user terminal of the user through the recording background management module;
the data storage platform stores corresponding recording source data according to a storage request of the user terminal, generates a unique identification value based on the recording source data and sends the unique identification value to the block link evidence storage platform;
the block chain certificate storage platform calculates a hash value by adopting an SHA256 encryption algorithm on the corresponding recording source data based on a storage request of the user terminal, generates a certificate of certificate storage based on the hash value and the identification value, stores the certificate of certificate storage, and feeds the certificate of certificate storage back to the user terminal.
9. The record data certification method based on the SHA256 encryption algorithm of claim 8, further comprising the steps of query downloading of record source data and data verification: inquiring and downloading corresponding recording source data in a data certificate storing platform based on a certificate storing code in the certificate storing certificate; and calculating the downloaded recording source data by adopting an SHA256 algorithm to obtain a parameter to be verified, judging whether the parameter to be verified is consistent with the hash value in the certificate of certificate storage, if so, passing the data verification, otherwise, failing to pass the data verification.
CN202210478966.0A 2022-04-29 2022-04-29 Record data storage system and storage method based on SHA256 encryption algorithm Pending CN114880680A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210478966.0A CN114880680A (en) 2022-04-29 2022-04-29 Record data storage system and storage method based on SHA256 encryption algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210478966.0A CN114880680A (en) 2022-04-29 2022-04-29 Record data storage system and storage method based on SHA256 encryption algorithm

Publications (1)

Publication Number Publication Date
CN114880680A true CN114880680A (en) 2022-08-09

Family

ID=82673219

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210478966.0A Pending CN114880680A (en) 2022-04-29 2022-04-29 Record data storage system and storage method based on SHA256 encryption algorithm

Country Status (1)

Country Link
CN (1) CN114880680A (en)

Similar Documents

Publication Publication Date Title
JP7062838B2 (en) How to register data as a digital file in the blockchain database
US11907406B2 (en) Computer-implemented method and system of tamper-evident recording of a plurality of service data items
CN111914027B (en) Block chain transaction keyword searchable encryption method and system
US10754848B2 (en) Method for registration of data in a blockchain database and a method for verifying data
US7249258B2 (en) Method and system for assuring an original
CN110704864B (en) Block chain-based government integrity archive license management method
CN111444257A (en) Block chain-based electronic evidence storage method and system
CN112732695B (en) Cloud storage data security deduplication method based on block chain
CN114637808A (en) File privacy protection and encrypted evidence storage method and system based on block chain technology
CN110601848A (en) Appointment information processing method, device and system based on block chain and electronic equipment
CN114124502B (en) Message transmission method, device, equipment and medium
CN115208628B (en) Data integrity verification method based on block chain
CN114078061A (en) Electric power core data traceability system based on block chain
WO2000013368A1 (en) Method of authenticating or 'digitally signing' digital data objects
CN109978543B (en) Contract signing method and device, electronic equipment and storage medium
Zhang et al. Do you know where your data’s been?–tamper-evident database provenance
CN116232600A (en) Block chain-based data security storage method and system
CN116069856A (en) Data integrity verification method and system based on blockchain
CN114880680A (en) Record data storage system and storage method based on SHA256 encryption algorithm
CN113285934B (en) Method and device for detecting IP (Internet protocol) of server cryptographic machine client based on digital signature
CN114792270A (en) Loan contract online signing system based on block chain
CN110535663B (en) Method and system for realizing trusted timestamp service based on block chain
CN113672953A (en) Private chain file management system and method
CN109271811B (en) Group signature-based electronic material evidence tamper-proof storage method
CN111651795A (en) Bid document disclosing method, system and storage medium based on block chain

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination