CN110705263A - Character information input checking method and storage medium - Google Patents

Character information input checking method and storage medium Download PDF

Info

Publication number
CN110705263A
CN110705263A CN201910914952.7A CN201910914952A CN110705263A CN 110705263 A CN110705263 A CN 110705263A CN 201910914952 A CN201910914952 A CN 201910914952A CN 110705263 A CN110705263 A CN 110705263A
Authority
CN
China
Prior art keywords
information
check
input
character information
real
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
CN201910914952.7A
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.)
Fujian Rongji Software Engineering Co Ltd
Original Assignee
Fujian Rongji Software Engineering 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 Fujian Rongji Software Engineering Co Ltd filed Critical Fujian Rongji Software Engineering Co Ltd
Priority to CN201910914952.7A priority Critical patent/CN110705263A/en
Publication of CN110705263A publication Critical patent/CN110705263A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

The invention provides an input checking method of character information and a storage medium, wherein the method further comprises the following steps: receiving input character information and input verification information; and calculating real-time check information according to the input character information, comparing whether the real-time check information is consistent with the input check information, if so, passing the check, otherwise, failing to pass the check. Because the real-time verification information is calculated in real time according to the input character information, when the input character information has errors, the corresponding real-time verification information is different from the input verification information, and the verification cannot be passed, thereby effectively improving the accuracy of input character information entry.

Description

Character information input checking method and storage medium
Technical Field
The invention relates to the field of security, in particular to an input verification method of character information and a storage medium.
Background
When the file information code (such as the MD5 information code) generated by the security system is transmitted, the security system is not connected with the external Internet, so that the transmission can be completed only in a manual mode by a user. The general method is that the file information code is printed on paper, and then the file information code is input into a computer which can be networked in a manual input mode by a user, but because the MD5 information code is complicated in itself, the user is very easy to make mistakes when inputting manually, and therefore new challenges are brought to the input of the text information code.
Disclosure of Invention
Therefore, a technical scheme for inputting and checking character information needs to be provided, so that the problem that errors are easy to occur due to the fact that text information codes of a security system need to be manually input is solved.
In order to achieve the above object, the inventor provides an entry checking method of character information, the method further comprising:
receiving input character information and input verification information;
and calculating real-time check information according to the input character information, comparing whether the real-time check information is consistent with the input check information, if so, passing the check, otherwise, failing to pass the check.
Further, the input character information is an MD5 information code, and the calculating of the real-time verification information by the input character information includes:
dividing the MD5 information code into a plurality of groups of data by taking a first number as a unit;
correspondingly generating a check code according to each split group of data to obtain the check code with the grouping number of digital characters;
intercepting a preset digit of a check code containing a plurality of grouped characters to obtain real-time check information.
Further, the first number is 8, and the preset number is 3 last bits.
Further, the input character information and the input verification information are generated through a security system, the security system is a non-networking system, and the input character information and the input verification information are recorded through paper media and are manually input through a user.
Further, the input character information is an MD5 information code, and the calculating of the real-time verification information by the input character information includes:
dividing the MD5 information code into a plurality of groups of data by taking a first number as a unit;
performing a first operation on each of the groups of the split data to generate a check code having a number of digits grouped; the first operation comprises: multiplying each character in the split data by a numerical value of a preset gradient from left to right, then adding products corresponding to the characters to obtain an accumulated value, and taking the unit digit of the accumulated value as a check digit corresponding to the grouped split data; and executing the operation on each group of data to obtain the check bits corresponding to each group of split data, and recombining the check bits corresponding to each group of split data into the real-time check information.
The inventors also provide a storage medium storing a computer program which, when executed by a processor, performs the steps of:
the character information input checking method is characterized by further comprising the following steps:
receiving input character information and input verification information;
and calculating real-time check information according to the input character information, comparing whether the real-time check information is consistent with the input check information, if so, passing the check, otherwise, failing to pass the check.
Further, the input character information is an MD5 information code, and the calculating of the real-time verification information by the input character information includes:
dividing the MD5 information code into a plurality of groups of data by taking a first number as a unit;
correspondingly generating a check code according to each split group of data to obtain a check code containing a first number of characters;
intercepting a preset digit of a check code containing a plurality of grouped characters to obtain real-time check information.
Further, the preset number is the last 3 bits.
Further, the input character information and the input verification information are generated through a security system, the security system is a non-networking system, and the input character information and the input verification information are recorded through paper media and are manually input through a user.
Further, the input character information is an MD5 information code, and the calculating of the real-time verification information by the input character information includes:
dividing the MD5 information code into a plurality of groups of data by taking a first number as a unit;
performing a first operation on each of the groups of the split data to generate a check code having a number of digits grouped; the first operation comprises: multiplying each character in the split data by a numerical value of a preset gradient from left to right, then adding products corresponding to the characters to obtain an accumulated value, and taking the unit digit of the accumulated value as a check digit corresponding to the grouped split data; and executing the operation on each group of data to obtain the check bits corresponding to each group of split data, and recombining the check bits corresponding to each group of split data into the real-time check information.
Different from the prior art, the method for inputting and checking character information and the storage medium in the above technical solution further include: receiving input character information and input verification information; and calculating real-time check information according to the input character information, comparing whether the real-time check information is consistent with the input check information, if so, passing the check, otherwise, failing to pass the check. Because the real-time verification information is calculated in real time according to the input character information, when the input character information has errors, the corresponding real-time verification information is different from the input verification information, and the verification cannot be passed, thereby effectively improving the accuracy of input character information entry.
Drawings
Fig. 1 is a flowchart of an input verification method for character information according to an embodiment of the present invention;
fig. 2 is a flowchart of an entry checking method of character information according to another embodiment of the present invention;
fig. 3 is a flowchart of an entry checking method of character information according to another embodiment of the present invention;
Detailed Description
To explain technical contents, structural features, and objects and effects of the technical solutions in detail, the following detailed description is given with reference to the accompanying drawings in conjunction with the embodiments.
Fig. 1 is a flowchart of an entry checking method for character information according to an embodiment of the present invention. The method further comprises the following steps:
the process first proceeds to step S101 to receive input character information and input verification information. The input verification information refers to verification information generated by corresponding calculation when the input character information is correct, namely standard verification information.
Preferably, the input character information and the input verification information are generated through a security system, the security system is a non-networking system, and the input character information and the input verification information are recorded through paper media and are manually input by a user, so that the safety of information input is ensured.
Preferably, the input character information is an MD5 information code, and the MD5 information code is composed of a plurality of letters or numbers, wherein the number range is generally 0 to 9, and the letter range is a to F (equivalent to 11 to 15 in 16-system).
And then, step S102 is carried out, real-time verification information is calculated according to the input character information, whether the real-time verification information is consistent with the input verification information or not is compared, if yes, step S103 is carried out, and if not, step S104 is carried out, the verification is not carried out.
Because the real-time verification information is calculated in real time according to the input character information, when the input character information has errors, the corresponding real-time verification information is different from the input verification information, and the verification cannot be passed, thereby effectively improving the accuracy of input character information entry.
As shown in fig. 2, in some embodiments, the input character information is an MD5 information code, and the calculating the real-time verification information by the input character information includes:
the method first proceeds to step S201 to split the MD5 information code into a plurality of groups of data in units of a first number. Preferably, the first number is 8.
And then step S202 is carried out to correspondingly generate a check code according to each group of split data, so as to obtain the check code containing the grouping number of digital characters. Preferably, the generating a check code according to each split group of data correspondingly includes: and taking any one of the 1 st to 4 th bits, the average value, the maximum value, the minimum value and the median of each group of data as a corresponding check code of the group. By performing the above operations for each group, a check code having a number of digits comprising the grouping number can be obtained.
And then step S203 is entered to intercept the preset digit number of the check code containing a plurality of grouped characters to obtain real-time check information. Preferably, the first number is 8, and the preset number is 3 last bits. For example, the MD5 information codes have 32 bits in total, 8 bits are taken as a group and can be divided into 4 groups, 4 check codes are obtained by calculating 8 groups, and then the last 3 bits of the check codes are intercepted as check information.
In other embodiments, the calculating the real-time verification information from the input character information includes: dividing the MD5 information code into a plurality of groups by taking 4 bits as a group, adding each group of data (calculated by 16-system) to obtain a check intermediate value, and taking the preset number of bits of the check intermediate value as check information. For example, a 32-bit MD5 check code is "38 b8c2c1093dd0fec383a9d9ac 940515", which is divided into 4 groups, which are respectively "38 b 8", "c 2c 1", "093 d", "d 0 fe", "c 383", "a 9d 9", "ac 94" and "0515", and the 8 groups of data are added (added according to a 16-system rule), so as to obtain a check intermediate value "12 ce 3", and the last 3 bits "ce 3" of the check intermediate value is intercepted as the final check information of the MD5 check code.
In some embodiments, the input character information is an MD5 information code, and the calculating the real-time verification information by the input character information includes:
firstly, entering step S301 to split the MD5 information code into a plurality of groups of data by taking a first number as a unit;
then step S302 is carried out to execute a first operation on each group of the split data so as to generate a check code with a group number of numeric characters; the first operation comprises: multiplying each character in the split data by a numerical value of a preset gradient from left to right, then adding products corresponding to the characters to obtain an accumulated value, and taking the unit digit of the accumulated value as a check digit corresponding to the grouped split data;
then, step S302 is performed on each group of data (i.e., step S302), so as to obtain check bits corresponding to each group of split data, and the check bits corresponding to each group of split data are recombined into the real-time check information.
Also taking the MD5 check code "38 b8c2c1093dd0fec383a9d9ac 940515" as an example, it is divided into 4 groups according to 8 bits, which are: "38 b8c2c 1", "093 dd0 fe", "c 383a9d 9" and "ac 940515", for each character in the 4 groups of data, multiplying the corresponding numerical value from left to right according to a preset gradient, for example, multiplying the highest "3" in "38 b8c2c 1" by the numerical value "8", multiplying the second highest "8" by the numerical value "7", and so on, multiplying the lowest "1" by the numerical value "1", and obtaining an accumulated value. Of course, the preset gradients may be in order from small to large, such as multiplying the highest "3" by the value "1", multiplying the second highest "8" by the value "2", and so on multiplying the lowest "1" by the value "8" in "38 b8c2c 1".
And then, taking the single digit of the accumulated value corresponding to each group as the check digit corresponding to the grouped split data to obtain 4 check digits, wherein the 4 check digits form final check information. Because the check bit is corresponding to the packet split data, when the calculated real-time check information is inconsistent with the input check information, which packet data is in error can be obtained by comparing the corresponding check bit, and the user can check the table and input the data again conveniently. Preferably, when the real-time verification information is inconsistent with the input verification information, the system may prompt the corresponding split data with a prompt message, where the prompt message may be a voice prompt message or an image prompt message, for example, a highlight portion may be used to display 8-bit data with inconsistent verification bits, or which 8-bit data is erroneous may be prompted by voice. Therefore, the user can reduce the search of the error information from 32 bits (the number of bits of the whole MD5 information code) to 8 bits (the number of bits of the grouping), so that the search is facilitated, and the information calibration rate is improved.
And the inventors further provide a storage medium storing a computer program which, when executed by a processor, performs the steps of:
the character information input checking method is characterized by further comprising the following steps:
receiving input character information and input verification information;
and calculating real-time check information according to the input character information, comparing whether the real-time check information is consistent with the input check information, if so, passing the check, otherwise, failing to pass the check.
In some embodiments, the input character information is an MD5 information code, and the calculating the real-time verification information by the input character information includes:
dividing the MD5 information code into a plurality of groups of data by taking a first number as a unit;
correspondingly generating a check code according to each split group of data to obtain a check code containing a first number of characters;
intercepting a preset digit of a check code containing a plurality of grouped characters to obtain real-time check information.
In some embodiments, the first number is 8, and the predetermined number of bits is the last 3 bits.
In some embodiments, the input character information and the input verification information are generated by a security system, the security system is a non-networked system, and the input character information and the input verification information are recorded by paper media and manually input by a user.
In some embodiments, the input character information is an MD5 information code, and the calculating the real-time verification information by the input character information includes:
dividing the MD5 information code into a plurality of groups of data by taking a first number as a unit;
performing a first operation on each of the groups of the split data to generate a check code having a number of digits grouped; the first operation comprises: multiplying each character in the split data by a numerical value of a preset gradient from left to right, then adding products corresponding to the characters to obtain an accumulated value, and taking the unit digit of the accumulated value as a check digit corresponding to the grouped split data; and executing the operation on each group of data to obtain the check bits corresponding to each group of split data, and recombining the check bits corresponding to each group of split data into the real-time check information.
It should be noted that, although the above embodiments have been described herein, the invention is not limited thereto. Therefore, based on the innovative concepts of the present invention, the technical solutions of the present invention can be directly or indirectly applied to other related technical fields by making changes and modifications to the embodiments described herein, or by using equivalent structures or equivalent processes performed in the content of the present specification and the attached drawings, which are included in the scope of the present invention.

Claims (10)

1. A method for inputting and checking character information is characterized by further comprising the following steps:
receiving input character information and input verification information;
and calculating real-time check information according to the input character information, comparing whether the real-time check information is consistent with the input check information, if so, passing the check, otherwise, failing to pass the check.
2. An entry verification method for character information according to claim 1, wherein the input character information is an MD5 information code, and the calculation of the real-time verification information by the input character information comprises:
dividing the MD5 information code into a plurality of groups of data by taking a first number as a unit;
correspondingly generating a check code according to each split group of data to obtain the check code with the grouping number of digital characters;
intercepting a preset digit of a check code containing a plurality of grouped characters to obtain real-time check information.
3. An entry checking method for character information according to claim 2, wherein the first number is 8, and the preset number of bits is the last 3 bits.
4. An entry verification method for character information as claimed in claim 1, wherein the input character information and the input verification information are generated by a security system, the security system is a non-networked system, and the input character information and the input verification information are recorded by paper media and manually input by a user.
5. An entry verification method for character information according to claim 1, wherein the input character information is an MD5 information code, and the calculation of the real-time verification information by the input character information comprises:
dividing the MD5 information code into a plurality of groups of data by taking a first number as a unit;
performing a first operation on each of the groups of the split data to generate a check code having a number of digits grouped; the first operation comprises: multiplying each character in the split data by a numerical value of a preset gradient from left to right, then adding products corresponding to the characters to obtain an accumulated value, and taking the unit digit of the accumulated value as a check digit corresponding to the grouped split data; and executing the operation on each group of data to obtain the check bits corresponding to each group of split data, and recombining the check bits corresponding to each group of split data into the real-time check information.
6. A storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the steps of:
the character information input checking method is characterized by further comprising the following steps:
receiving input character information and input verification information;
and calculating real-time check information according to the input character information, comparing whether the real-time check information is consistent with the input check information, if so, passing the check, otherwise, failing to pass the check.
7. The storage medium of claim 6, wherein the input character information is an MD5 information code, and the calculating the real-time verification information by the input character information comprises:
dividing the MD5 information code into a plurality of groups of data by taking a first number as a unit;
correspondingly generating a check code according to each split group of data to obtain a check code containing a first number of characters;
intercepting a preset digit of a check code containing a plurality of grouped characters to obtain real-time check information.
8. The storage medium of claim 7, wherein the first number is 8 and the predetermined number of bits is the last 3 bits.
9. The storage medium of claim 6, wherein the input character information and the input verification information are generated by a security system, the security system being a non-networked system, the input character information and the input verification information being recorded on a paper medium and manually entered by a user.
10. The storage medium of claim 6, wherein the input character information is an MD5 information code, and the calculating the real-time verification information by the input character information comprises:
dividing the MD5 information code into a plurality of groups of data by taking a first number as a unit;
performing a first operation on each of the groups of the split data to generate a check code having a number of digits grouped; the first operation comprises: multiplying each character in the split data by a numerical value of a preset gradient from left to right, then adding products corresponding to the characters to obtain an accumulated value, and taking the unit digit of the accumulated value as a check digit corresponding to the grouped split data; and executing the operation on each group of data to obtain the check bits corresponding to each group of split data, and recombining the check bits corresponding to each group of split data into the real-time check information.
CN201910914952.7A 2019-09-26 2019-09-26 Character information input checking method and storage medium Pending CN110705263A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910914952.7A CN110705263A (en) 2019-09-26 2019-09-26 Character information input checking method and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910914952.7A CN110705263A (en) 2019-09-26 2019-09-26 Character information input checking method and storage medium

Publications (1)

Publication Number Publication Date
CN110705263A true CN110705263A (en) 2020-01-17

Family

ID=69198139

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910914952.7A Pending CN110705263A (en) 2019-09-26 2019-09-26 Character information input checking method and storage medium

Country Status (1)

Country Link
CN (1) CN110705263A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100318807A1 (en) * 2009-06-15 2010-12-16 Hon Hai Precision Industry Co., Ltd. System and method for generating a disguised password based on a real password
CN105262589A (en) * 2014-07-16 2016-01-20 阿里巴巴集团控股有限公司 Data security check method and apparatus and check device
CN108768656A (en) * 2018-04-17 2018-11-06 无锡科技职业学院 A kind of hash algorithm applied to data check
CN109120464A (en) * 2018-10-23 2019-01-01 国网安徽省电力有限公司 Secondary equipment of intelligent converting station configuration information remote online control device
CN109543158A (en) * 2018-10-26 2019-03-29 深圳点猫科技有限公司 A kind of method and electronic equipment of information of being checked character in real time based on application program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100318807A1 (en) * 2009-06-15 2010-12-16 Hon Hai Precision Industry Co., Ltd. System and method for generating a disguised password based on a real password
CN105262589A (en) * 2014-07-16 2016-01-20 阿里巴巴集团控股有限公司 Data security check method and apparatus and check device
CN108768656A (en) * 2018-04-17 2018-11-06 无锡科技职业学院 A kind of hash algorithm applied to data check
CN109120464A (en) * 2018-10-23 2019-01-01 国网安徽省电力有限公司 Secondary equipment of intelligent converting station configuration information remote online control device
CN109543158A (en) * 2018-10-26 2019-03-29 深圳点猫科技有限公司 A kind of method and electronic equipment of information of being checked character in real time based on application program

Similar Documents

Publication Publication Date Title
US20150207790A1 (en) Method and system for generating and authorizing dynamic password
US20150261796A1 (en) Specifying and applying logical validation rules to data
CN110489466B (en) Method and device for generating invitation code, terminal equipment and storage medium
CN107634765A (en) A kind of Internet of Things coding method and system
CN111078677A (en) Data entry method and device
CN112559817A (en) Report content checking method, system, computer equipment and storage medium
US10956599B2 (en) Non-transitory computer readable recording medium, alteration detection method, and alteration detection apparatus
CN110705263A (en) Character information input checking method and storage medium
CN111355709A (en) Data verification method and device, electronic equipment and computer readable storage medium
CN106446125B (en) Method and device for improving data quality
CN114564336A (en) Data consistency checking method, device, equipment and storage medium
US10579889B2 (en) Verification with error tolerance for secure product identifiers
CN112579566B (en) Distributed ID generation method and device
US11797644B2 (en) Identifying checksum mechanisms using linear equations
US9887903B2 (en) Comparison between different descriptions of a web service
CN116644071B (en) Material coding management method, device, computer equipment and storage medium
US20170132278A1 (en) Systems and Methods for Inferring Landmark Delimiters for Log Analysis
CN114884646B (en) System password storage method based on improved MD5 encryption processing
CN112269806B (en) Data query method, device, equipment and computer storage medium
JP2581276B2 (en) Password management method
CN111752796B (en) Method and device for determining model corresponding to log information
US20160291664A1 (en) Power system monitoring and control system having thread-dependent calculation monitoring function
CN115426166A (en) Data encryption method, device, equipment and computer readable storage medium
CN114116439A (en) Debugging information output method and device, software debugging equipment and storage medium
CN110597401A (en) Mechanism information input 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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20200117

WD01 Invention patent application deemed withdrawn after publication