CN106331066B - Electronic equipment and information processing method - Google Patents
Electronic equipment and information processing method Download PDFInfo
- Publication number
- CN106331066B CN106331066B CN201610671232.9A CN201610671232A CN106331066B CN 106331066 B CN106331066 B CN 106331066B CN 201610671232 A CN201610671232 A CN 201610671232A CN 106331066 B CN106331066 B CN 106331066B
- Authority
- CN
- China
- Prior art keywords
- grouping
- account
- information
- caching
- illegal
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/14—Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
- H04L63/1441—Countermeasures against malicious traffic
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a kind of electronic equipment and information processing method, electronic equipment includes: receiving unit, for receiving the logging request of client transmission;Wherein, the first account is carried in logging request;Pretreatment unit determines the first grouping where the first account for pre-processing to the first account;First query unit, for whether being stored with the grouping information of the first grouping in query caching;Loading unit, for loading the grouping information of the first grouping from database when the not stored grouping information for having the first grouping in caching;Wherein, grouping information includes all user accounts and the corresponding password of each user account in the first grouping;Second query unit, for after being stored with the grouping information of the first grouping in caching or being loaded with the grouping information of the first grouping from database, the grouping information of the first grouping in query caching;Determination unit, for when not inquired the first account in the grouping information in the first grouping, determining that the first account is illegal account.
Description
Technical field
The present invention relates to Internet technical field more particularly to a kind of electronic equipment and information processing methods.
Background technique
It is also a very common demand using caching in Internet application.Account center is when user logs in, meeting
The account of user and password are saved in the buffer.It is typically all that memory is used to be situated between as the storage of caching on when caching
Matter, because the reading speed of memory is considerably beyond the reading speed of hard disk.It is usual when using caching in the prior art
It is that will just be loaded data into caching by inquiring database when user requests for the first time by the way of, in user
It is just read from caching when request again and returns to user.But the problem is that: malice, which is encountered, in service application attacks
When hitting, i.e. the parameter request using mistake of attacker repeatedly, such as illegal user's account causes service application caching
Middle lookup constantly penetrates caching less than data and inquires database, causes database pressure suddenly to become larger, business is caused to be answered
It is slack-off with corresponding speed, server delay machine is even resulted under serious situation, refuses externally service.
Summary of the invention
In view of this, the embodiment of the present invention be solve the problems, such as it is existing in the prior art at least one and a kind of electronics is provided
Equipment and information processing method.
The technical solution of the embodiment of the present invention is achieved in that
First aspect of the embodiment of the present invention provides a kind of electronic equipment, comprising:
Receiving unit, for receiving the logging request of client transmission;Wherein, the first account is carried in the logging request
Number;
Pretreatment unit determines first point where first account for pre-processing to first account
Group;
First query unit, for whether being stored with the grouping information of first grouping in query caching;
Loading unit, for when in the caching it is not stored have it is described first grouping grouping information when, from database
Load the grouping information of first grouping;Wherein, the grouping information include it is described first be grouped in all user accounts and
The corresponding password of each user account;
Second query unit, for being stored with the grouping information of first grouping in the caching or from the data
After being loaded with the grouping information of first grouping in library, the grouping information of the first grouping described in query caching;
Determination unit, for when it is described first grouping grouping information in do not inquired first account when, really
Fixed first account is illegal account.
Based on above scheme, the pretreatment unit is specifically used for carrying out Hash processing to first account, will be described
First account is converted into the Serial No. of the predetermined system of preset length;
The Serial No. is subjected to predefined function processing, obtains the grouping mark of the first grouping where first account
Know.
Based on above scheme, the pretreatment unit, specifically for by high M of the integer and low M progress logic
Operation or mathematical operation obtain the packet identification of first grouping.
Based on above scheme, the electronic equipment further include:
Third query unit, for inquiring illegal grouped record;
The determination unit is also used to when described first is grouped into the illegal grouping in the illegal grouped record, really
Fixed first account is illegal account.
Based on above scheme, the receiving unit is also used to when point for having first grouping not stored in the caching
When group information, receives the database and determining that described first is grouped into the exception information being illegally grouped;
The electronic equipment further include:
Updating unit, for updating the illegal grouped record according to the exception information.
Second aspect of the embodiment of the present invention provides a kind of information processing method, comprising:
Receive the logging request that client is sent;Wherein, the first account is carried in the logging request;
First account is pre-processed, determines the first grouping where first account;
Whether the grouping information of first grouping is stored in query caching;
When the not stored grouping information for having first grouping in the caching, described first point is loaded from database
The grouping information of group;Wherein, the grouping information includes all user accounts and each user account in first grouping
Corresponding password;
It is loaded with described the when the grouping information for being stored with first grouping in the caching or from the database
After the grouping information of one grouping, the grouping information of the first grouping described in query caching;
When not inquired first account in the grouping information in first grouping, first account is determined
For illegal account.
It is described that first account is pre-processed based on above scheme, determine first where first account
Grouping, comprising:
Hash processing is carried out to first account, first account is converted into the number of the predetermined system of preset length
Word sequence;
The Serial No. is subjected to predefined function processing, obtains the grouping mark of the first grouping where first account
Know.
It is described that the integer is subjected to predefined function processing based on above scheme, obtain the where first account
The packet identification of one grouping, comprising:
By high M of the integer and low M progress logical operation or mathematical operation, the grouping of first grouping is obtained
Mark.
Based on above scheme, the method also includes:
Inquire illegal grouped record;
When described first is grouped into the illegal grouping in the illegal grouped record, determine that the first account is illegal account
Number.
Based on above scheme, the method also includes:
When the not stored grouping information for having first grouping in the caching, the database is received described in the determination
First is grouped into the exception information being illegally grouped;
According to the exception information, the illegal grouped record is updated.
The electronic equipment and information processing method provided in the embodiment of the present invention will not after receiving logging request
The first account carried in the logging request account is directly inquired, but first account is pre-processed, described in determination
The first grouping where first account;The grouping information of the first grouping of inquiry arrives data if not inquiring in the buffer first
The grouping information of the first grouping of load, realizes the primary of the password for being grouped interior all user accounts and user account to first in library
Property load, avoid the data interaction time loaded between database caused by user account and the corresponding password of device and caching one by one
The loads of more, interactive more, the caused databases of signaling of number are big and because of delay machine problem caused by loading greatly.If current logging request is
The malicious attack of attacker can then reduce the ability that direct malicious attack penetrates into database, improve the anti-of database and attack
Ability is hit, the Information Security and safety in utilization of database are improved.
Detailed description of the invention
Fig. 1 is the flow diagram of the first information processing method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of second of information processing method provided in an embodiment of the present invention;
Fig. 3 is the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention;
Fig. 4 is a kind of calculating effect diagram of hash algorithm provided in an embodiment of the present invention;
Fig. 5 is the storage schematic diagram of user account provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram for another electronic equipment that the embodiment of the present invention is supplied to.
Specific embodiment
Below in conjunction with specification specific embodiment and Figure of description, technical solution of the present invention is further elaborated,
It should be appreciated that the technical solution that the specific embodiments described herein are merely illustrative of the present invention, is not used to limit this hair
Bright protection scope.
As shown in Figure 1, first embodiment of the invention proposes a kind of information processing method, comprising:
Step S110: the logging request that client is sent is received;Wherein, the first account is carried in the logging request;
Step S120: pre-processing first account, determines the first grouping where first account;
Step S130: the grouping information of first grouping whether is stored in query caching;
Step S140: it when the not stored grouping information for having first grouping in the caching, is loaded from database
The grouping information of first grouping;Wherein, the grouping information includes all user accounts and each institute in first grouping
State the corresponding password of user account;
Step S150: it loads when the grouping information for being stored with first grouping in the caching or from the database
After the grouping information of first grouping, the grouping information of the first grouping described in query caching;
Step S160: when not inquired first account in the grouping information in first grouping, institute is determined
Stating the first account is illegal account.
The first account can be pre-processed in the present embodiment, obtain a pre-processed results;The pretreatment, is determined
Grouping where first account;The grouping where first account is referred to as the first grouping in the present embodiment.
First grouping is inquired in step s 130;It, can be directly at first point if having stored the first grouping in caching
The grouping information of group inquires first account, if the grouping information that load first is grouped not directly from database, such
Words, the user account and password being just disposably loaded in all first groupings, realize legal user account and password
Batch loads.In this case, when thering is next time the user account request of the first grouping to log in, so that it may without being carried out to database
Data load, thus can to avoid frequently it is big to database load caused by database request data, because load greatly caused by
Data delay is big, even delay machine the problems such as.
In this case, if attacker is logged in using illegal account request, if the corresponding grouping of illegal account that request logs in
For be already loaded into caching in account, directly by inquire the grouping grouping information can realize the first account whether be
One determination of illegal account, in this way can be to avoid frequent inquiry database, the load information from database, caused database
The problems such as load is big.
As shown in Fig. 2, the step S120 can include:
Step S121: Hash processing is carried out to first account, first account is converted into the pre- of preset length
Determine the Serial No. of system;Here predetermined mechanisms may include the mathematics such as binary system, octal system, the decimal system or hexadecimal into
System.
Step S122: the Serial No. is subjected to predefined function processing, obtains first point where first account
The packet identification of group.
Usual first account can be character string, handle first with Hash be converted into character string in the present embodiment
Integer.Certain first account is not limited to character string, or Serial No. etc..Pass through predetermined letter in step S122
Number processing, determines the packet identification of the first grouping.Here packet identification can be the functional value after predefined function handled.
If certain first account inherently Serial No. when, the step S120 can directly include: by the number
Word sequence is directly considered as integer and carries out the predefined function processing, determines the packet identification.
Further, the step S122 can include:
By high M of the integer and low M progress logical operation or mathematical operation, the grouping of first grouping is obtained
Mark.
The character string can be handled by Hash and be converted into may include 2M by the step S121 in the present embodiment
Binary sequence;It is different by high M and low M progress exclusive or processing according to the sequence of binary sequence in step S122
Or the processing result of processing can be the packet identification of first grouping.Here logical operation may include with operation or fortune
Calculation or XOR operation etc..
Certainly, when the Serial No. is the non-binary sequences such as octual sequence, decimal sequence or hexadecimal,
Mathematical computations can be used, the packet identification is obtained.For example, by high M and low M progress arithmetic, described the is obtained
One packet identification.
Certainly, in specific implementation, the step S121 can also include: and directly turn the first account of Serial No.
Change the sequence of binary digits including 2M into;The sequence of binary digits can be subjected to aforementioned high M in step S122
Position and the processing of low M of exclusive or obtain the packet identification of first grouping.It is converted into 2M binary systems in the present embodiment
A high position for mathematical sequence adds Plus "0" to form 2M mathematical sequences.It goes together and adds the mathematical sequence conversion side of Plus "0" in a high position
Formula is equally applicable to the generation of the mathematical sequence of nonbinary.
In short, present embodiments providing a kind of easy method for obtaining the packet identification, have the characteristics that realize simple.
In some embodiments, the method also includes:
Inquire illegal grouped record;
When described first is grouped into the illegal grouping in the illegal grouped record, determine that the first account is illegal account
Number.
Also to be stored with illegal grouped record may include the information being illegally grouped in the caching or database, here non-
Method grouping may include the grouping being not present.The illegal grouped record may include the illegal packet identification being illegally grouped.If one
User account is converted to the non-grouping illegal packet identification being identified as in illegal grouped record, which may be exactly to attack
The side of hitting carries out the illegal account of malicious attack used, therefore in the present embodiment if it is determined that first account corresponding first
When being grouped into illegal grouping, it directly can determine that the first account of prime number is illegal account.
The caching can load the illegal grouping information from database in advance in the present embodiment.For example, receiving
The information of database active push, forms the illegal grouped record, and the data for not having to caching blindness requested database in this way add
It carries, the big problem of the load of caused database.
In some embodiments, the method also includes: when in the caching it is not stored have it is described first grouping grouping
When information, receives the database and determining that described first is grouped into the exception information being illegally grouped;According to the exception information,
Update the illegal grouped record.
When database determination, which has, detects new illegal grouping, active push, to facilitate caching to load, is shown into caching
The barrier effect that can be so attacked in this way with lifting means based on the data of buffer memory is reduced attack and directly penetrates into data
The problem of library causes.
In the present embodiment, the information processing method may also include the step in application database, such as:
Record user account and the corresponding password of the user account;
The user account is pre-processed, determines the grouping where the user account;
Received inquiry request, wherein the inquiry request includes the packet identification of the first grouping of request inquiry;
The inquiry request is responded, the grouping information that described first is grouped is loaded into caching;Wherein, described first point
The grouping information of group includes all user accounts and password in first grouping.
The database and the caching can be located in the same electronic equipment, can also be located at different electronic equipments;
Data connection is established by the external communication interface of electronic equipment.
In the present embodiment the database the grouping information of inquiry one of response buffer grouping inquiry request it
Before, legal user account can be grouped;And user account is grouped storage, the grouping information is formd, after
Continuous caching side can inquire the grouping information that the good place of the subscriber station is grouped, thus realization pair under the triggering of a user account
One all user account of grouping and being loaded into caching for password, to avoid caching caused by loading user account one by one
Often, the load of database caused by interaction soul waits more is big and because overload is led for data interaction between database
The problems such as delay machine of cause.
In the specific application process, applied in the database the method also includes: when not looking into database
When asking the grouping information of first grouping, exception information is formed;The exception information is sent to caching;Wherein, described
Exception information is used to supply the illegal grouped record of the buffer update;It include illegal grouping in the illegal grouped record.
In short, the record being illegally grouped described in the present embodiment, can also quickly recognize according to illegal grouped record
The malicious attack of illegal account promotes the safety of database to promote the anti-attack ability of database.
As shown in figure 3, the embodiment of the present invention also provides a kind of electronic equipment, comprising:
Receiving unit 110, for receiving the logging request of client transmission;Wherein, is carried in the logging request
One account;
Pretreatment unit 120 determines first where first account for pre-processing to first account
Grouping;
First query unit 130, for whether being stored with the grouping information of first grouping in query caching;
Loading unit 140, for when in the caching it is not stored have it is described first grouping grouping information when, from database
The grouping information of middle load first grouping;Wherein, the grouping information includes all user accounts in first grouping
And the corresponding password of each user account;
Second query unit 150, for being stored with the grouping information of first grouping in the caching or from described
After being loaded with the grouping information of first grouping in database, the grouping information of the first grouping described in query caching;
Determination unit 160, for when it is described first grouping grouping information in do not inquired first account when,
Determine that first account is illegal account.
Electronic equipment described in the present embodiment can be various types of electronic equipments with information processing, for example, being located at
The server of network side, for example, the various electronic equipments such as Cloud Server, social interaction server device, electric business server.Certain electronics
Equipment is also possible to directly establish the electronic equipment for having connection with client.
The receiving unit 110 can correspond to communication interface in the present embodiment, can receive various access from client
Request, for example, logging request;For example, it is desired to utilize user account and password login cloud platform, shopping website or social account
Account.
The pretreatment unit 120, the first query unit 130, loading unit 140, loading unit 140, the second cargo tracer
Member 150 and determination unit 160, can all correspond to processor or processing circuit;Processor can be central processing unit (CPU), micro-
Processor (MPU), digital signal processor (DSP) or field programmable gate array (FPGA) or application processor (AP) etc..Institute
Stating processing circuit can be specific integrated circuit etc..
The pretreatment unit 120, the first query unit 130, loading unit 140, loading unit 140, the second cargo tracer
Member 150 and determination unit 160 can correspond to same processor or processing circuit jointly, can also respectively correspond different places
Manage device or processing circuit.
In the present embodiment after receiving a logging request, the first account carried in logging request can be carried out
Pretreatment determines grouping;According to determining Querying by group database, disposably will include multiple user accounts grouping information all
It is loaded into caching, does not have to subsequent one load user account and password thus, reduce the friendship between caching and database
Mutual number reduces the busy degree of database, reduces malicious attack and directly penetrates into database delay machine etc. caused by database
Problem improves the security defense capability of database, improves the safety in utilization of database.
In some embodiments, the pretreatment unit 120 is specifically used for carrying out Hash processing to first account,
First account is converted into the Serial No. of the predetermined system of preset length;The Serial No. is carried out at predefined function
Reason obtains the packet identification of the first grouping where first account.The pretreatment unit 120 in the present embodiment leads to
Mass-election processing is crossed, by various formats, for example, the first account of string format is converted into the Serial No. of predetermined system;Right
Serial No. carries out predefined function processing, obtains packet identification.This processing 120 of pretreatment unit described in the present embodiment has
Simplicity has the characteristics that realize easy.
In some embodiments, the pretreatment unit 120, specifically for carrying out high M of the integer and low M
Logical operation or mathematical operation obtain the packet identification of first grouping.The logical operation in the present embodiment may include
It is therein one or more with operation or operation and XOR operation.The mathematical operation at least may include one in arithmetic
Kind is a variety of.By the logical operation or the processing of mathematical operation, the acquisition packet identification that can be easy.
In some embodiments, the electronic equipment further include: third query unit, for inquiring illegal grouped record;
The determination unit 160 is also used to determine first when described first is grouped into the illegal grouping in the illegal grouped record
Account is illegal account.
The electronic equipment also introduces third query unit in the present embodiment, and the unit of third inquiry here is corresponding
Physical structure, it is similar with the first query unit above-mentioned and the second query unit.It in the present embodiment can be non-by inquiring
Method grouped record can quickly reject the illegal account of part, again reduce database in the case where not inquiring database
Load, reduce infiltration of the malicious attack to database, improve the safety of database again.
In some embodiments, the receiving unit 110 is also used to have first grouping when not stored in the caching
Grouping information when, receive the database and determining that described first is grouped into the exception information being illegally grouped;The electronics is set
It is standby further include: updating unit, for updating the illegal grouped record according to the exception information.
The receiving unit 110 is also used to receive exception information from database in the present embodiment, and new in electronic equipment
Increasing updating unit, the updating unit and the caching connect, and corresponding physical structure equally can be processor or processing circuit,
It can be used for updating storage illegal grouped record in the buffer according to the exception information, this active push of database is different
Normal information just automatically updates illegal grouped record, on the one hand maintains number so that being buffered in when detecting new illegal grouping
According to library in caching to the synchronous of illegal grouped record, while in the case where being conveniently buffered in and not inquiring database, so that it may straight
It connects and detects the illegal account in part, to promote the intelligence of electronic equipment, again reduce the load of database.In this implementation
The illegal grouping information being illegally grouped that directly stores in example, in this way can to all illegal accounts in an illegal grouping into
Row stops, it is clear that on the one hand illegal account one by one than individually record reduces the information content of storage, while increasing illegal account
Number obstruction ability.
Two specific examples are provided below in conjunction with above-described embodiment:
Example one:
It carries out caching distribution calculating using hash algorithm in this example, value identical after Hash (i.e. modulus calculating) is added
Be downloaded in caching, when user request when judge data in which cryptographic Hash, control malicious requests can only rest on it is slow
Level is deposited, database level will not be entered, avoiding attack from being penetrated into database level causes database to receive asking for malice
It asks.
The introduction of core algorithm: this algorithm using use every P (for example, described P=1000) a user account for one
The numerical value of an int type is calculated in user account progress hash by a grouping, and calculation method is as follows:
Step 1: the effect for calling hashcode () is will to provide arbitrarily long character string being hashed into an integer, tool
The corresponding mathematic(al) representation of the algorithm of body is as follows:
s[0]*31^(n-1)+s[1]*31^(n-2)+...+s[n-1]
S [i] is i-th of character of character string, and n is the length of String.The account at account center is all character string forms,
So the conversion of first step hashcode can be passed through.
Step 2: high 16bit is constant, low 16bit and high 16bit have done an exclusive or, finally obtain the integer of the data
Value.
Modulus is done to 1000 to the shaping value obtained, cryptographic Hash is calculated, to determine which grouping the user is in.Such as
Fruit one be not present and user account fallen in after modulus regulation grouping, but in defined grouping again can not find the user's
Corresponding data is thought to abandon the user to attack user.
As shown in figure 4, h=hashcode () obtains 1,111 1,111 1,111 1,111 1,111 0,000 1,110 1010 is
Be using mathematical expression number s [0] * 31^ (n-1)+s [1] * 31^ (n-2) above-mentioned+...+s [n-1] obtains int to user account
Value.
Next cyclic shift 16 is carried out using to h, obtains 1,111 1,111 1,111 1,111 0,000 1,111 0001
0101。
It is handling to obtain exclusive or result with low 16 progress exclusive or using high 16.The hashcode () preset function.
Storage schematic diagram shown in fig. 5 for user account described in described in this example;The user in database and caching
Account user information corresponding with device is corresponding to be stored.Here user information includes at least the password of the user account, certainly also
May include the personal information using user of the user account, for example, the identity such as identification card number, occupation, the age with
And the various information such as hobby, it is not limited to the password.
It include P user account in each grouping.It is corresponding to correspond to grouping m, cryptographic Hash S by cryptographic Hash m in Fig. 5
In grouping S.The packet identification of each grouping in this example is obtained for user accounts all in the grouping using pretreatment later
The cryptographic Hash arrived.Therefore it directly can utilize the packet identification also needed most as inquiry packets in subsequent processing.
In this example, it is operated based on above-mentioned storage, the method can include:
Step 1. client initiates logging request:
Client initiates logging request, carries out modulus calculating according to user account, judges that the user is in which grouping is worked as
In.
Step 2. grouping load:
Judge that the grouping with the presence or absence of in caching, is entirely grouped into caching if being not present from load in database, such as
Fruit, which exists, then directly searches the user account in the grouping of buffer memory.
Step 3. judges whether the user account is legitimate user:
Find the user account in a packet, then directly read the user information, if not finding the user, that is, think for
User is attacked, the user is abandoned.
Example two:
As shown in fig. 6, this example provides a kind of electronic equipment, including external communication interface 210, processor 220, caching
230 and database 240;The external communication interface 210, processor 220, caching 230 and database 240 pass through communication bus
250 are connected;The communication bus 250 may include data/address bus and address bus, can be used for connecting above outer in a word
Portion's communication interface 210, processor 220, caching 230 and database 240 carry out data interaction.
The external communication interface 210 can be used for client and carry out data interaction, such as receives logging request;
The processor 220 determines the first account for carrying out data processing, such as the aforementioned pretreatment to the first account
The first grouping where number.
The database 240 can be used for non-moment storage user account and the corresponding user information of user account and user
The grouping information being grouped where account.
The caching 230 can be used for storing all or part grouping information stored in the database 240.
Processor 220 in electronic equipment shown in fig. 6 will pass through the pre- of the first account after receiving logging request
It after processing, determines the first grouping where the first account, whether is stored with the first grouping in caching 230, if being stored with the
One grouping then directly inquires the grouping information of first grouping, determines whether first account is illegal account, if caching
There is no first grouping in 230, the processor 220 accesses the database 240 and inquires described the to data Kuku 240
One grouping if inquiring first grouping, and the grouping information that described first is grouped is read out from database 240,
It stores in caching 230.Again into the grouping information of the first grouping of caching 230, first account is inquired, if the first grouping
Grouping information there are first accounts, then it is assumed that the first account be legal account, otherwise it is assumed that be illegal account.
It should be understood that " one embodiment " or " embodiment " that specification is mentioned in the whole text mean it is related with embodiment
A particular feature, structure, or characteristic is included at least one embodiment of the present invention.Therefore, occur everywhere in the whole instruction
" in one embodiment " or " in one embodiment " not necessarily refer to identical embodiment.In addition, these specific features, knot
Structure or characteristic can combine in any suitable manner in one or more embodiments.It should be understood that in various implementations of the invention
In example, magnitude of the sequence numbers of the above procedures are not meant that the order of the execution order, the execution sequence Ying Yiqi function of each process
It can determine that the implementation process of the embodiments of the invention shall not be constituted with any limitation with internal logic.The embodiments of the present invention
Serial number is for illustration only, does not represent the advantages or disadvantages of the embodiments.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it
Its mode is realized.Apparatus embodiments described above are merely indicative, for example, the division of the unit, only
A kind of logical function partition, there may be another division manner in actual implementation, such as: multiple units or components can combine, or
It is desirably integrated into another system, or some features can be ignored or not executed.In addition, shown or discussed each composition portion
Mutual coupling or direct-coupling or communication connection is divided to can be through some interfaces, the INDIRECT COUPLING of equipment or unit
Or communication connection, it can be electrical, mechanical or other forms.
Above-mentioned unit as illustrated by the separation member, which can be or may not be, to be physically separated, aobvious as unit
The component shown can be or may not be physical unit;Both it can be located in one place, and may be distributed over multiple network lists
In member;Some or all of units can be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
In addition, each functional unit in various embodiments of the present invention can be fully integrated in one processing unit, it can also
To be each unit individually as a unit, can also be integrated in one unit with two or more units;It is above-mentioned
Integrated unit both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above method embodiment can pass through
The relevant hardware of program instruction is completed, and program above-mentioned can store in computer-readable storage medium, which exists
When execution, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes: movable storage device, read-only deposits
The various media that can store program code such as reservoir (Read Only Memory, ROM), magnetic or disk.
If alternatively, the above-mentioned integrated unit of the present invention is realized in the form of software function module and as independent product
When selling or using, it also can store in a computer readable storage medium.Based on this understanding, the present invention is implemented
Substantially the part that contributes to existing technology can be embodied in the form of software products the technical solution of example in other words,
The computer software product is stored in a storage medium, including some instructions are used so that computer equipment (can be with
It is personal computer, server or network equipment etc.) execute all or part of each embodiment the method for the present invention.
And storage medium above-mentioned includes: various Jie that can store program code such as movable storage device, ROM, magnetic or disk
Matter.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.
Claims (10)
1. a kind of electronic equipment characterized by comprising
Receiving unit, for receiving the logging request of client transmission;Wherein, the first account is carried in the logging request;
Pretreatment unit determines the first grouping where first account for pre-processing to first account;
First query unit, for whether being stored with the grouping information of first grouping in query caching;
Loading unit, for being loaded from database when the not stored grouping information for having first grouping in the caching
The grouping information of first grouping;Wherein, the grouping information includes all user accounts and each institute in first grouping
State the corresponding password of user account;
Second query unit, for when the grouping information for being stored with first grouping in the caching or from the database
After being loaded with the grouping information of first grouping, the grouping information of the first grouping described in query caching;
Determination unit, for determining institute when not inquired first account in the grouping information in first grouping
Stating the first account is illegal account.
2. electronic equipment according to claim 1, which is characterized in that
The pretreatment unit is specifically used for carrying out Hash processing to first account, first account is converted into pre-
If the Serial No. of the predetermined system of length;
The Serial No. is subjected to predefined function processing, obtains the packet identification of the first grouping where first account.
3. electronic equipment according to claim 2, which is characterized in that
The pretreatment unit, specifically for transporting high M of the Serial No. and low M progress logical operation or mathematics
It calculates, obtains the packet identification of first grouping.
4. electronic equipment according to claim 1, which is characterized in that
The electronic equipment further include:
Third query unit, for inquiring illegal grouped record;
The determination unit is also used to when described first is grouped into the illegal grouping in the illegal grouped record, determines
One account is illegal account.
5. electronic equipment according to claim 4, which is characterized in that
The receiving unit is also used to when the not stored grouping information for having first grouping in the caching, described in reception
Database is determining that described first is grouped into the exception information being illegally grouped;
The electronic equipment further include:
Updating unit, for updating the illegal grouped record according to the exception information.
6. a kind of information processing method characterized by comprising
Receive the logging request that client is sent;Wherein, the first account is carried in the logging request;
First account is pre-processed, determines the first grouping where first account;
Whether the grouping information of first grouping is stored in query caching;
When the not stored grouping information for having first grouping in the caching, first grouping is loaded from database
Grouping information;Wherein, the grouping information includes that the interior all user accounts of first grouping and each user account are corresponding
Password;
It is loaded with described first point when the grouping information for being stored with first grouping in the caching or from the database
After the grouping information of group, the grouping information of the first grouping described in query caching;
When not inquired first account in the grouping information in first grouping, determine that first account is non-
Method account.
7. according to the method described in claim 6, it is characterized in that,
It is described that first account is pre-processed, determine the first grouping where first account, comprising:
Hash processing is carried out to first account, first account is converted into the digital sequence of the predetermined system of preset length
Column;
The Serial No. is subjected to predefined function processing, obtains the packet identification of the first grouping where first account.
8. the method according to the description of claim 7 is characterized in that
It is described that the Serial No. is subjected to predefined function processing, obtain the grouping mark of the first grouping where first account
Know, comprising:
By high M of the Serial No. and low M progress logical operation or mathematical operation, the grouping of first grouping is obtained
Mark.
9. according to the method described in claim 6, it is characterized in that,
The method also includes:
Inquire illegal grouped record;
When described first is grouped into the illegal grouping in the illegal grouped record, determine that the first account is illegal account.
10. according to the method described in claim 9, it is characterized in that,
The method also includes:
When the not stored grouping information for having first grouping in the caching, receives the database and determining described first
It is grouped into the exception information being illegally grouped;
According to the exception information, the illegal grouped record is updated.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610671232.9A CN106331066B (en) | 2016-08-15 | 2016-08-15 | Electronic equipment and information processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610671232.9A CN106331066B (en) | 2016-08-15 | 2016-08-15 | Electronic equipment and information processing method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106331066A CN106331066A (en) | 2017-01-11 |
CN106331066B true CN106331066B (en) | 2019-06-21 |
Family
ID=57740938
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610671232.9A Active CN106331066B (en) | 2016-08-15 | 2016-08-15 | Electronic equipment and information processing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106331066B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107172086B (en) * | 2017-06-30 | 2020-06-05 | 北京畅游天下网络技术有限公司 | Login method, device and system |
CN109995798B (en) * | 2017-12-29 | 2021-05-04 | Tcl科技集团股份有限公司 | Information pushing method and equipment thereof |
CN110198305A (en) * | 2019-05-05 | 2019-09-03 | 平安科技(深圳)有限公司 | It attends a banquet method for detecting abnormality, system, computer equipment and the storage medium of IP |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102325028A (en) * | 2011-09-19 | 2012-01-18 | 北京金和软件股份有限公司 | Method for supporting identity authentication and service authorization of multiple terminals |
CN104378255A (en) * | 2014-10-29 | 2015-02-25 | 深信服网络科技(深圳)有限公司 | Method and device for detecting web malicious user |
CN104732331A (en) * | 2015-02-13 | 2015-06-24 | 腾讯科技(深圳)有限公司 | Grouping management method, device and system |
CN105824723A (en) * | 2016-03-18 | 2016-08-03 | 北京春鸿企业管理咨询有限公司 | Method and system for backup of data of public cloud storage account |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150350221A1 (en) * | 2014-05-30 | 2015-12-03 | Apple Inc. | Shared data within a family |
-
2016
- 2016-08-15 CN CN201610671232.9A patent/CN106331066B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102325028A (en) * | 2011-09-19 | 2012-01-18 | 北京金和软件股份有限公司 | Method for supporting identity authentication and service authorization of multiple terminals |
CN104378255A (en) * | 2014-10-29 | 2015-02-25 | 深信服网络科技(深圳)有限公司 | Method and device for detecting web malicious user |
CN104732331A (en) * | 2015-02-13 | 2015-06-24 | 腾讯科技(深圳)有限公司 | Grouping management method, device and system |
CN105824723A (en) * | 2016-03-18 | 2016-08-03 | 北京春鸿企业管理咨询有限公司 | Method and system for backup of data of public cloud storage account |
Also Published As
Publication number | Publication date |
---|---|
CN106331066A (en) | 2017-01-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110535843B (en) | Apparatus and method for mimicry arbitration parameter message synchronization | |
EP3281369B1 (en) | Server load balancing | |
CN106331066B (en) | Electronic equipment and information processing method | |
CN101420433B (en) | Method and device for domain name system cheating attack defense | |
US20130254875A1 (en) | System and Method for Risk Assessment of Login Transactions Through Password Analysis | |
US9461966B2 (en) | Method and apparatus for rating URLs | |
CN107295116B (en) | Domain name resolution method, device and system | |
CN103379099A (en) | Hostile attack identification method and system | |
US11995176B2 (en) | Platform for generation of passwords and/or email addresses | |
US7310660B1 (en) | Method for removing unsolicited e-mail messages | |
CN110493207A (en) | A kind of data processing method, device, electronic equipment and storage medium | |
US11983220B2 (en) | Key-value storage for URL categorization | |
CN108880972A (en) | A kind of information processing method, server and terminal | |
US20190173844A1 (en) | Firewall device | |
US20190124111A1 (en) | Responding and processing method for dnssec negative response | |
CN109413015B (en) | DNS hijacking defense method and device | |
CN106059776A (en) | Website login method and device | |
CN111294285B (en) | Network data distribution method and load balancer | |
US20230239158A1 (en) | Message chain-based can security sytem and method with hash function | |
CN105025042B (en) | A kind of method and system of determining data information, proxy server | |
CN105471839B (en) | A kind of method for judging router data and whether being tampered | |
CN110213218B (en) | Gray scale control method, apparatus, and medium for data transmission | |
US11218479B2 (en) | Authentication broker apparatus and non-transitory computer readable medium storing authentication broker program | |
CN108494805B (en) | CC attack processing method and device | |
KR102046612B1 (en) | The system for defending dns amplification attacks in software-defined networks and the method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |