CN110737878A - Method and system for automatically configuring digital signature of application software and electronic equipment - Google Patents

Method and system for automatically configuring digital signature of application software and electronic equipment Download PDF

Info

Publication number
CN110737878A
CN110737878A CN201810798359.6A CN201810798359A CN110737878A CN 110737878 A CN110737878 A CN 110737878A CN 201810798359 A CN201810798359 A CN 201810798359A CN 110737878 A CN110737878 A CN 110737878A
Authority
CN
China
Prior art keywords
digital signature
acquiring
keyboard
input
pin code
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.)
Granted
Application number
CN201810798359.6A
Other languages
Chinese (zh)
Other versions
CN110737878B (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.)
Shenzhen Honghe Innovation Information Technology Co Ltd
Original Assignee
Shenzhen Honghe Innovation Information Technology 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 Shenzhen Honghe Innovation Information Technology Co Ltd filed Critical Shenzhen Honghe Innovation Information Technology Co Ltd
Priority to CN201810798359.6A priority Critical patent/CN110737878B/en
Publication of CN110737878A publication Critical patent/CN110737878A/en
Application granted granted Critical
Publication of CN110737878B publication Critical patent/CN110737878B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/10Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
    • G06F21/105Arrangements for software license management or administration, e.g. for managing licenses at corporate level
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • 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/3247Cryptographic 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 involving digital signatures

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Multimedia (AREA)
  • Technology Law (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • User Interface Of Digital Computer (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method and a system for automatically configuring digital signatures of application software and electronic equipment, wherein the method comprises the steps of obtaining a digital signature process, obtaining a digital signature thread according to the obtained digital signature process, obtaining a corresponding client window according to the obtained digital signature thread, obtaining a PIN code input box according to the obtained client window, activating the PIN code input box, setting a keyboard input focus, simulating a keyboard to input PIN codes, simulating the completion of the PIN code input by the keyboard and simulating the keyboard to input enter confirmation keys.

Description

Method and system for automatically configuring digital signature of application software and electronic equipment
Technical Field
The invention relates to the technical field of application software management, in particular to a method and a system for automatically configuring digital signatures of types of application software and electronic equipment.
Background
The digital signature is an essential process before software is issued, and because the digital certificate is stored in a hardware security medium (such as a USB KEY), when the application software is digitally signed, a PIN code needs to be manually input in a corresponding client window, so that the digital signature of the software can be successfully completed, and the automatic integration process before the software is issued is influenced.
Disclosure of Invention
In view of this, the present invention provides methods and systems for automatically configuring a digital signature of application software, and an electronic device, which can automatically complete a digital signature process of application software without manual operation, and are beneficial to implementing an automated integration process of application software.
In view of the above object, an embodiment of the present invention provides methods for automatically configuring a digital signature of application software, including:
s1: acquiring a digital signature process;
s2: acquiring a digital signature thread according to the acquired digital signature process;
s3: acquiring a corresponding client window according to the acquired digital signature thread;
s4: acquiring a PIN code input box according to the acquired client window;
s5: activating the PIN code input box and setting a keyboard input focus;
s6: simulating a keyboard to input a PIN code at the keyboard input focus;
s7: and the simulated keyboard inputs the enter confirmation key after inputting the PIN code.
Optionally, acquiring all processes by using an acquisition process function interface, and acquiring a digital signature process name;
acquiring a digital signature process id through the digital signature process name;
acquiring a corresponding digital signature thread id through the digital signature process id by using an acquisition thread function interface;
acquiring all corresponding windows according to the digital signature thread id by using an acquisition window function interface; determining the matched client window according to the window information;
acquiring a corresponding sub-window according to the client window by utilizing an acquisition sub-window function interface; determining the PIN code input frame according to the input frame information;
setting the keyboard input focus in the PIN code input box;
simulating keyboard code data resulting from keyboard entry and PIN code at the keyboard entry focus;
the simulated keypad entry of the PIN code is complete and the simulated keypad entry and enter of the keypad code data from the enter key .
The embodiment of the present invention further provides systems for automatically configuring digital signatures of application software, including:
the process acquisition module is used for acquiring a digital signature process;
the thread acquisition module is used for acquiring a digital signature thread according to the acquired digital signature process;
the window acquisition module is used for acquiring a corresponding client window according to the acquired digital signature thread;
the input frame acquisition module is used for acquiring a PIN code input frame according to the acquired client window;
and the setting module is used for activating the PIN input box according to the obtained PIN input box, setting an input focus, simulating a keyboard to input the PIN and inputting a enter confirmation key.
An embodiment of the present invention further provides electronic devices, which include a memory, a processor, and a computer program stored in the memory and executable on the processor, and is characterized in that the processor implements the method for automatically configuring the digital signature of the application software when executing the program.
From the above, the method, the system and the electronic device for automatically configuring the digital signature of the application software provided by the invention can automatically complete the digital signature process of the application software without manual operation by automatically acquiring the digital signature process, the digital signature thread, the client window and the PIN code input box and then simulating the input of the PIN code, thereby realizing the automatic integration process of the application software.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a schematic flow chart of a method according to an embodiment of the present invention;
fig. 2 is a block diagram of a system according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to the accompanying drawings.
It should be noted that all expressions using "" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it is to be noted that "" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and no is described in the following embodiments.
FIG. 1 is a schematic flow chart of a method according to an embodiment of the present invention. As shown in the figure, the method for automatically configuring the digital signature of the application software, disclosed by the invention, comprises the following steps of:
s1: acquiring a digital signature process;
in the embodiment of the invention, all processes are acquired by utilizing the acquiring process function interface in the Windows API function, and the digital signature process name is acquired. And acquiring the digital signature process id by the digital signature process name by using a getProcesses () function interface.
S2: acquiring a digital signature thread according to the acquired digital signature process;
in the embodiment of the invention, a getThreads () function interface is utilized to obtain a digital signature thread id corresponding to a digital signature process through a digital signature process id.
S3: acquiring a corresponding client window according to the acquired digital signature thread;
in the embodiment of the invention, an EnumThreadWndProc function interface in a Windows API function is utilized to obtain all corresponding Windows according to a digital signature thread id, and a window which is the same as a digital signature PIN code input window is screened out according to a window title (for example, 'Windows safety') and type information (for example, '# 32770') to be used as a matched client window.
S4: acquiring a PIN code input box according to the acquired client window;
according to the type (such as 'Edit'), name (such as 'Pin'), and the like of the input box, the input box which is identical to the digital signature PIN code input box is screened out to be used as the matched PIN code input box.
S5: activating the PIN code input box and setting a keyboard input focus;
in the embodiment of the invention, the IUIAutomationelement function interface is obtained through the window of the PIN code input box, and the keyboard input focus is set by calling a SetFocus method of the IUIAutomationelement function interface.
S6: simulating a keyboard to input PIN codes at the set keyboard input focus;
in the embodiment of the invention, at the set keyboard input focus, the SendInput function interface in the Windows API function is utilized to send the keyboard ASCII code data caused by the PIN code .
S7: and the simulated keyboard inputs the enter confirmation key after inputting the PIN code.
After the PIN code is input by the analog keyboard, ASCII code data corresponding to the enter key is sent by using a SendInput function interface. And then, completing the automatic setting process of the PIN code.
Fig. 2 is a block diagram of a system according to an embodiment of the present invention. As shown in the figure, the system for automatically configuring the digital signature of the application software, disclosed by the invention, comprises a process acquisition module, a thread acquisition module, a window acquisition module, an input box acquisition module and a setting module.
The process acquisition module is used for acquiring a digital signature process;
the thread acquisition module is used for acquiring a digital signature thread according to the acquired digital signature process;
the window acquisition module is used for acquiring a corresponding client window according to the acquired digital signature thread;
the input frame acquisition module is used for acquiring a PIN code input frame according to the acquired client window;
and the setting module is used for activating the PIN input box according to the obtained PIN input box, setting an input focus, simulating a keyboard to input the PIN and inputting a enter confirmation key.
In view of the above, embodiments of the present invention further provide embodiments of apparatuses for a method of automatically configuring a digital signature of application software, the apparatuses including:
or more processors and memory.
The apparatus for performing the method of automatically configuring the digital signature of the application software may further include: an input device and an output device.
The processor, memory, input device, and output device may be connected by a bus or other means.
Memory as nonvolatile computer readable storage media can be used to store nonvolatile software programs, nonvolatile computer executable programs and modules, such as program instructions/modules (e.g., process acquisition module, thread acquisition module, window acquisition module, input box acquisition module, setting module shown in fig. 2) corresponding to the method for automatically configuring digital signature of application software in the embodiment of the present invention.
The memory may include a stored program area that may store an operating system, application programs needed for at least functions, and a stored data area that may store data created from use of the apparatus performing the method of automatically configuring digital signatures of application software, etc. furthermore, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least disk storage devices, flash memory devices, or other non-volatile solid state storage devices, in some embodiments the memory may optionally include memory remotely located from the processor, which may be connected to the member user behavior monitoring apparatus via a network.
The input device may receive input digital or character information and generate key signal inputs related to user settings and function controls of the device performing the method of automatically configuring the digital signature of the application software. The output device may include a display device such as a display screen.
The or more modules are stored in the memory and when executed by the or more processors perform the method of automatically configuring a digital signature of application software in any of the above-described method embodiments.
Embodiments of the present invention further provide non-transitory computer storage media, where the computer storage media store computer-executable instructions that can perform a processing method of list item operations in any of the above method embodiments.
Finally, it should be understood by those skilled in the art that all or part of the processes in the methods of the above embodiments may be implemented by instructing the relevant hardware through a computer program, and the program may be stored in computer readable storage medium, and when executed, the program may include the processes of the above embodiments of the methods.
In addition, the devices, apparatuses, etc. described in this disclosure can be various electronic terminal devices, such as mobile phone, Personal Digital Assistant (PDA), tablet computer (PAD), smart television, etc., and can also be large terminal devices, such as server, etc., therefore, the protection scope of this disclosure should not be limited to a specific type of device, apparatus.
Furthermore, the method according to the present disclosure may also be implemented as a computer program executed by a CPU, which may be stored in a computer-readable storage medium. The computer program, when executed by the CPU, performs the above-described functions defined in the method of the present disclosure.
Further, it should be appreciated that the computer-readable storage media (e.g., memory) described herein can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. By way of example, and not limitation, nonvolatile memory can include Read Only Memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which can act as external cache memory. By way of example and not limitation, RAM is available in a variety of forms such as synchronous RAM (DRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The storage devices of the disclosed aspects are intended to comprise, without being limited to, these and other suitable types of memory.
The apparatus of the foregoing embodiment is used to implement the corresponding method in the foregoing embodiment, and has the beneficial effects of the corresponding method embodiment, which are not described herein again.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, is limited to these examples; within the idea of the invention, also features in the above embodiments or in different embodiments may be combined, steps may be implemented in any order, and there are many other variations of the different aspects of the invention as described above, which are not provided in detail for the sake of brevity.
In addition, well known power/ground connections to Integrated Circuit (IC) chips and other components may or may not be shown within the provided figures for simplicity of illustration and discussion, and so as not to obscure the invention. Furthermore, devices may be shown in block diagram form in order to avoid obscuring the invention, and also in view of the fact that specifics with respect to implementation of such block diagram devices are highly dependent upon the platform within which the present invention is to be implemented (i.e., specifics should be well within purview of one skilled in the art). Where specific details (e.g., circuits) are set forth in order to describe example embodiments of the invention, it should be apparent to one skilled in the art that the invention can be practiced without, or with variation of, these specific details. Accordingly, the description is to be regarded as illustrative instead of restrictive.
While the present invention has been described in conjunction with specific embodiments thereof, many alternatives, modifications, and variations of these embodiments will be apparent to those of ordinary skill in the art in light of the foregoing description. For example, other memory architectures (e.g., dynamic ram (dram)) may use the discussed embodiments.
The embodiments of the invention are intended to embrace all such alternatives, modifications and variances that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, substitutions, improvements and the like that may be made without departing from the spirit and principles of the invention are intended to be included within the scope of the invention.

Claims (4)

1, method for automatically configuring digital signature of application software, which is characterized by comprising the following steps:
s1: acquiring a digital signature process;
s2: acquiring a digital signature thread according to the acquired digital signature process;
s3: acquiring a corresponding client window according to the acquired digital signature thread;
s4: acquiring a PIN code input box according to the acquired client window;
s5: activating the PIN code input box and setting a keyboard input focus;
s6: simulating a keyboard to input a PIN code at the keyboard input focus;
s7: and the simulated keyboard inputs the enter confirmation key after inputting the PIN code.
2. The method of claim 1,
acquiring all processes by using an acquisition process function interface, and acquiring a digital signature process name; acquiring a digital signature process id through the digital signature process name;
acquiring a corresponding digital signature thread id through the digital signature process id by using an acquisition thread function interface;
acquiring all corresponding windows according to the digital signature thread id by using an acquisition window function interface; determining the matched client window according to the window information;
acquiring a corresponding sub-window according to the client window by utilizing an acquisition sub-window function interface; determining the PIN code input frame according to the input frame information;
setting the keyboard input focus in the PIN code input box;
simulating keyboard code data resulting from keyboard entry and PIN code at the keyboard entry focus;
the simulated keypad entry of the PIN code is complete and the simulated keypad entry and enter of the keypad code data from the enter key .
A system for automatically configuring a digital signature of an application software of the type , comprising:
the process acquisition module is used for acquiring a digital signature process;
the thread acquisition module is used for acquiring a digital signature thread according to the acquired digital signature process;
the window acquisition module is used for acquiring a corresponding client window according to the acquired digital signature thread;
the input frame acquisition module is used for acquiring a PIN code input frame according to the acquired client window;
and the setting module is used for activating the PIN input box according to the obtained PIN input box, setting an input focus, simulating a keyboard to input the PIN and inputting a enter confirmation key.
An electronic device of kind, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any of claims 1 to 2 when executing the program.
CN201810798359.6A 2018-07-19 2018-07-19 Method and system for automatically configuring digital signature of application software and electronic equipment Active CN110737878B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810798359.6A CN110737878B (en) 2018-07-19 2018-07-19 Method and system for automatically configuring digital signature of application software and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810798359.6A CN110737878B (en) 2018-07-19 2018-07-19 Method and system for automatically configuring digital signature of application software and electronic equipment

Publications (2)

Publication Number Publication Date
CN110737878A true CN110737878A (en) 2020-01-31
CN110737878B CN110737878B (en) 2023-12-22

Family

ID=69235526

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810798359.6A Active CN110737878B (en) 2018-07-19 2018-07-19 Method and system for automatically configuring digital signature of application software and electronic equipment

Country Status (1)

Country Link
CN (1) CN110737878B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1561508A (en) * 2000-09-07 2005-01-05 斯维沃安全有限公司 Code identification method and system
EP1770587A1 (en) * 2005-09-29 2007-04-04 Research In Motion Limited Remote hash generation in a system and method for providing code signing services
CN101206542A (en) * 2006-12-18 2008-06-25 汉王科技股份有限公司 Ciphering signature writing pad with press keys and display screen
CN102685121A (en) * 2012-05-03 2012-09-19 飞天诚信科技股份有限公司 Digital signature method and digital signature device
US9219611B1 (en) * 2014-02-20 2015-12-22 Symantec Corporation Systems and methods for automating cloud-based code-signing services
CN106209754A (en) * 2015-05-08 2016-12-07 中标软件有限公司 Method and system to software kit automatic signature in version control system
CN107026735A (en) * 2016-01-29 2017-08-08 李明 Method and managed devices that a kind of password is automatically entered

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1561508A (en) * 2000-09-07 2005-01-05 斯维沃安全有限公司 Code identification method and system
EP1770587A1 (en) * 2005-09-29 2007-04-04 Research In Motion Limited Remote hash generation in a system and method for providing code signing services
CN101206542A (en) * 2006-12-18 2008-06-25 汉王科技股份有限公司 Ciphering signature writing pad with press keys and display screen
CN102685121A (en) * 2012-05-03 2012-09-19 飞天诚信科技股份有限公司 Digital signature method and digital signature device
US9219611B1 (en) * 2014-02-20 2015-12-22 Symantec Corporation Systems and methods for automating cloud-based code-signing services
CN106209754A (en) * 2015-05-08 2016-12-07 中标软件有限公司 Method and system to software kit automatic signature in version control system
CN107026735A (en) * 2016-01-29 2017-08-08 李明 Method and managed devices that a kind of password is automatically entered

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
MUHAMMAD SHAHZAD 等: "Behavior Based Human Authentication on Touch Screen Devices Using Gestures and Signatures", 《BEHAVIOR BASED HUMAN AUTHENTICATION ON TOUCH SCREEN DEVICES USING GESTURES AND SIGNATURES》, vol. 16, no. 10, pages 2726 - 2741 *
左石城 等: "本地提供签名服务系统的设计与实现", 《软件》, vol. 38, no. 2, pages 84 - 90 *

Also Published As

Publication number Publication date
CN110737878B (en) 2023-12-22

Similar Documents

Publication Publication Date Title
CN107766900B (en) Method, system and computing device for printing bar code
CN105243370A (en) Fingerprint identification method, fingerprint identification device and mobile terminal
CN111353364A (en) Dynamic face identification method and device and electronic equipment
CN105050061A (en) Method and device for sending messages on the basis of user voiceprint information
CN107133514B (en) password prompting method and mobile terminal
CN110781139A (en) Teaching plan resource management system and method and electronic equipment
CN111104648B (en) Software processing method and device, storage medium and electronic equipment
CN104754217A (en) Shooting method and terminal
CN110737878A (en) Method and system for automatically configuring digital signature of application software and electronic equipment
CN107516117A (en) Quick Response Code processing method, device, terminal and server
KR20190065386A (en) Method, system and medium for pairing devices to complete a task using an application request
CN111382415A (en) Unified login method and device and electronic equipment
CN111190529B (en) Keyboard input method and device and electronic equipment
CN111352993A (en) Cross-platform data synchronization method and device and electronic equipment
CN110806910A (en) Method and system for optimizing carousel map and electronic equipment
CN110765738A (en) System and method for generating card number and electronic equipment
CN111158569A (en) Erasing operation method and device and electronic equipment
CN110912959B (en) Equipment access method and device, management and control system and electronic equipment
CN110908567B (en) Terminal assistant device and method and electronic equipment
CN111062189B (en) Data analysis method and device and electronic equipment
CN111200621A (en) Ad hoc network method and device, and electronic device
CN111354096A (en) Intelligent attendance checking method and device and electronic equipment
CN111142982A (en) Event execution method and device and electronic equipment
CN111158505A (en) Thick-thin handwriting writing method and device and electronic equipment
CN110737562A (en) method and system for monitoring process and electronic equipment

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