A method of processing data
Patent Information
- Application Number
- NZ767539
- Authority / Receiving Office
- NZ · NZ
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2018-02-01
- Filing Date
- 2019-01-19
- Publication Date
- 2026-07-31
AI Technical Summary
Existing websites are easily attacked by hackers, leading to data leakage. In particular, the security risks of obtaining data through exhaustive methods are relatively high.
By using an image acquisition device to transmit data between the first computer and the second computer, if the information in the data is consistent, one processing method is used; if it is inconsistent, another processing method is used to verify and process the user login information. , to prevent hackers from obtaining data.
It effectively reduces the risk of hackers obtaining data through exhaustive methods and improves the security of the website.
Smart Images

Figure 1_ABST
Abstract
Description
A method for processing data TECHNICAL FIELD
[0001] The present application relates to the field of internet / computer technology, in particular to a method for processing data. BACKGROUND
[0002] In the current society, many companies and units will have their own websites to publish information for customers and users to understand their own information. However, such websites may have a large security risk and are easily attacked by hackers, giving hackers the opportunity to access the database of the company website and cause the leakage of company data.
[0003] SUMMARY
[0004] The purpose of the present application is to provide a method for processing data, which can avoid hackers obtaining data by exhaustive method.
[0005] The first computer sends first data to the first image acquisition device through the image output port of the first computer; the first image acquisition device sends the first data to the second computer, the first data containing first information and second information, the second data containing third information and fourth information, if the third information is consistent with the first information and the fourth information is consistent with the second information, the second computer processes the third data or the fourth data by the first method; if the third information is inconsistent with the first information or the fourth information is inconsistent with the second information, the second computer processes the third data or the fourth data by the second method.
[0006] Advantages: the present application can effectively reduce the hackers obtaining data by exhaustive method. BRIEF DESCRIPTION OF DRAWINGS
[0007] The present application will be further described in detail below in combination with the drawings and specific embodiments:
[0008] Fig. 1 is a flow chart of an embodiment of the method for transmitting data between the first computer and the second computer of the present application;
[0009] Fig. 2 is a structural schematic diagram of an embodiment of the data transmission device of the present application;
[0010] Fig. 3 is a first sample of the image in the present application;
[0011] Fig. 4 is a second sample of the image in the present application;
[0012] Fig. 5 is a third sample of the image in the present application;
[0013] Explanation of reference numerals:
[0014] 1. first computer, 2. first image acquisition device, 3. second image acquisition device, 4. second computer, 5. first display card, 6. second display card, 7. third display card, 8. fourth display card, 9. first display, 10. second display. DETAILED DESCRIPTION
[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, specific embodiments of the present application will be described below with reference to the drawings. Obviously, the drawings in the following description only represent some of the embodiments of the present application, and for those skilled in the art, other drawings can be obtained from these drawings without creative labor, and other embodiments can also be obtained.
[0016] In order to make the drawings simple, only the parts related to the present application are shown in the drawings, and they do not represent the actual structure of the product. In addition, in order to make the drawings simple and easy to understand, in some drawings, only one of the components with the same structure or function is shown, or only one of them is marked. In this paper, "one" not only means "only one", but also means "more than one".
[0017] 1. Establish a website:
[0018] A website W is established in the first computer 1, and the user information of the website W is stored in the database B, including: username, password and user personal information; personal information includes: name, phone, etc. The database B is installed in the second computer 4; the step of storing the user information of the website W into the database B is described in detail in the following embodiments; technical personnel commonly use development languages or platforms such as.NET, JAVA to generate web pages of the website W, and in the subsequent embodiments, program developers can choose different development tools according to needs.
[0019] The first computer is a Web server (Web Server); the first computer can also be an application program server (Application Server).
[0020] The definition of the application program server can be any of the following:
[0021] 1) The application program server is a computer running at least one set of server-side application program, and a set of server-side application program can form a corresponding server-side / client relationship with a client-side application program on other computers or a client-side application program on a mobile device;
[0022] 2) The application program server is capable of receiving Web server data or instructions, and further processing the data before sending it to the database server or other computers.
[0023] The second computer is a database server. The main purpose of the database server is to receive and store data sent by the first computer (web server or application server or other computer).
[0024] 2. Set:
[0025] 1) The first display card 5 and the third display card 7 are the same type of display card, and the first display card 5 and the third display card 7 use the same driver.
[0026] In the initial working condition, the first display card 5 and the third display card 7 do not output signals;
[0027] If not specified, the first display card does not output the desktop content of the first computer; the third display card does not output the desktop content of the second computer.
[0028] 2) In the system directory of the first computer and the second computer or in the directory specified by the user, a dynamic link library Rec.dll is added, and the dynamic link library contains the Recpic() function. The functions that the function Recpic() may have are described in detail in the implementation example.
[0029] 3) In the implementation example, the first computer has software M, a program P (referred to as program P), software F, software K and other programs, and the second computer has software J. The functions of these programs are described in detail in the implementation example. There are many development languages (tools) or platforms commonly used by developers to write these programs, and developers can choose different development tools according to their needs.
[0030] 4) The first computer sends an image through the video / image output port of the first display card (or the second computer sends an image through the video / image output port of the third display card), and the recognized content in the image includes letters, numbers, characters and symbols. The height of the content in the image is between 1.5mm and 40mm, the background color in the image is white, the color of the content in the image is black, and the line spacing of the content in the image is between 1mm and 15mm.
[0031] It should be noted that after the data in the image sent by the computer through the video / image output port of the display card is recognized, the blank lines need to be removed. In the image in the implementation example, the recognized data no longer contains blank lines.
[0032] 5) The first or third display card transmits 24 frames (or 60 frames) of images per second. The resolution of the image output by the first display card is consistent with the resolution of the image captured by the first image capturing device; the resolution of the image output by the third display card is consistent with the resolution of the image captured by the second image capturing device.
[0033] 6) The data format in the image is shown in the following table:
[0034] Table 1
[0035] Length (bytes) Type Example No. 20 integer 8002 command type 30 character "Login" username 20 character Zhang password 20 character Hello
[0036] As shown in Table 1 above, the data format A in the image, and the display form on the screen is shown in Fig. 3.
[0037] Table 2
[0038] Length (bytes) Type Example No. 20 integer 8002 user login success identifier 1 character Y name 20 character Zhang San phone 11 character 13888888888
[0039] As shown in Table 2 above, the data format B in the image, and the display form on the screen is shown in Fig. 4.
[0040] Table 3
[0041]
[0042] As shown in Table 3 above, the data format C in the image, and the display form on the screen is shown in Fig. 5.
[0043] In an embodiment of the present application:
[0044] Setting: the first computer runs a set of Server (server) side application program, the business data used by the Server side application program is stored in the database B, the Server side application program can receive the login request of the application program U in the user's mobile phone, and the Server side application program and the program U in the user's mobile phone can exchange data with each other.
[0045] 1. The user F opens the user login page of the website W, inputs the username (zhang) and the password (Hello), and clicks the "login" button, or the user F opens the application program U in the mobile phone, inputs the username (zhang) and the password (Hello), and clicks the "login" button.
[0046] 2. The first computer runs a program P, which is part of the application program of the website W, or part of the application program of the server; the program P generates a serial number, assuming that the serial number generated this time is 8002, the serial number increases sequentially, the program P places 8002, "login", the user name and the password in a frame image T, the display form of the frame image T on the screen is shown in Figure 3 (the data format in the frame image T is referred to Table 1 above), the image T is saved as 8002.jpg, and 8002.jpg is saved in the D:\pic directory of the first computer.
[0047] 3. The first computer converts the image file 8002.jpg into a signal suitable for the VGA port transmission of the first display card (the first display card is considered as a component of the first computer), and then sends the signal to the first image acquisition device, and the signal is sent only once; the program P deletes the image file 8002.jpg.
[0048] 5. The program P scans the D:\recfile directory every second, checks whether there is a text file named with the serial number in the directory, and in this embodiment, the text file named with the serial number refers to 8002.txt.
[0049] 6. The first image acquisition device receives the image T from the video / image output port of the first display card of the first computer; the first image acquisition device saves the image T as 0001.JPG in the memory of the first image acquisition device, and then sends 0001.JPG to the second computer, or the first image acquisition device sends the image T to the second computer, and the second computer saves the image T as 0001.jpg; in this step, the naming rule of the image file is from 0001, and increases sequentially.
[0050] 7. The second computer saves 0001.jpg in the D:\pic directory of the second computer.
[0051] The second computer runs a software J from the start, and the software J automatically monitors whether there is a new file in the D:\recpic\ directory, and when the software J monitors that there is a new file 0001.JPG in the D:\recpic\ directory, the software J identifies and acquires the data on 0001.JPG.
[0052] 8. If the second line of the data judged by the software J is "login", the second computer performs the following operations: the third line in the data read by the software J is taken as the user name, the fourth line is taken as the password, the software J reads the record in the database B and checks the user name and the password:
[0053] A) If the username and password are matched, the personal information of the user is returned, the personal information is name and phone. The software J puts the data in the first line of the data and the identification of the user login success in a frame of image Y, the display form of the image Y on the screen is shown in Fig. 4 (the data format in the image Y is referred to Table II), and the software J puts the serial number in the second computer, the serial number forms a corresponding relationship with the username, in other words, at this time, the username has a corresponding serial number;
[0054] B) If the username and password are not matched, the message "the username and password are not matched" is returned, the software J puts the data in the first line of the data, the identification of the user login failure and the message "the username and password are not matched" in a frame of image Y, the display form of the image Y on the screen is shown in Fig. 5 (the data format in the image Y is referred to Table III).
[0055] 9、The second computer converts the image Y into an image signal suitable for the VGA port transmission of the third display card (the third display card is considered as a component of the second computer), and then sends the image signal to the second image acquisition device, and the image signal is sent only once.
[0056] 10、After the second image acquisition device receives the image Y from the image / video output port of the third display card in the second computer, the second image acquisition device saves the image Y as R0001.JPG, and then the second image acquisition device sends R0001.JPG to the first computer, or the second image acquisition device sends the image Y to the first computer, and the first computer saves the image Y as R0001.JPG. In this step, the naming rule of the image file is "R" + file number, and the file number starts from 0001 and increases sequentially.
[0057] 11、The first computer stores R0001.JPG in the D:\recpic\directory in the first computer, and the first computer runs a software M from the start, and the software M automatically monitors whether there is a new file in the D:\recpic\directory, and when the software M monitors that there is a new file R0001.JPG in the D:\recpic\directory, the software M identifies and acquires the data on R0001.JPG, the data includes the information of the user login success or the information of the login failure "the username and password are not matched", if the number in the first line of the data is 8002, the software M saves the data as 8002.txt, and 8002.txt is saved in the D:\recfile directory; and the software M deletes R0001.JPG in the first computer.
[0058] The program P finds 8002.txt in the D:\recfile directory, and the first computer further performs the following operations:
[0059] If the number in the first line of the data is 8002, the first computer also performs the following operations:
[0060] 1) If the letter in the second line of 8002.txt is "Y", the display of the computer of user F or the application of the mobile phone displays "User login successfully".
[0061] 2) If the letter in the second line of 8002.txt is "N", the first computer sends "The username already exists or the two inputted passwords are inconsistent" to the computer or mobile phone of user F, and the display of the computer of user F or the application of the mobile phone displays "The username and password are not matched".
[0062] 3) The program P deletes 8002.txt in the first computer.
[0063] 12、User clicks the button of "View user information" on his computer, the first computer places the serial number, "Query", username and other information in the first line, second line and third line of picture Q, and then sends picture Q to the second computer;
[0064] 13、The second computer identifies the data of picture Q, if the second line is "Query", then reads out the username and its corresponding serial number stored in the second computer,
[0065] 1) If the username stored in picture Q is found in the second computer and the serial number corresponding to the username is consistent with the serial number in picture Q, then the customer information and serial number related to the username are placed in picture w, and the second computer sends picture w to the first computer;
[0066] 2) Otherwise, "Your access is not in line with the specification" is placed in picture w, and the second computer sends picture w to the first computer;
[0067] 14. The first computer sends the information in picture w to the computer of the user.
[0068] In another embodiment of the present application, the hardware is further required: the first image acquisition device is an image acquisition card installed in the second computer;
[0069] The second image acquisition device is an image acquisition card installed in the first computer;
[0070] 1、User F opens the user login webpage of website W, inputs the username, password, and clicks the "Login" button.
[0071] 2、the first computer runs a program P, generates a serial number, the serial number range is 5000 to 65535, if the generated serial number is greater than 65535, the serial number is equal to 5000, the serial number increases in turn, assuming that the generated serial number is 8002, or the program P runs after obtaining the session number generated by the user F opening the webpage, the serial number can also use the session number (hereinafter referred to as session number) instead; the program P places 8002, “login”, the user name “zhang” and the password “hello” in a frame image X, the display form of a frame image X on the screen is shown in figure 3 (the data format in a frame image X is referred to table 1).
[0072] 4、the first computer converts the image X into a signal suitable for the VGA port transmission of the first display card (the first display card is considered as a component of the first computer), and then sends the signal to the first image acquisition device, and the signal is sent only once.
[0073] 5、the program P runs a socket server program, a socket receiving end (server end) program for receiving data, and a socket receiving end program using a socket communication port number of 8002.
[0074] 6、the first image acquisition device acquires (receives) the image X from the video / image output port of the first display card of the first computer;
[0075] The driver program of the first image acquisition device calls the function Recpic() in the dynamic link library Rec.dll in the second computer, and the driver program of the first image acquisition device transmits the image X to the function Recpic();
[0076] 7、the function Recpic() in the Rec.dll in the second computer runs an image recognition program to recognize the data in the image X, and the second computer performs the following operations:
[0077] If the function Recpic() in the Rec.dll in the second computer judges that the second line of data is “login”, the function Recpic() in the Rec.dll in the second computer reads the third line of data as the user name and the fourth line as the password, and the function Recpic() in the Rec.dll in the second computer reads the records in the database B and checks the user name and the password:
[0078] A) If the username and password are matched, the information of the user's login success is returned, the function Recpic() in Rec.dll in the second computer puts the serial number and the identification of the user's login success in a frame of image S, in the image S, the first line is the serial number (or session number), and the second line is "Y"; the second computer stores the serial number (or session number) in the second computer, which forms a corresponding relationship with the username, in other words, at this time, the username has a corresponding serial number (or session number);
[0079] B) If the username and password are not matched, "the username and password are not matched" is returned, the function Recpic() in Rec.dll in the second computer puts the serial number, the identification of the user's login success and "the username and password are not matched" in a frame of image S, the display form on the screen is shown in Fig. 5 (the data format in a frame of image S is referred to Table 3 above).
[0080] 10) The second computer (the third display card is considered as a component of the second computer) converts the image S into a signal suitable for the VGA port transmission of the third display card, and then sends the signal to the second image acquisition device, and the signal is sent only once.
[0081] 11) The second image acquisition device acquires (receives) the image S from the video / image output port of the third display card of the second computer, the driver program of the second image acquisition device calls the function Recpic() in Rec.dll in the first computer, and the function Recpic() in Rec.dll in the first computer runs an image recognition program to recognize and obtain the data in the image S;
[0082] If the number in the first line of the data is 8002, then the function Recpic() in Rec.dll in the first computer runs a socket sender program (client program), the socket sender program sends the recognized data in the image, and the socket communication port number used by the socket sender program is 8002.
[0083] 12) The software P in the first computer receives the data,
[0084] The first computer further performs the following operations:
[0085] 1) If the second line of the data is "Y", the first computer sends the information of the user's login success to the computer of the user F, and the display of the computer of the user F displays "user login success";
[0086] 2) If the second line of the data is "N", the first computer sends "The username already exists or the two inputted passwords are not consistent" to the computer of the user F, and the computer of the user F displays "The username and password are not matched" on the display of the computer of the user F.
[0087] 13) The user F clicks the button of "Viewing the user information" on the computer of the user F, and the first computer places the serial number (or session number), "query", username and other information in the first line, second line and third line of the picture Q, and then sends the picture Q to the second computer.
[0088] 14) The second computer identifies the data of the picture Q, and if the second line is "query", then the second computer reads out the username and the corresponding serial number (or session number) stored in the second computer,
[0089] 1) If the username stored in the picture Q is found in the second computer and the serial number (or session number) corresponding to the username is consistent with the serial number (or session number) in the picture Q, then the second computer places the client information related to the username and the serial number (or session number) in the picture w, and then sends the picture w to the first computer.
[0090] 2) Otherwise, the second computer places "Your access is not in accordance with the specification" in the picture w, and then sends the picture w to the first computer.
[0091] 15) The first computer sends the information in the picture w to the computer of the user.
[0092] It should be noted that in any of the above embodiments:
[0093] The output port of the display card can be a DVI, HDMI or other image output port, and the input port of the corresponding image acquisition device also adopts a corresponding image input port. The first computer converts the relevant image / image file into a signal suitable for transmission through the DVI or HDMI output port of the first display card, and the second computer converts the relevant image / image file into a signal suitable for transmission through the DVI or HDMI output port of the third display card.
[0094] Any device capable of obtaining data from the first computer and capable of sending image signals to the image acquisition device should be considered as a substitute for the display card. The user can use the technology in the above embodiments to perform various operations.
[0095] In another embodiment of the present application, as shown in FIG. 1, a method for transmitting data between a first computer and a second computer, comprising:
[0096] Step S10: the first computer sends the first data to the first image acquisition device through the image output port of the first computer; the first image acquisition device sends the first data to the second computer, or the first image acquisition device generates the second data after processing the first data, and the first image acquisition device sends the second data to the second computer;
[0097] The first image acquisition device has an image input port, which is used to connect with the image output port of the first computer; the first data contains the first information and the second information; the image output port of the first computer includes the output port of the display card of the first computer;
[0098] Step S20: after the second computer processes the first data or the second data, the first computer sends the third data to the first image acquisition device through the image output port of the first computer; the first image acquisition device sends the third data to the second computer, or the first image acquisition device generates the fourth data after processing the third data, and the first image acquisition device sends the fourth data to the second computer;
[0099] Step S30: the third data or the fourth data contains the third information and the fourth information; if the third information is consistent with the first information and the fourth information is consistent with the second information, the second computer processes the third data or the fourth data by the first method; if the third information is inconsistent with the first information or the fourth information is inconsistent with the second information, the second computer processes the third data or the fourth data by the second method;
[0100] It should be noted that the above embodiments can be freely combined as needed. The above is only the preferred embodiment of the present application, and it should be pointed out that for ordinary skilled in the art, without departing from the principles of the present application, a number of improvements and refinements can also be made, which should be considered as the protection scope of the present application.
Claims
1. A method for processing data, the method being used to transmit data between a first computer and a second computer, characterized in that, include: The first computer sends first data to the first image acquisition device through its image output port. The first image acquisition device sends the first data to the second computer, or the first image acquisition device processes the first data to generate second data, and then sends the second data to the second computer. After the second computer processes the first data or the second data, the first computer sends the third data to the first image acquisition device through the image output port of the first computer; the first image acquisition device sends the third data to the second computer, or the first image acquisition device processes the third data to generate fourth data, and the first image acquisition device sends the fourth data to the second computer. The first image acquisition device has an image input port, which is used to connect to the image output port of the first computer; The first data includes first information and second information; The image output port of the first computer includes the output port of the display card of the first computer; The third or fourth data contains third information and fourth information. If the third information is consistent with the first information and the fourth information is consistent with the second information, the second computer processes the third or fourth data using the first method. If the third information is inconsistent with the first information or the fourth information is inconsistent with the second information, the second computer processes the third or fourth data using a second method.
2. The data processing method according to claim 1, characterized in that, The first computer is a web server or an application server.
3. The data processing method according to claim 1, characterized in that, The second computer is a database server.