CN107391663A - A kind of file MD5 value automatic batch calibration equipments and method - Google Patents
A kind of file MD5 value automatic batch calibration equipments and method Download PDFInfo
- Publication number
- CN107391663A CN107391663A CN201710590030.6A CN201710590030A CN107391663A CN 107391663 A CN107391663 A CN 107391663A CN 201710590030 A CN201710590030 A CN 201710590030A CN 107391663 A CN107391663 A CN 107391663A
- Authority
- CN
- China
- Prior art keywords
- file
- compared
- original document
- folder
- path
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of file MD5 values automatic batch calibration equipment, including file acquisition module, the file acquisition module includes original document folder path acquiring unit and folder path acquiring unit to be compared, original document folder path and folder path to be compared are obtained, folder content is obtained according to input path;Original document MD5 value read modules, the MD5 values of original document folder All Files are read, by MD5 values and error message outputting log file;File MD5 value read modules to be compared, the MD5 values for being not more than file All Files to be compared under the folder path to be compared of setting number are read, export MD5 values comparison result and be saved in journal file.Present invention also offers a kind of file MD5 values automatic batch method of calibration, the present invention realizes that batch processing is no more than file to be compared work compared with the MD5 values that original document presss from both sides of setting number, reduces manual steps, improves efficiency, ensures testing efficiency.
Description
Technical field
The present invention relates to software testing technology field, especially a kind of file MD5 value automatic batch calibration equipments and method.
Background technology
MD5 (Message Digest Algorithm) is a kind of widely used hash function of computer safety field,
It is one of widely used hash algorithm of computer for ensuring that information transfer is completely consistent.MD5 typical case is uniformity
Checking, informative abstract (Message-Digest) is produced to a segment information (Message), to prevent information to be tampered.Such as machine
The inspection of close data, download the inspection of file, the encryption of clear-text passwords etc..
, it is necessary to which tester carries out the complete consistency checking of software before the issue of software official release.Typically by
MD5 instruments manually are used, read the MD5 values for wanting file publishing one by one, then manually by the MD5 values and the MD5 values of original document
Contrasted.This method efficiency is low, and the degree of accuracy is difficult to ensure that, the influence of easy tested person personnel.
The content of the invention
It is an object of the invention to provide a kind of file MD5 value automatic batch calibration equipments and method, text to be measured is completed in batches
Part MD5 values and the MD5 of original document contrast.
To achieve the above object, the present invention uses following technical proposals:
A kind of file MD5 values automatic batch calibration equipment, including file acquisition module, the file acquisition module bag
Original document folder path acquiring unit and folder path acquiring unit to be compared is included, obtains original document folder path and to be compared
Folder path, folder content is obtained according to input path;Original document MD5 value read modules, read original document folder institute
Documentary MD5 values, by MD5 values and error message outputting log file;File MD5 value read modules to be compared, read few
The MD5 values of file All Files to be compared under the folder path to be compared of setting number, output MD5 values comparison result is simultaneously
It is saved in journal file.
Further, the original document folder path acquiring unit exists including original document folder path judges subelement,
Judge that the original document folder path of input whether there is;Original document folder non-NULL judges subelement, judges the original document of input
Whether folder is empty;Original document folder input results show subelement, send original document folder path dependent options prompting message, original text
Part folder presss from both sides path and inputs prompting message to screen for empty prompting message or original document.
Further, it is single in the presence of son is judged to include folder path to be compared for the folder path acquiring unit to be compared
Member, judge that the folder path to be compared of input whether there is;File non-NULL to be compared judges subelement, judges treating for input
Whether comparison document folder is empty;File input results to be compared show subelement, send folder path to be compared and carry extremely
Awake information, file to be compared are that empty prompting message or folder path to be compared input prompting message to screen;Text to be compared
Part presss from both sides path number judgment sub-unit, judges whether effective folder path number to be compared of input exceedes the number of setting;
File number judge subelement, judge file internal file number to be compared whether with original document press from both sides internal file number
Unanimously.
A kind of file MD5 values automatic batch method of calibration, comprises the following steps:
S1, obtain original document path;
S2, obtain folder path to be compared;
S3, traversal read and store the MD5 values of All Files in original document folder;
S4, traversal read and store the MD5 values of All Files in file to be compared;
S5, it will treat that documents folder is stored to journal file with original document folder comparing result, and the display pair on screen
Compare result.
Further, the acquisition original document path comprises the following steps:
S101, original document folder path, which exist, judges that subelement judges that the original document folder path of input whether there is, and is,
Original document folder input results show that subelement shows paths as empty prompting message, jump to step S102;It is no, jump to step
S103;
S102, original document folder non-NULL judge that subelement judges whether the original document folder of input is empty, is original document
Press from both sides input results and show that subelement shows that file is empty prompting message, jump to step S103;It is no, jump to step S103;
S103, judge whether that continuous n times input is invalid, be, original document folder input results show subelement prompting user
Input invalid and automatically exit from;It is no, jump to step S104;
S104, prompting user input folder path to be compared.
Further, the acquisition folder path to be compared comprises the following steps:
S201, folder path to be compared, which exist, judges that subelement judges that inputting folder path to be compared whether there is,
It is to jump to step S202;It is no, ignore and this time input, jump to step S203;
S202, file non-NULL to be compared judge that subelement judges whether import folders is empty, are that to ignore this defeated
Enter, jump to step S203, it is no, jump to step S203;
S203, folder path number judgment sub-unit to be compared judge whether effectively folder path number to be compared is big
In setting number, it is to ignore this time to input, jumps to step S204;No, folder path number judgment sub-unit to be compared is sentenced
It is disconnected whether to complete all folder path inputs to be compared, it is to jump to step S204;It is no, jump to step S201;
S204, file number judge that subelement judges whether folder file number to be compared is equal in original document folder
Number of files, it is to jump to step S3, no, file input results to be compared show that subelement is invalid in screen prompt user
Comparing result.
The invention has the advantages that
The present invention realizes that batch processing is no more than the file to be compared of setting number compared with the MD5 values that original document presss from both sides
Work, manual steps are reduced, improve efficiency, ensure testing efficiency.
Brief description of the drawings
Fig. 1 is file MD5 values automatic batch calibration equipment block diagram of the present invention;
Fig. 2 is file MD5 values automatic batch method of calibration flow chart of the present invention.
Embodiment
As shown in figure 1, a kind of file MD5 values automatic batch calibration equipment, including file acquisition module 11, file obtains
Modulus block includes original document folder path acquiring unit 14 and folder path acquiring unit 15 to be compared, obtains original document folder
Path and folder path to be compared, folder content is obtained according to input path;Original document MD5 values read module 12, read
The MD5 values of original document folder All Files are taken, by MD5 values and error message outputting log file;File MD5 values to be compared are read
Module 13, read the MD5 values for being not more than file All Files to be compared under the folder path to be compared of setting number, output
MD5 values comparison result is simultaneously saved in journal file.
Original document folder path acquiring unit 14 includes original document folder path and judgement subelement 16 be present, judges input
Original document folder path whether there is;Original document folder non-NULL judge subelement 17, judge input original document folder whether be
It is empty;Original document folder input results show subelement 18, send original document folder path dependent options prompting message, original document folder is
Empty prompting message or original document folder path inputs prompting message to screen.
Folder path acquiring unit 15 to be compared includes folder path to be compared and judgement subelement 19 be present, judges defeated
The folder path to be compared entered whether there is;File non-NULL to be compared judges subelement 20, judges the text to be compared of input
Whether part folder is empty;File input results to be compared show subelement 21, send folder path abnormity prompt letter to be compared
Breath, file to be compared are that empty prompting message or folder path to be compared input prompting message to screen;File to be compared
Path number judgment sub-unit 22, judges whether effective folder path number to be compared of input exceedes the number of setting;Text
Part folder number judge subelement 23, judge file internal file number to be compared whether with original document press from both sides internal file number
Unanimously.
As shown in Fig. 2 a kind of file MD5 values automatic batch method of calibration, comprises the following steps:
S1, obtain original document path;
S2, obtain folder path to be compared;
S3, traversal read and store the MD5 values of All Files in original document folder;
S4, traversal read and store the MD5 values of All Files in file to be compared;
S5, it will treat that documents folder is stored to journal file with original document folder comparing result, and the display pair on screen
Compare result.
Original document path is obtained to comprise the following steps:
S101, original document folder path, which exist, judges that subelement judges that the original document folder path of input whether there is, and is,
Original document folder input results show that subelement shows paths as empty prompting message, jump to step S102;It is no, jump to step
S103;
S102, original document folder non-NULL judge that subelement judges whether the original document folder of input is empty, is original document
Press from both sides input results and show that subelement shows that file is empty prompting message, jump to step S103;It is no, jump to step S103;
S103, judge whether that continuous n times input is invalid, be, original document folder input results show subelement prompting user
Input invalid and automatically exit from;It is no, jump to step S104;
S104, prompting user input folder path to be compared.
Folder path to be compared is obtained to comprise the following steps:
S201, folder path to be compared, which exist, judges that subelement judges that inputting folder path to be compared whether there is,
It is to jump to step S202;It is no, ignore and this time input, jump to step S203;
S202, file non-NULL to be compared judge that subelement judges whether import folders is empty, are that to ignore this defeated
Enter, jump to step S203, it is no, jump to step S203;
S203, folder path number judgment sub-unit to be compared judge whether effectively folder path number to be compared is big
In setting number, it is to ignore this time to input, jumps to step S204;No, folder path number judgment sub-unit to be compared is sentenced
It is disconnected whether to complete all folder path inputs to be compared, it is to jump to step S204;It is no, jump to step S201;
S204, file number judge that subelement judges whether folder file number to be compared is equal in original document folder
Number of files, it is to jump to step S3, no, file input results to be compared show that subelement is invalid in screen prompt user
Comparing result.
Although above-mentioned the embodiment of the present invention is described with reference to accompanying drawing, model not is protected to the present invention
The limitation enclosed, one of ordinary skill in the art should be understood that on the basis of technical scheme those skilled in the art are not
Need to pay various modifications or deformation that creative work can make still within protection scope of the present invention.
Claims (6)
1. a kind of file MD5 values automatic batch calibration equipment, it is characterized in that, including file acquisition module, the file obtain
Modulus block includes original document folder path acquiring unit and folder path acquiring unit to be compared, obtains original document folder path
With folder path to be compared, folder content is obtained according to input path;Original document MD5 value read modules, read original
The MD5 values of file All Files, by MD5 values and error message outputting log file;File MD5 value read modules to be compared,
The MD5 values for being not more than file All Files to be compared under the folder path to be compared of setting number are read, export MD5 value ratios
To result and it is saved in journal file.
2. a kind of file MD5 values automatic batch calibration equipment as claimed in claim 1, it is characterized in that, the original document folder
Path acquiring unit includes original document folder path and judgement subelement be present, judges whether the original document folder path of input deposits
;Original document folder non-NULL judges subelement, and whether the original document folder for judging input is empty;Original document folder input results show
Show subelement, send original document folder path dependent options prompting message, original document folder presss from both sides road for empty prompting message or original document
Footpath inputs prompting message to screen.
3. a kind of file MD5 values automatic batch calibration equipment as claimed in claim 1, it is characterized in that, the file to be compared
Pressing from both sides path acquiring unit includes folder path to be compared in the presence of subelement is judged, judging the folder path to be compared of input is
No presence;File non-NULL to be compared judges subelement, and whether the file to be compared for judging input is empty;File to be compared
Input results show subelement, send folder path abnormity prompt information to be compared, file to be compared is empty prompting message
Or folder path to be compared inputs prompting message to screen;Folder path number judgment sub-unit to be compared, judges to input
Effective folder path number to be compared whether exceed setting number;File number judges subelement, judges to be compared
Whether file internal file number is consistent with original document folder internal file number.
4. a kind of file MD5 values automatic batch method of calibration, using any one of claims 1 to 3 claim described device, its
It is characterized in, comprises the following steps:
S1, obtain original document path;
S2, obtain folder path to be compared;
S3, traversal read and store the MD5 values of All Files in original document folder;
S4, traversal read and store the MD5 values of All Files in file to be compared;
S5, it will treat that documents folder is stored to journal file with original document folder comparing result, and the display comparison knot on screen
Fruit.
5. a kind of file MD5 values automatic batch method of calibration as claimed in claim 4, it is characterized in that, it is described to obtain original text
Part path comprises the following steps:
S101, original document folder path, which exist, judges that subelement judges that the original document folder path of input whether there is, and is, original
File input results show that subelement shows paths as empty prompting message, jump to step S102;It is no, jump to step
S103;
S102, original document folder non-NULL judge that subelement judges whether the original document folder of input is empty, are that original document folder is defeated
Enter result and show that subelement shows that file is empty prompting message, jump to step S103;It is no, jump to step S103;
S103, judge whether that continuous n times input is invalid, be, original document folder input results show subelement prompting user's input
It is invalid and automatically exit from;It is no, jump to step S104;
S104, prompting user input folder path to be compared.
6. a kind of file MD5 values automatic batch method of calibration as claimed in claim 4, it is characterized in that, the acquisition is to be compared
Folder path comprises the following steps:
S201, folder path to be compared, which exist, judges that subelement judges that inputting folder path to be compared whether there is, and is to jump
Go to step S202;It is no, ignore and this time input, jump to step S203;
S202, file non-NULL to be compared judge that subelement judges whether import folders is empty, are to ignore this time to input, jump
Step S203 is gone to, it is no, jump to step S203;
S203, folder path number judgment sub-unit to be compared judge effectively whether folder path number to be compared is more than and set
Fixed number mesh, it is to ignore this time to input, jumps to step S204;No, folder path number judgment sub-unit judgement to be compared is
It is no to complete all folder path inputs to be compared, it is to jump to step S204;It is no, jump to step S201;
S204, file number judge that subelement judges whether folder file number to be compared is equal to file in original document folder
Number, it is to jump to step S3, no, file input results to be compared show subelement in the invalid contrast of screen prompt user
As a result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710590030.6A CN107391663A (en) | 2017-07-19 | 2017-07-19 | A kind of file MD5 value automatic batch calibration equipments and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710590030.6A CN107391663A (en) | 2017-07-19 | 2017-07-19 | A kind of file MD5 value automatic batch calibration equipments and method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107391663A true CN107391663A (en) | 2017-11-24 |
Family
ID=60340260
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710590030.6A Pending CN107391663A (en) | 2017-07-19 | 2017-07-19 | A kind of file MD5 value automatic batch calibration equipments and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107391663A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113626872A (en) * | 2021-10-11 | 2021-11-09 | 宁波集联软件科技有限公司 | Control method for integrity of preset resources in automobile memory chip module |
CN114880174A (en) * | 2022-05-07 | 2022-08-09 | 苏州睿芯集成电路科技有限公司 | Modularized and configurable fast regression method and device in CPU verification |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6618724B1 (en) * | 2000-04-17 | 2003-09-09 | Sun Microsystems, Inc. | Human-natural string compare for filesystems |
CN101551818A (en) * | 2009-04-14 | 2009-10-07 | 北京红旗中文贰仟软件技术有限公司 | A unidirectional multi-mapping file matching method |
CN202904575U (en) * | 2011-06-28 | 2013-04-24 | 湖州电力局 | A server monitoring system based on a PI database |
CN103731483A (en) * | 2013-12-25 | 2014-04-16 | 侯金涛 | Virtual file system based on cloud computing |
CN106055692A (en) * | 2016-06-12 | 2016-10-26 | 上海爱数信息技术股份有限公司 | Automatic testing method and system for comparison files or folders |
-
2017
- 2017-07-19 CN CN201710590030.6A patent/CN107391663A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6618724B1 (en) * | 2000-04-17 | 2003-09-09 | Sun Microsystems, Inc. | Human-natural string compare for filesystems |
CN101551818A (en) * | 2009-04-14 | 2009-10-07 | 北京红旗中文贰仟软件技术有限公司 | A unidirectional multi-mapping file matching method |
CN202904575U (en) * | 2011-06-28 | 2013-04-24 | 湖州电力局 | A server monitoring system based on a PI database |
CN103731483A (en) * | 2013-12-25 | 2014-04-16 | 侯金涛 | Virtual file system based on cloud computing |
CN106055692A (en) * | 2016-06-12 | 2016-10-26 | 上海爱数信息技术股份有限公司 | Automatic testing method and system for comparison files or folders |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113626872A (en) * | 2021-10-11 | 2021-11-09 | 宁波集联软件科技有限公司 | Control method for integrity of preset resources in automobile memory chip module |
CN114880174A (en) * | 2022-05-07 | 2022-08-09 | 苏州睿芯集成电路科技有限公司 | Modularized and configurable fast regression method and device in CPU verification |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101214893B1 (en) | Apparatus and method for detecting similarity amongf applications | |
CN104954353B (en) | The method of calibration and device of APK file bag | |
CN103763101B (en) | A kind of method of user login validation, apparatus and system | |
CN110457628B (en) | Webpage version checking method, device, equipment and storage medium | |
CN107797854B (en) | Transaction file processing method and device, storage medium and computer equipment | |
WO2008009991A1 (en) | Document similarity system | |
CN109582907A (en) | Method of calibration, device, equipment and the readable storage medium storing program for executing of web page resources integrality | |
US20190205570A1 (en) | Method and device for verifying instructions of diagnostic equipment, and lower computer | |
CN110955395A (en) | Risk assessment method and device for printing system and storage medium | |
CN107315955A (en) | File security recognition methods and device | |
CN112231702B (en) | Application protection method, device, equipment and medium | |
CN113467784B (en) | Application processing method and device and computer readable storage medium | |
CN113704781A (en) | File secure transmission method and device, electronic equipment and computer storage medium | |
CN107391663A (en) | A kind of file MD5 value automatic batch calibration equipments and method | |
US9852119B2 (en) | Device for securing contents of a web page | |
CN109302383A (en) | A kind of URL monitoring method and device | |
KR101742041B1 (en) | an apparatus for protecting private information, a method of protecting private information, and a storage medium for storing a program protecting private information | |
CN112711570A (en) | Log information processing method and device, electronic equipment and storage medium | |
CN109684205B (en) | System testing method, device, electronic equipment and storage medium | |
CN111783119A (en) | Form data security control method and device, electronic equipment and storage medium | |
CN106407815A (en) | Vulnerability detection method and device | |
CN114662097A (en) | CSV file injection attack detection method and device, electronic equipment and storage medium | |
CN111597552B (en) | Code scanning method and terminal equipment | |
CN106156656B (en) | Cross-system implementation method of data platform and data platform | |
CN111538481B (en) | Application program customization method and system |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171124 |