CN114710352B - Password calling method and device of PHP system, electronic equipment and storage medium - Google Patents

Password calling method and device of PHP system, electronic equipment and storage medium Download PDF

Info

Publication number
CN114710352B
CN114710352B CN202210361133.6A CN202210361133A CN114710352B CN 114710352 B CN114710352 B CN 114710352B CN 202210361133 A CN202210361133 A CN 202210361133A CN 114710352 B CN114710352 B CN 114710352B
Authority
CN
China
Prior art keywords
password
character string
preset
php system
request
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
Application number
CN202210361133.6A
Other languages
Chinese (zh)
Other versions
CN114710352A (en
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN202210361133.6A priority Critical patent/CN114710352B/en
Publication of CN114710352A publication Critical patent/CN114710352A/en
Application granted granted Critical
Publication of CN114710352B publication Critical patent/CN114710352B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3226Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using a predetermined code, e.g. password, passphrase or PIN

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)
  • Storage Device Security (AREA)

Abstract

The invention relates to the field of information security, which is used for receiving a password call request sent by a PHP system page, pulling a ciphertext password corresponding to the password call request from a preset password management library, and decrypting the ciphertext password to obtain a plaintext password; performing character string coding on the plaintext password to obtain a coded character string, and storing the coded character string into a preset cache queue; and calling a preset interface to acquire a code character string corresponding to the password application request from the cache queue in response to the password application request of the PHP system page, obtaining a target character string, performing application service authentication on the target character string, and returning a plaintext password in the code character string to the PHP system page after the application service authentication is successful. The invention can improve the security of the password call of the PHP system.

Description

Password calling method and device of PHP system, electronic equipment and storage medium
Technical Field
The present invention relates to the field of information security, and in particular, to a method and apparatus for invoking a password of a PHP system, an electronic device, and a storage medium.
Background
The password call refers to a process of acquiring passwords from a password management library according to requirements, the passwords can be acquired quickly through the password call, the passwords do not need to be input manually, and time is saved, wherein in a PHP system, the password call can input the passwords into login options quickly so that a user can enter a web page to be used conveniently, the PHP system is also called a hypertext preprocessor system, is a universal open source script language, is a script language executed at a server side, and is similar to a C language, and is a common website programming language.
At present, the password call of the PHP system is usually realized by storing the password in a plaintext manner in a configuration file, and the password comprises the password of a DB, an encryption key and the like, so that the password is easy to leak by the method, and serious system safety exists, thereby influencing the security of the password call of the PHP system.
Disclosure of Invention
The invention provides a password call method, a device, electronic equipment and a computer readable storage medium of a PHP system, and mainly aims to improve the password call safety of the PHP system.
In order to achieve the above object, the present invention provides a password call method of a PHP system, including:
receiving a password call request sent by a PHP system page, pulling a ciphertext password corresponding to the password call request from a preset password management library, and decrypting the ciphertext password to obtain a plaintext password;
performing character string coding on the plaintext password to obtain a coded character string, and storing the coded character string into a preset cache queue;
and calling a preset interface to acquire a code character string corresponding to the password application request from the cache queue in response to the password application request of the PHP system page, obtaining a target character string, performing application service authentication on the target character string, and returning a plaintext password in the code character string to the PHP system page after the application service authentication is successful.
Optionally, the pulling the ciphertext password corresponding to the password call request from a preset password management library includes:
extracting characteristic attributes in the password call request, and identifying a request identifier of the password call request according to the characteristic attributes;
and matching the request identifier with the password identifier in the preset password management library by using a preset matching algorithm, and taking the password corresponding to the successfully matched password identifier as the ciphertext password of the password call request.
Optionally, the extracting the characteristic attribute in the password call request includes:
acquiring text data in the password call request, and performing feature extraction on the text data to obtain a plurality of feature data;
calculating a grading value of each piece of characteristic data by using a characteristic evaluation function, and enabling the grading value to be larger than the characteristic attribute of the characteristic data with a preset threshold value.
Optionally, the encoding the plaintext password to obtain an encoded string includes:
and converting the plaintext password into a plaintext character string, and encoding the plaintext character string by a pre-constructed encoder to obtain the encoded character string.
Optionally, the storing the encoded string in a preset cache queue includes:
calculating the storage bytes of the code character string, and dividing a main storage area and a slave storage area in the preset cache queue;
storing the coded character strings with the storage bytes larger than the preset bytes into the main storage area, and storing the coded character strings with the storage bytes not larger than the preset bytes into the auxiliary storage area.
Optionally, the calling a preset interface to obtain the code string corresponding to the password application request from the cache queue, to obtain a target string, including:
setting a query condition in the password application request, identifying a query object, and generating a query statement according to the query condition and the query object;
and inquiring the coded character string corresponding to the password application request from the cache queue through the preset interface and the inquiry statement to obtain the target character string.
Optionally, the performing application service authentication on the target character string further includes:
acquiring a page application registration record of the target character string, and inquiring an application service corresponding to the PHP system page from the page application registration record;
if the application service corresponding to the PHP system page is queried from the page application registration record, the application service authentication of the target character string is successful;
if the application service corresponding to the PHP system page is not queried from the page application registration record, the application service authentication of the target character string fails.
In order to solve the above problems, the present invention further provides a password call device of a PHP system, the device comprising:
the cipher text password decrypting module is used for receiving a password call request sent by a PHP system page, pulling a cipher text password corresponding to the password call request from a preset password management library, and decrypting the cipher text password to obtain a plaintext password;
the character string coding module is used for carrying out character string coding on the plaintext password to obtain a coded character string, and storing the coded character string into a preset cache queue;
and the application service authentication module is used for responding to the password application request of the PHP system page, calling a preset interface to acquire a code character string corresponding to the password application request from the cache queue, obtaining a target character string, performing application service authentication on the target character string, and returning a plaintext password in the code character string to the PHP system page after the application service authentication is successful.
In order to solve the above-mentioned problems, the present invention also provides an electronic apparatus including:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores a computer program executable by the at least one processor to implement a cryptographic invocation method of a PHP system as described above.
In order to solve the above-mentioned problems, the present invention also provides a computer-readable storage medium having stored therein at least one computer program that is executed by a processor in an electronic device to implement the above-mentioned password call method of a PHP system.
It can be seen that, in the embodiment of the present invention, firstly, a ciphertext password corresponding to the password call request is pulled from a preset password management library, which can provide guarantee for subsequent action processing, and further, by performing character string encoding on the plaintext password, a user cannot directly see the plaintext password when using the ciphertext password, so that the risk of password leakage can be reduced, the security of the plaintext password is improved, further, by storing the encoded character string in a preset cache queue, buffering of the encoded character string can be implemented, so that the subsequent quick response in a large number of password requests can be supported, and the efficiency of password call can be improved, thereby, by using a password application request according to a PHP system page, the encoded character string corresponding to the password application request can be accurately obtained from the cache queue through the preset interface, the accuracy of obtaining the target character string can be improved, and by performing application service authentication on the target character string, the security of password call of a PHP system can be improved. Therefore, the password call method, the device, the electronic equipment and the storage medium of the PHP system can improve the security of password call of the PHP system.
Drawings
FIG. 1 is a flowchart of a method for cryptographic invocation of a PHP system according to an embodiment of the present invention;
FIG. 2 is a schematic block diagram of a password call device of a PHP system according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an internal structure of an electronic device for implementing a password call method of a PHP system according to an embodiment of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The embodiment of the invention provides a password calling method of a PHP system. The execution main body of the password call method of the PHP system comprises at least one of a server, a terminal and the like which can be configured to execute the method provided by the embodiment of the invention. In other words, the password call method of the PHP system may be performed by software or hardware installed in a terminal device or a server device, and the software may be a blockchain platform. The service end includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like. The server may be an independent server, or may be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and basic cloud computing services such as big data and artificial intelligence platforms.
Referring to fig. 1, a flowchart of a password call method of a PHP system according to an embodiment of the present invention is shown. In the embodiment of the invention, the password call method of the PHP system comprises the following steps S1-S4:
s1, receiving a password call request sent by a PHP system page, pulling a ciphertext password corresponding to the password call request from a preset password management library, and decrypting the ciphertext password to obtain a plaintext password.
In the embodiment of the invention, the PHP system page is a dynamic page programmed by a C language, the dynamic page needs to input related registration account number and login password information, so that the page required by a user can be accessed, for example, the user needs to inquire about related information through a learning information network, open the login page of the learning information network, input the registered account number and login password, and then access the learning information network to inquire about own learning information, and the password call request refers to an instruction sent by calling the PHP system page password. Optionally, the password call request is received through a GET method.
Further, the embodiment of the invention can provide guarantee for subsequent action processing by pulling the ciphertext password corresponding to the password call request from the preset password management library. The password management library is used for storing a password set when all users register, the ciphertext password is an encrypted password, the encrypted password can be in a special symbol form or a character string form, and after the user inputs a login password in the PHP system page, the PHP system page can send a password calling request to the password management library.
As an embodiment of the present invention, the pulling the ciphertext password corresponding to the password call request from the preset password management library includes: extracting characteristic attributes in the password call request, identifying a request identifier of the password call request according to the characteristic attributes, matching the request identifier with a password identifier in a preset password management library by using a preset matching algorithm, and taking a password corresponding to the successfully matched password identifier as a ciphertext password of the password call request.
The characteristic attribute refers to the characteristic attribute that a certain object has alone but other objects do not, such as feet, no hair, upright walking, thinking, speaking, labor of manufacturing and using a production tool is a person, so that the person is distinguished from other higher animals, and the request mark refers to a mark which is convenient to identify in a request and is convenient to identify identity information.
Further, in an optional embodiment of the present invention, the extracting a feature attribute in the password call request includes: and obtaining text data in the password call request, carrying out feature extraction on the text data to obtain a plurality of feature data, calculating the grading value of each feature data by using a feature evaluation function, and carrying out feature attribute on the feature data with the grading value larger than a preset threshold.
The text data is user account information in the PHP system page, such as: the characteristic data refer to the characteristic attribute in the text data, the characteristic evaluation function comprises a geometric distribution characteristic function, and the preset threshold value can be set to 0.8 or can be set according to the actual business scene.
Further, in an alternative embodiment of the present invention, the request identifier of the password call request is identified by an automation script, and the automation script may be compiled by a shell language.
Further, the embodiment of the invention obtains the plaintext password by decrypting the ciphertext password, and can provide guarantee for subsequent password call, wherein the plaintext password refers to the password which is not encrypted. Optionally, the decryption of the ciphertext password may be achieved by querying a private key used by the ciphertext password in encryption.
S2, carrying out character string coding on the plaintext password to obtain a coded character string, and storing the coded character string into a preset cache queue.
According to the embodiment of the invention, the plaintext password is encoded by the character string, so that a user cannot directly see the plaintext password when in use, the risk of password leakage can be reduced, and the safety of the plaintext password is improved, wherein the encoding character string refers to a continuous sequence of symbols or values obtained by encoding the plaintext password.
As an embodiment of the present invention, the encoding the string of the plaintext password to obtain an encoded string includes: and converting the plaintext password into a plaintext character string, and encoding the plaintext character string by a pre-constructed encoder to obtain the encoded character string.
Wherein the character string is a string of characters consisting of numbers, letters and underlines, generally denoted s= "a1a2·····an" (n > =0), which is a type of data representing text in a programming language, in which a string is a continuous sequence of symbols or values, the pre-constructed encoder may be compiled in a programming language, such as a string of symbols, or a string of binary digits, which are the plaintext cipher converted into a defined plaintext signal.
Further, the embodiment of the invention can realize the buffering of the code character string by storing the code character string into a preset buffer queue, so as to support the subsequent quick response when a large number of passwords are requested, and improve the efficiency of password calling, wherein the buffer queue refers to the place where the code character string is stored, such as Redis buffer.
As an embodiment of the present invention, the storing the encoded string in a preset cache queue includes: calculating the storage byte of the code character string, dividing a main storage area and a slave storage area in the preset cache queue, storing the code character string with the storage byte larger than the preset byte into the main storage area, and storing the code character string with the storage byte not larger than the preset byte into the slave storage area.
The storage byte is a measurement unit used for storing computer information, the main storage area is an area for storing the code character strings with the storage byte larger than the preset byte, and the auxiliary storage area is an area for storing the code character strings with the storage byte not larger than the preset byte. Optionally, the preset bytes may be set to 2 bytes, or may be set according to an actual service scenario.
Further, in an alternative embodiment of the present invention, the stored bytes of the encoded string are calculated by a binary algorithm.
S3, responding to a password application request of the PHP system page, calling a preset interface to obtain a code character string corresponding to the password application request from the cache queue, obtaining a target character string, performing application service authentication on the target character string, and returning a plaintext password in the code character string to the PHP system page after the application service authentication is successful.
According to the embodiment of the invention, the code character string corresponding to the password application request can be accurately obtained from the cache queue through the preset interface according to the password application request of the PHP system page, and the target character string is obtained, so that the accuracy of obtaining the target character string can be improved, wherein the preset interface is an OpenResty interface.
As an embodiment of the present invention, the calling a preset interface to obtain a code string corresponding to the password application request from the cache queue, to obtain a target string, includes: setting a query condition in the password application request, identifying a query object corresponding to the password application request, generating a query statement corresponding to the password application request according to the query condition and the query object, and querying a code character string corresponding to the password application request from the cache queue through the preset interface according to the query statement to obtain the target character string.
The query condition refers to a precondition set according to the password application request, the character string length can be set to be larger than 10, and the query condition can also be set according to an actual service scene, the query object refers to an object during query, and the query sentence is a sentence text of the query.
Further, in an optional embodiment of the present invention, the preset interface is an openResity interface, the identification of the query object may be implemented by an instanceof function, and the query of the code string corresponding to the password application request may be implemented by a string function.
Further, in an optional embodiment of the present invention, the performing application service authentication on the target string includes: acquiring a page application registration record of the target character string, inquiring application services corresponding to the PHP system page from the page application registration record, if the application services corresponding to the PHP system page are inquired from the page application registration record, successfully authenticating the application services of the target character string, and if the application services corresponding to the PHP system page are not inquired from the page application registration record, failing to authenticate the application services of the target character string.
The history application registration record refers to the page application service registered by the target character string in the server. Optionally, the application service corresponding to the PHP system page may be implemented by a query statement, such as an SQL statement.
It can be seen that, in the embodiment of the present invention, firstly, a ciphertext password corresponding to the password call request is pulled from a preset password management library, which can provide guarantee for subsequent action processing, and further, by performing character string encoding on the plaintext password, a user cannot directly see the plaintext password when using the ciphertext password, so that the risk of password leakage can be reduced, the security of the plaintext password is improved, further, by storing the encoded character string in a preset cache queue, buffering of the encoded character string can be implemented, so that the subsequent quick response in a large number of password requests can be supported, and the efficiency of password call can be improved, thereby, by using a password application request according to a PHP system page, the encoded character string corresponding to the password application request can be accurately obtained from the cache queue through the preset interface, the accuracy of obtaining the target character string can be improved, and by performing application service authentication on the target character string, the security of password call of a PHP system can be improved. Therefore, the password call method of the PHP system provided by the embodiment of the invention can improve the security of the password call of the PHP system.
As shown in fig. 2, a functional block diagram of the database fault management device of the present invention is shown.
The password call device 100 of the PHP system can be installed in electronic equipment. The password call device of the PHP system may include a ciphertext password decryption module 101, a character string encoding module 102, and an application service authentication module 103 according to the implemented functions. The module according to the invention, which may also be referred to as a unit, refers to a series of computer program segments, which are stored in the memory of the electronic device, capable of being executed by the processor of the electronic device and of performing a fixed function.
In the present embodiment, the functions concerning the respective modules/units are as follows:
the slave ciphertext password decryption module 101 is configured to receive a password call request sent by a PHP system page, pull a ciphertext password corresponding to the password call request from a preset password management library, and decrypt the ciphertext password to obtain a plaintext password;
the string encoding module 102 is configured to perform string encoding on the plaintext password to obtain an encoded string, and store the encoded string into a preset cache queue;
the application service authentication module 103 is configured to respond to a password application request of the PHP system page, call a preset interface to obtain a code string corresponding to the password application request from the cache queue, obtain a target string, perform application service authentication on the target string, and return a plaintext password in the code string to the PHP system page after the application service authentication is successful.
In detail, the modules in the password call device 100 of the PHP system in the embodiment of the present invention use the same technical means as the password call method of the PHP system described in fig. 1 and can produce the same technical effects, which are not described herein.
Fig. 3 is a schematic structural diagram of an electronic device 1 implementing a password call method of a PHP system according to the present invention.
The electronic device 1 may comprise a processor 10, a memory 11, a communication bus 12 and a communication interface 13, and may further comprise a computer program stored in the memory 11 and executable on the processor 10, such as a cryptographic invocation program of a PHP system.
The processor 10 may be formed by an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or may be formed by a plurality of integrated circuits packaged with the same function or different functions, including one or more central processing units (Central Processing Unit, CPU), a microprocessor, a digital processing chip, a graphics processor, a combination of various control chips, and so on. The processor 10 is a Control Unit (Control Unit) of the electronic device 1, connects respective components of the entire electronic device 1 using various interfaces and lines, executes various functions of the electronic device 1 and processes data by running or executing programs or modules stored in the memory 11 (for example, executing a password calling program of a PHP system, etc.), and calling data stored in the memory 11.
The memory 11 includes at least one type of readable storage medium including flash memory, a removable hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device 1, such as a removable hard disk of the electronic device 1. The memory 11 may in other embodiments also be an external storage device of the electronic device 1, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the electronic device 1. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device 1. The memory 11 may be used not only for storing application software installed in the electronic device 1 and various types of data, such as codes of database fault management programs, but also for temporarily storing data that has been output or is to be output.
The communication bus 12 may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The bus may be classified as an address bus, a data bus, a control bus, etc. The bus is arranged to enable a connection communication between the memory 11 and at least one processor 10 etc.
The communication interface 13 is used for communication between the electronic device 1 and other devices, including a network interface and an employee interface. Optionally, the network interface may comprise a wired interface and/or a wireless interface (e.g. WI-FI interface, bluetooth interface, etc.), typically used to establish a communication connection between the electronic device 1 and other electronic devices 1. The employee interface may be a Display (Display), an input unit such as a Keyboard (Keyboard), or alternatively a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch, or the like. The display may also be referred to as a display screen or display unit, as appropriate, for displaying information processed in the electronic device 1 and for displaying a visual staff interface.
Fig. 3 shows only an electronic device 1 with components, it being understood by a person skilled in the art that the structure shown in fig. 3 does not constitute a limitation of the electronic device 1, and may comprise fewer or more components than shown, or may combine certain components, or may be arranged in different components.
For example, although not shown, the electronic device 1 may further include a power source (such as a battery) for supplying power to each component, and preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that functions of charge management, discharge management, power consumption management, and the like are implemented through the power management device. The power supply may also include one or more of any of a direct current or alternating current power supply, recharging device, power failure detection circuit, power converter or inverter, power status indicator, etc. The electronic device 1 may further include various sensors, bluetooth modules, wi-Fi modules, etc., which will not be described herein.
It should be understood that the embodiments described are for illustrative purposes only and are not limited in scope by this configuration.
The cryptographic calling program of the PHP system stored in the memory 11 in the electronic device 1 is a combination of a plurality of computer programs, which when run in the processor 10 can implement the following method:
receiving a password call request sent by a PHP system page, pulling a ciphertext password corresponding to the password call request from a preset password management library, and decrypting the ciphertext password to obtain a plaintext password;
performing character string coding on the plaintext password to obtain a coded character string, and storing the coded character string into a preset cache queue;
and calling a preset interface to acquire a code character string corresponding to the password application request from the cache queue in response to the password application request of the PHP system page, obtaining a target character string, performing application service authentication on the target character string, and returning a plaintext password in the code character string to the PHP system page after the application service authentication is successful.
In particular, the specific implementation method of the processor 10 on the computer program may refer to the description of the relevant steps in the corresponding embodiment of fig. 1, which is not repeated herein.
Further, the integrated modules/units of the electronic device 1 may be stored in a non-volatile computer readable storage medium if implemented in the form of software functional units and sold or used as a stand alone product. The computer readable storage medium may be volatile or nonvolatile. For example, the computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM).
The present invention also provides a computer readable storage medium storing a computer program which, when executed by a processor of an electronic device 1, can implement the method of:
receiving a password call request sent by a PHP system page, pulling a ciphertext password corresponding to the password call request from a preset password management library, and decrypting the ciphertext password to obtain a plaintext password;
performing character string coding on the plaintext password to obtain a coded character string, and storing the coded character string into a preset cache queue;
and calling a preset interface to acquire a code character string corresponding to the password application request from the cache queue in response to the password application request of the PHP system page, obtaining a target character string, performing application service authentication on the target character string, and returning a plaintext password in the code character string to the PHP system page after the application service authentication is successful.
In the several embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be other manners of division when actually implemented.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical units, may be located in one place, or may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units can be realized in a form of hardware or a form of hardware and a form of software functional modules.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof.
The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
The embodiment of the invention can acquire and process the related data based on the artificial intelligence technology. Among these, artificial intelligence (Artificial Intelligence, AI) is the theory, method, technique and application system that uses a digital computer or a digital computer-controlled machine to simulate, extend and extend human intelligence, sense the environment, acquire knowledge and use knowledge to obtain optimal results.
Furthermore, it is evident that the word "comprising" does not exclude other elements or steps, and that the singular does not exclude a plurality. A plurality of units or means recited in the system claims can also be implemented by means of software or hardware by means of one unit or means. The terms second, etc. are used to denote a name, but not any particular order.
Finally, it should be noted that the above-mentioned embodiments are merely for illustrating the technical solution of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications and equivalents may be made to the technical solution of the present invention without departing from the spirit and scope of the technical solution of the present invention.

Claims (10)

1. A method for cryptographically invoking a PHP system, the method comprising:
receiving a password call request sent by a PHP system page, pulling a ciphertext password corresponding to the password call request from a preset password management library, and decrypting the ciphertext password to obtain a plaintext password;
performing character string coding on the plaintext password to obtain a coded character string, and storing the coded character string into a preset cache queue;
and calling a preset interface to acquire a code character string corresponding to the password application request from the cache queue in response to the password application request of the PHP system page, obtaining a target character string, performing application service authentication on the target character string, and returning a plaintext password in the code character string to the PHP system page after the application service authentication is successful.
2. The method for invoking the cipher of the PHP system according to claim 1, wherein the pulling the cipher corresponding to the cipher invocation request from the preset cipher management library comprises:
extracting characteristic attributes in the password call request, and identifying a request identifier of the password call request according to the characteristic attributes;
and matching the request identifier with the password identifier in the preset password management library by using a preset matching algorithm, and taking the password corresponding to the successfully matched password identifier as the ciphertext password of the password call request.
3. The method for cryptographically invoking a PHP system of claim 2, wherein said extracting feature attributes in said cryptographically invoke request comprises:
acquiring text data in the password call request, and performing feature extraction on the text data to obtain a plurality of feature data;
calculating a grading value of each piece of characteristic data by using a characteristic evaluation function, and enabling the grading value to be larger than the characteristic attribute of the characteristic data with a preset threshold value.
4. The method for invoking a cipher of a PHP system according to claim 1, wherein said encoding said plaintext cipher into a coded string comprises:
and converting the plaintext password into a plaintext character string, and encoding the plaintext character string by a pre-constructed encoder to obtain the encoded character string.
5. The method for invoking a password of a PHP system according to claim 1, wherein storing the encoded string in a predetermined cache queue comprises:
calculating the storage bytes of the code character string, and dividing a main storage area and a slave storage area in the preset cache queue;
storing the coded character strings with the storage bytes larger than the preset bytes into the main storage area, and storing the coded character strings with the storage bytes not larger than the preset bytes into the auxiliary storage area.
6. The method for invoking a password in a PHP system according to any one of claims 1 to 5, wherein said invoking a preset interface obtains a code string corresponding to the password application request from the cache queue, to obtain a target string, including:
setting a query condition in the password application request and identifying a query object corresponding to the password application request;
generating a query statement corresponding to the password application request according to the query condition and the query object;
and according to the query statement, querying the coded character string corresponding to the password application request from the cache queue through the preset interface to obtain the target character string.
7. The method for cryptographically invoking a PHP system of claim 1, wherein said performing application service authentication on said target string comprises:
acquiring a page application registration record of the target character string, and inquiring an application service corresponding to the PHP system page from the page application registration record;
if the application service corresponding to the PHP system page is queried from the page application registration record, the application service authentication of the target character string is successful;
if the application service corresponding to the PHP system page is not queried from the page application registration record, the application service authentication of the target character string fails.
8. A password call device of a PHP system, the device comprising:
the cipher text password decrypting module is used for receiving a password call request sent by a PHP system page, pulling a cipher text password corresponding to the password call request from a preset password management library, and decrypting the cipher text password to obtain a plaintext password;
the character string coding module is used for carrying out character string coding on the plaintext password to obtain a coded character string, and storing the coded character string into a preset cache queue;
and the application service authentication module is used for responding to the password application request of the PHP system page, calling a preset interface to acquire a code character string corresponding to the password application request from the cache queue, obtaining a target character string, performing application service authentication on the target character string, and returning a plaintext password in the code character string to the PHP system page after the application service authentication is successful.
9. An electronic device, the electronic device comprising:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform a cryptographic invocation method of a PHP system as claimed in any one of claims 1 to 7.
10. A computer readable storage medium storing a computer program, wherein the computer program when executed by a processor implements a cryptographic invocation method of a PHP system as claimed in any one of claims 1 to 7.
CN202210361133.6A 2022-04-07 2022-04-07 Password calling method and device of PHP system, electronic equipment and storage medium Active CN114710352B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210361133.6A CN114710352B (en) 2022-04-07 2022-04-07 Password calling method and device of PHP system, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210361133.6A CN114710352B (en) 2022-04-07 2022-04-07 Password calling method and device of PHP system, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114710352A CN114710352A (en) 2022-07-05
CN114710352B true CN114710352B (en) 2023-08-08

Family

ID=82172394

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210361133.6A Active CN114710352B (en) 2022-04-07 2022-04-07 Password calling method and device of PHP system, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114710352B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106685973A (en) * 2016-12-30 2017-05-17 东软集团股份有限公司 Method and device for remembering log in information, log in control method and device
CN111488331A (en) * 2020-04-08 2020-08-04 广州虎牙科技有限公司 Database connection method and device and computer equipment
CN112861086A (en) * 2021-02-19 2021-05-28 西安万像电子科技有限公司 Account information management method, device and system
CN113127850A (en) * 2021-04-12 2021-07-16 西安赤鸾信息科技有限公司 Browser password filling interaction control method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10462135B2 (en) * 2015-10-23 2019-10-29 Intel Corporation Systems and methods for providing confidentiality and privacy of user data for web browsers

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106685973A (en) * 2016-12-30 2017-05-17 东软集团股份有限公司 Method and device for remembering log in information, log in control method and device
CN111488331A (en) * 2020-04-08 2020-08-04 广州虎牙科技有限公司 Database connection method and device and computer equipment
CN112861086A (en) * 2021-02-19 2021-05-28 西安万像电子科技有限公司 Account information management method, device and system
CN113127850A (en) * 2021-04-12 2021-07-16 西安赤鸾信息科技有限公司 Browser password filling interaction control method and device

Also Published As

Publication number Publication date
CN114710352A (en) 2022-07-05

Similar Documents

Publication Publication Date Title
CN110602052B (en) Micro-service processing method and server
US10073916B2 (en) Method and system for facilitating terminal identifiers
CN112579098B (en) Software release method and device, electronic equipment and readable storage medium
CN112506559B (en) Gray release method and device based on gateway, electronic equipment and storage medium
CN113704665B (en) Dynamic service release method and device, electronic equipment and storage medium
CN111859368A (en) Weak password generation method, password detection method, device and electronic equipment
CN113704781A (en) File secure transmission method and device, electronic equipment and computer storage medium
CN112702228B (en) Service flow limit response method, device, electronic equipment and readable storage medium
CN113706249B (en) Data recommendation method and device, electronic equipment and storage medium
CN114626079A (en) File viewing method, device, equipment and storage medium based on user permission
CN114491646A (en) Data desensitization method and device, electronic equipment and storage medium
CN113382017A (en) Permission control method and device based on white list, electronic equipment and storage medium
CN113221154A (en) Service password obtaining method and device, electronic equipment and storage medium
CN114710352B (en) Password calling method and device of PHP system, electronic equipment and storage medium
CN116055144A (en) Data security analysis method, device, equipment and storage based on Internet of things
CN114157634A (en) Unique account identification method, device, equipment and storage medium
CN114095220A (en) Telephone communication verification method, device, equipment and storage medium
CN113918517A (en) Multi-type file centralized management method, device, equipment and storage medium
CN115905660B (en) Network security data acquisition method, device, equipment and storage medium
CN114640666B (en) File sharing downloading method, electronic equipment and readable storage medium
CN115691771B (en) System and method for notifying working information of medical information system
CN113642020B (en) Dynamic encryption method and device for configuration file, electronic equipment and storage medium
CN114614993B (en) System interaction method and device, electronic equipment and storage medium
CN115801228B (en) Interactive information encryption method and device, electronic equipment and storage medium
CN113791695B (en) Password input method, device, electronic equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant