Customs data endorsement method based on multiple hardware media

Through the customs data signing method based on multiple hardware media, the problems of convenience and insufficient performance of the USBKEY signing method are solved, an efficient and safe signing process is realized, the degree of automation and user experience is improved, and the signing data is ensured. accuracy and completeness.

CN118690350BActive Publication Date: 2024-10-29ZHEJIANG ELECTRONIC PORT CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411177655.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-26
Publication Date
2024-10-29
Estimated Expiration
2044-08-26

AI Technical Summary

Technical Problem

The existing USBKEY signing method has shortcomings in convenience and performance, and it is difficult to meet the efficiency and security requirements of customs data signing. In particular, the performance is insufficient when processing large-scale data, and it integrates multiple hardware media identification and user password verification. There are deficiencies in other aspects.

Method used

By designing a customs data signing method based on multiple hardware media, including starting the signing software, automatically identifying the hardware media, performing user password verification, configuring signing parameters, regularly obtaining the signing certificate, scanning and loading the data to be signed , select the signature algorithm and complete the signing, store the signing results, and improve the automation and user experience through the graphical configuration interface and scheduled task mechanism.

Benefits of technology

Significantly improves the compatibility and identification efficiency of the signing software, enhances operational security, improves the automation and user experience of the signing process, ensures the accuracy and completeness of the signing data, and improves efficiency through the exception handling mechanism Signature success rate and system stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118690350B_ABST
    Figure CN118690350B_ABST
Patent Text Reader

Abstract

The invention provides a customs data signing method based on multiple hardware media, comprising starting signing software and identifying hardware media, automatically acquiring physical media information of a connected certificate carrier; cyclically calling a dll component to identify the hardware media, and cyclically calling integrated hardware media dll components of various manufacturers using a JNA class library of JAVA; executing user password verification; configuring signing parameters, and after the authentication is passed, the user configures the signing content; regularly acquiring a signing certificate, and the software regularly reads the identity certificate from the physical medium and loads it into a memory to maintain validity; scanning and loading data to be signed, and the software scans and loads the data after the user places the data in a specific directory; completing data signing, selecting a signature algorithm according to a business type and a message type, and signing the loaded data; the invention can improve the security and processing efficiency of customs data, and is convenient for users to operate and maintain.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data security technology, and more specifically, to a customs data signing method based on multiple hardware media. Background Art

[0002] In the existing technology, customs data signing usually involves the use of USBKEY for operation, including legal person cards and operator cards. These cards have different operating permissions and are mainly used to digitally sign message data. The digital signature technology uses asymmetric encryption technology RSA, which is an encryption method widely recognized by the industry. It has very high security and is often used in important fields such as ATM machines. However, there are some limitations in using USBKEY for signing, such as low UK performance, fragility, and easy loss. These problems may not meet the requirements of e-commerce users for transaction efficiency and security. In addition, the message signing push application of the customs electronic port needs to meet specific technical requirements, including data security, confidentiality, non-repudiation, integrity and authentication. In order to meet the needs of cross-border e-commerce business and import and export trade, the technical solution should comply with the policy requirements of the General Administration of Customs and support a variety of cryptographic algorithms, including domestic algorithms SM1, SM2, SM3, SM4, etc., and also support international general algorithms such as RSA, 3DES, AES, etc., to meet different application requirements.

[0003] In the process of implementing the embodiments of the present invention, the inventors found that there are at least the following problems or defects in the prior art: Although the existing USBKEY signing method has certain security guarantees, its physical form limits the convenience of use, and its performance may be insufficient when processing large-scale data. In addition, the existing technical solutions may be insufficient in terms of integrating multiple hardware media identification, user password verification, graphical configuration interface, etc., which affects the degree of automation and user experience of the signing process. Summary of the invention

[0004] The present invention provides a customs data signing method based on multiple hardware media, including:

[0005] Step 100: Start the signing software and identify the hardware medium, integrate the automatic identification function of multiple identity certificate physical media, and the software automatically obtains the physical media information of the connected certificate carrier;

[0006] Step 101: cyclically calling dll components to identify hardware media, using JAVA's JNA class library to cyclically call integrated hardware media dll components of various manufacturers to identify and match connected hardware media;

[0007] Step 102: Perform user password verification and enter the password of the physical medium of the identity certificate for identity authentication;

[0008] Step 103: Configure signature parameters. After authentication, the user configures signature content, including service type and message type.

[0009] Step 104: Regularly obtain the signature certificate. The software regularly reads the identity certificate from the physical medium and loads it into the memory to maintain validity.

[0010] Step 105: Scan and load the data to be signed. The user places the data in a specific directory and the software scans and loads it.

[0011] Step 106: Complete data signing, select a signature algorithm based on the service type and message type, and sign the loaded data;

[0012] Step 107: Store the signing result and store the signed message in a file directory specified by the user.

[0013] Furthermore, step 101 further includes the following sub-steps:

[0014] Step 1011: Identify the bank shield medium;

[0015] Step 1012: Identify the China Electronic Port IC card medium;

[0016] Step 1013: Identify the China Electronic Port ukey medium.

[0017] Furthermore, step 102 further includes:

[0018] Step 1021: Perform password verification. If the password entered by the user is successfully verified, the system is allowed to proceed to step 103 for subsequent configuration.

[0019] Furthermore, step 104 further includes:

[0020] Step 1041: Set the software to automatically update the identity certificate in the physical medium every 5 minutes;

[0021] Step 1042: Load the updated certificate content into the software's memory to maintain the real-time validity of the certificate.

[0022] Furthermore, step 106 further includes:

[0023] Step 1061: Select a corresponding signature algorithm from the software according to the service type and message type configured by the user;

[0024] Step 1062: Apply the selected algorithm to sign the data in the memory to generate signed data.

[0025] Furthermore, step 107 further includes:

[0026] Step 1071: The signed data is stored in the form of a file in the "file directory for storing signed messages" pre-configured by the user;

[0027] Step 1072: If the signing fails, the failed file and error log are stored in the abnormal data directory.

[0028] Furthermore, step E further comprises:

[0029] Step E1: Design a data reading mechanism to quickly read data from the directory to be signed;

[0030] Step E2: Design a format conversion tool to convert the read data into a format suitable for signature;

[0031] Step E3: Design a signature algorithm adapter and select the most appropriate signature algorithm according to different business requirements;

[0032] Step E4: Design a signature result output module to ensure that the signed message can be accurately stored in the specified directory.

[0033] Furthermore, before step 100, the method further includes:

[0034] Step A: Design a software interface that integrates multiple hardware media identification, allowing users to connect physical media through the USB port and automatically identify them;

[0035] Step B: Design a user password verification mechanism to ensure the security of the operation;

[0036] Step C: Design a graphical signature configuration interface to enable users to easily configure signature parameters;

[0037] Step D: Design a timed task mechanism to update the signature certificate at a fixed frequency;

[0038] Step E: Design the data signing process, including data reading, format conversion, signature algorithm selection and signing result output.

[0039] Furthermore, step 1072 further includes:

[0040] Step 1081: Record the failure details, including timestamp, message identifier and error code;

[0041] Step 1082: Provide log management function to facilitate problem tracking and system maintenance.

[0042] Furthermore, an exception handling method is also included, comprising the following steps:

[0043] Step 109: Monitor and record error events during the signing process;

[0044] Step 110: Evaluate the degree of system degradation and provide maintenance suggestions to improve the success rate of signing;

[0045] Step 111: Design a graphical user interface to enable users to intuitively configure signatures and view results.

[0046] According to the above-mentioned embodiment of the present invention, at least the following beneficial effects are achieved: the customs data signing method provided by the present invention can greatly improve the compatibility and recognition efficiency of the signing software by automatically identifying multiple identity certificate physical media and integrated DLL components. The introduction of the user password verification mechanism can enhance the security of the operation and ensure that only authorized users can perform the signing operation. In addition, the design of the graphical signing configuration interface enables users to configure the signing parameters more intuitively and conveniently, and the timing task mechanism ensures the real-time update and validity of the signing certificate, which can further improve the automation of the signing process. Through the carefully designed signing process, including data reading, format conversion, signature algorithm selection and output of the signing result, the method can ensure the accuracy and integrity of the signing data. The addition of the exception handling mechanism enables any errors that occur during the signing process to be discovered and recorded in a timely manner, thereby providing a system degradation assessment and maintenance suggestions, which helps to improve the success rate of signing. In addition, the design of the graphical user interface can not only improve the user experience, but also enable users to more conveniently perform signing configuration and result viewing, record failure details and provide log management functions, and also provide convenience for problem tracking and system maintenance. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] The above and other objects, features and advantages of the exemplary embodiments of the present invention will become readily understood by reading the detailed description below with reference to the accompanying drawings. In the accompanying drawings, several embodiments of the present invention are shown in an exemplary and non-limiting manner, in which:

[0048] Figure 1 A flow chart of a customs data endorsement method based on multiple hardware media provided by an embodiment of the present invention;

[0049] Figure 2 A flowchart of a customs data signing method based on multiple hardware media provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0050] The principles and spirit of the present invention will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are provided only to enable those skilled in the art to better understand and implement the present invention, and are not intended to limit the scope of the present invention in any way. On the contrary, these embodiments are provided to make the present invention more thorough and complete, and to fully convey the scope of the present invention to those skilled in the art.

[0051] Those skilled in the art will appreciate that the embodiments of the present invention may be implemented as a system, device, apparatus, method or computer program product. Therefore, the present invention may be implemented in the following forms, namely: complete hardware, complete software including firmware, resident software, microcode, etc., or a combination of hardware and software.

[0052] It should be noted that any number of elements in the drawings is for illustration rather than limitation, and any naming is only for distinction and does not have any limiting meaning.

[0053] Reference below Figure 1 , Figure 1 The following is a flow chart of a method for signing customs data based on multiple hardware media provided by an embodiment of the present invention. Figure 1 As shown, a customs data endorsement method 100 based on multiple hardware media includes:

[0054] Step 100: Start the signing software and identify the hardware medium, integrate the automatic identification function of multiple identity certificate physical media, and the software automatically obtains the physical media information of the connected certificate carrier;

[0055] Step 101: cyclically calling dll components to identify hardware media, using JAVA's JNA class library to cyclically call integrated hardware media dll components of various manufacturers to identify and match connected hardware media;

[0056] Step 102: Perform user password verification and enter the password of the physical medium of the identity certificate for identity authentication;

[0057] Step 103: Configure signature parameters. After authentication, the user configures signature content, including service type and message type.

[0058] Step 104: Regularly obtain the signature certificate. The software regularly reads the identity certificate from the physical medium and loads it into the memory to maintain validity.

[0059] Step 105: Scan and load the data to be signed. The user places the data in a specific directory and the software scans and loads it.

[0060] Step 106: Complete data signing, select a signature algorithm based on the service type and message type, and sign the loaded data;

[0061] Step 107: Store the signing result and store the signed message in a file directory specified by the user;

[0062] Before step 100, the method further includes:

[0063] Step A: Design a software interface that integrates multiple hardware media identification, allowing users to connect physical media through the USB port and automatically identify them;

[0064] Step B: Design a user password verification mechanism to ensure the security of the operation;

[0065] Step C: Design a graphical signature configuration interface to enable users to easily configure signature parameters;

[0066] Step D: Design a timed task mechanism to update the signature certificate at a fixed frequency;

[0067] Step E: Design the data signing process, including data reading, format conversion, signature algorithm selection and signing result output.

[0068] It should be noted that starting the signature software and identifying the hardware media means that after the user starts the signature program through the graphical user interface, the software can automatically detect and identify various identity certificate physical media connected through the USB interface, such as smart cards, U shields, etc. In the process of cyclically calling dll components to identify hardware media, the software will use JAVA's JNA class library to write specific interface codes to call the DLL components of hardware media from different manufacturers and complete the identification and matching of hardware media.

[0069] Preferably, when executing the user password verification step, the system will require the user to enter the password associated with the connected hardware medium for identity authentication. This password can be set by the user when using the hardware medium for the first time, or it can be the system default security password. In order to improve security, the system can also provide password attempt limit and password strength detection functions. In the process of configuring the signing parameters, the user can select different business types and message types through the graphical interface, and the system will automatically configure the corresponding signing parameters according to the selection, such as signature algorithm, encryption mode, etc. In addition, the system can also provide a parameter template function, allowing users to save and load commonly used signing parameter configurations to further improve the efficiency of signing.

[0070] In some embodiments, step 101 further includes the following sub-steps:

[0071] Step 1011: Identify the bank shield medium;

[0072] Step 1012: Identify the China Electronic Port IC card medium;

[0073] Step 1013: Identify the China Electronic Port ukey medium.

[0074] It should be noted that step 101 further includes identifying different types of hardware media, such as bank shield media, China Electronic Port IC card media, and China Electronic Port ukey media. These terms refer to various physical devices that can be used to generate digital signatures, which are associated with specific financial institutions or China Electronic Port systems. Parameter settings may include the type identification of the hardware media, interface protocol, and driver version, etc. These parameters will be configured according to the specific specifications of the hardware media.

[0075] Preferably, the sub-steps of step 101 may further include:

[0076] 1. Enumerate the connected devices through the USB interface and filter out the supported hardware media types.

[0077] 2. For each filtered hardware medium, call the preset identification algorithm, including but not limited to querying the serial number, version information and manufacturer identification of the device.

[0078] 3. Based on the query results, load the corresponding dll component, which is responsible for communicating with the hardware media to obtain the necessary certificate information and signing capabilities.

[0079] 4. In order to improve the accuracy and security of identification, a whitelist mechanism for hardware media can also be implemented so that only verified devices can be identified and used.

[0080] 5. In addition, a failure retry mechanism can be set up. When hardware media recognition fails, the system will automatically retry until the predetermined number of retries is reached or the recognition is successful.

[0081] In some embodiments, step 102 further includes:

[0082] Step 1021: Perform password verification. If the password entered by the user is successfully verified, the system is allowed to proceed to step 103 for subsequent configuration.

[0083] It should be noted that step 1021 further clarifies the detailed process of executing the user password verification in step 102. This step is to ensure that only authorized users can perform subsequent signature operations, thereby ensuring the security of the signature process.

[0084] Specifically, the password verification in step 1021 means that the system will require the user to enter the password associated with the physical medium of his identity certificate. This password is usually set when the user uses the hardware medium for the first time and is used to verify the user's identity each time. If the password entered by the user is successfully verified, it means that the system's built-in verification mechanism confirms that the entered password matches the password stored in the hardware medium. Then allowing to enter step 103 for subsequent configuration means that once the password verification is passed, the user will be authorized to continue to configure the signature parameters.

[0085] Preferably, the implementation of step 1021 may further include the following steps:

[0086] 1. Implement a password attempt limit to prevent brute force attacks, such as setting a maximum of 5 password attempts and locking the hardware media if the limit is exceeded.

[0087] 2. Introduce a multi-factor authentication mechanism, which can require users to perform biometric verification, such as fingerprint or facial recognition, in addition to password input to enhance security.

[0088] 3. Design a password strength detection algorithm to ensure that the complexity of the password set by the user meets security requirements, such as the password must contain a combination of letters, numbers and special characters.

[0089] 4. If password verification fails, the system can provide options for password retrieval or reset, and reset the password after identity verification through the email or mobile phone number reserved by the user.

[0090] 5. In addition, a security logging system can be set up to record all login attempts, including successful and failed attempts, to facilitate post-audit and analysis of potential security threats.

[0091] In some embodiments, step 104 further includes:

[0092] Step 1041: Set the software to automatically update the identity certificate in the physical medium every 5 minutes;

[0093] Step 1042: Load the updated certificate content into the software's memory to maintain the real-time validity of the certificate.

[0094] It should be noted that step 1041 and step 1042 elaborate on the specific implementation method of regularly obtaining the signing certificate in step 104. This step is to ensure that the certificate used in the signing operation is always kept up to date, thereby ensuring the validity and security of the signing result.

[0095] Specifically, setting the software in step 1041 to automatically update the identity certificate in the physical medium every 5 minutes means that the software will automatically read the latest identity certificate information from the hardware medium according to the preset time interval. This cycle can be adjusted according to actual needs. For example, if there are higher requirements for the real-time performance of the certificate, the update cycle can be shortened. Loading the updated certificate content into the software's memory to maintain the real-time validity of the certificate means that after the software updates the certificate, it will store it in the memory for quick access during the signing process to ensure that the latest certificate is used for the signing operation.

[0096] Preferably, the implementation of step 104 may further include the following steps:

[0097] 1. The software can provide a user interface that allows users to customize the time interval for certificate renewal to suit different business scenarios and security requirements.

[0098] 2. During the certificate update process, the software can implement additional security checks, such as verifying the certificate's validity period and signature, to ensure that the loaded certificate is valid and has not been tampered with.

[0099] 3. In order to improve the robustness of the system, a retry mechanism for failed certificate updates can be designed. If the update fails within the predetermined time, the software will try to re-update until it succeeds or exceeds the maximum number of retries.

[0100] 4. The software can record the history of certificate updates, including the time of update, certificate information before and after update, etc., to facilitate auditing and monitoring.

[0101] 5. In addition, a certificate update notification mechanism can be designed. When the certificate is successfully updated, the system administrator or user will be notified through system logs, emails, or message reminders.

[0102] In some embodiments, step 106 further comprises:

[0103] Step 1061: Select a corresponding signature algorithm from the software according to the service type and message type configured by the user;

[0104] Step 1062: Apply the selected algorithm to sign the data in the memory to generate signed data.

[0105] It should be noted that step 1061 and step 1062 describe in detail the specific implementation method of completing the data signing in step 106. This step is a key link in the signing process and ensures the security and integrity of the data.

[0106] Specifically, in step 1061, selecting the corresponding signature algorithm from the software according to the service type and message type configured by the user means that the system will select the most suitable algorithm from the preset multiple signature algorithms to sign the data according to the specific needs of the user. This may include algorithms such as RSA and SM2. The specific algorithm selected depends on the security requirements of the business and the characteristics of the data. Applying the selected algorithm to sign the data in the memory and generating the signed data means that the system will use the selected algorithm to process the user's data to be signed, generate a signature, and together with the data, form the signed result.

[0107] Preferably, the implementation of step 106 may further include the following steps:

[0108] 1. Implement an algorithm configuration interface to allow users to select or customize signature algorithms according to different business needs, including parameters such as algorithm type and key length.

[0109] 2. Design an intelligent recommendation system for algorithm selection to automatically recommend the most appropriate signature algorithm based on the characteristics and security level of the data.

[0110] 3. Strengthen the security of the algorithm, for example by introducing a hardware security module (HSM) to execute the signature algorithm to reduce security risks at the software level.

[0111] 4. Implement fine-grained permission control for signing operations to ensure that only authorized users can select and apply specific signature algorithms.

[0112] 5. Provide a verification function for the signing result, allowing users to verify the signature of the signed data to ensure the correctness and completeness of the signing process.

[0113] More specifically, step 1061 and step 1062 can be further refined as follows:

[0114] In step 1061, an algorithm library may be set up to store detailed information and implementations of a variety of signature algorithms for users to select according to their needs.

[0115] In step 1062, a logging system for signing operations can be designed to record the algorithm selection, signing time, signer and other information for each signing operation, so as to facilitate post-audit and tracking. At the same time, an operation confirmation mechanism can be introduced, requiring the user to confirm the selected algorithm and the data to be signed before the signing operation to prevent misoperation.

[0116] In some embodiments, step 107 further comprises:

[0117] Step 1071: The signed data is stored in the form of a file in the "file directory for storing signed messages" pre-configured by the user;

[0118] Step 1072: If the signing fails, the failed file and error log are stored in the abnormal data directory.

[0119] It should be noted that step 1071 and step 1072 describe the specific implementation of storing the signing result in step 107. This step ensures that the signed data can be correctly saved and recorded as expected by the user.

[0120] Specifically, the step 1071 of storing the signed data in the form of a file in the file directory where the signed message is stored and pre-configured by the user means that the system will automatically save the signed data in the directory specified by the user, which can be a folder on the local file system or a network storage location. If the signing fails, the failed file and error log are stored in the abnormal data directory, indicating that if any error occurs during the signing process, the system will not save the signed data, but store the error information and related data in a directory specifically used for abnormal situations to facilitate subsequent error analysis and processing.

[0121] Preferably, the implementation of step 107 may further include the following steps:

[0122] 1. Design a user interface that allows users to browse and select the storage location of the signature results and the storage directory of abnormal data.

[0123] 2. Implement a file naming rule to automatically generate file names based on specific attributes of the signed data (such as timestamp, business type, etc.) for easy management and identification.

[0124] 3. Add a hash verification step before file storage to ensure that the signature result has not been tampered with during the storage process.

[0125] 4. Implement access control on files in the exception data directory so that only authorized personnel can access and view error logs and failed files.

[0126] More specifically, step 1071 and step 1072 can be further refined as follows:

[0127] In step 1071, a file storage service may be set up, which is responsible for storing the signing result according to the path and naming rules configured by the user, and recording the log of the storage operation.

[0128] In step 1072, an error handling mechanism can be designed. When the signature fails, the system will capture the exception information and record the relevant data and error details in the exception data directory. At the same time, it provides error report generation and notification functions so that users can understand the reasons for the signature failure in a timely manner.

[0129] In some embodiments, step E further comprises:

[0130] Step E1: Design a data reading mechanism to quickly read data from the directory to be signed;

[0131] Step E2: Design a format conversion tool to convert the read data into a format suitable for signature;

[0132] Step E3: Design a signature algorithm adapter and select the most appropriate signature algorithm according to different business requirements;

[0133] Step E4: Design a signature result output module to ensure that the signed message can be accurately stored in the specified directory.

[0134] It should be noted that step E1-4 further describes the specific implementation method of the design data signing process in step E. This step is to ensure that the signing process can be completed efficiently and accurately and can adapt to different business needs.

[0135] Specifically, designing a data reading mechanism in step E1 to quickly read data from the directory to be signed refers to developing a method that can quickly extract files or data that need to be signed from the directory specified by the user. This may involve the optimization of file I / O operations and the understanding of file formats and structures. Designing a format conversion tool to convert the read data into a format suitable for signing refers to developing a tool that can convert the original data into a format that can be processed by the signing algorithm, which may include steps such as data encoding and serialization.

[0136] Preferably, the implementation of step E may further include the following steps:

[0137] 1. Implement an asynchronous data reading mechanism to improve reading efficiency, especially when processing a large number or large files.

[0138] 2. Design a data format detection and conversion process so that the system can automatically identify the data format and convert it into a format suitable for signature.

[0139] 3. Develop a user interface that allows users to specify parameters for data reading and conversion, such as file paths, format options, etc.

[0140] 4. Introduce a data verification mechanism to ensure the integrity and consistency of data during reading and conversion.

[0141] More specifically, step E1 and step E2 can be further refined as follows:

[0142] In step E1, multithreading or asynchronous I / O technology may be used to achieve fast data reading and reduce waiting time.

[0143] In step E2, a configuration-driven format converter may be designed, and the user may specify different data formats and conversion rules through a configuration file to support multiple data types.

[0144] Step E3 and step E4 may further include:

[0145] In step E3, a signature algorithm adapter is designed, which can dynamically select and configure signature algorithms according to different business requirements. The adapter can include an algorithm library and algorithm selection strategy.

[0146] In step E4, a signing result output module is implemented, which can not only store the signed message in the specified directory, but also provide verification and audit functions for the signing result to ensure the transparency and traceability of the signing operation.

[0147] In some embodiments, step 1072 further includes:

[0148] Step 1081: Record the failure details, including timestamp, message identifier and error code;

[0149] Step 1082: Provide log management function to facilitate problem tracking and system maintenance.

[0150] It should be noted that the record failure details in step 1081 means that the system will capture all relevant information when the signing fails, including but not limited to timestamp, message identifier and error code. This information is crucial for subsequent analysis of the cause of failure and optimization of the signing process. Providing log management function means that the system will have the ability to store, query and manage these records to facilitate problem tracking and system maintenance.

[0151] Preferably, the implementation of step 108 may further include the following refinements or alternatives:

[0152] 1. Design a structured logging system that can classify and record according to different exception types and severity levels.

[0153] 2. Implement a log analysis tool to help users quickly locate problems and provide the function of analyzing the root causes of exceptions.

[0154] 3. Add real-time monitoring and alarm mechanism. When the system detects that the signature fails, it can immediately notify the system administrator or relevant responsible person.

[0155] 4. Design a user-friendly log viewing interface so that users can easily view, search and export log information.

[0156] More specifically, step 1081 and step 1082 can be further refined as follows:

[0157] In step 1081, a data model for log records may be defined, including fields such as log level, timestamp, operation user, affected message, error code, etc., to ensure the integrity and consistency of the records.

[0158] In step 1082, a log management background service may be developed to provide functions such as log storage, indexing, query, and statistical analysis, while ensuring the security and privacy of log data.

[0159] In some embodiments, an exception handling method is further included, comprising the following steps:

[0160] Step 109: Monitor and record error events during the signing process;

[0161] Step 110: Assess the degree of degradation of the system and provide maintenance suggestions to improve the success rate of re-signing.

[0162] It should be noted that step 109 and step 110 propose specific implementation methods for the exception handling method, which helps to ensure the robustness and reliability of the signing system, and can promptly detect and take measures even when problems occur.

[0163] Specifically, monitoring and recording error events during the signing process in step 109 means that the system will monitor the execution of the signing operation in real time, and once any behavior or result that does not meet expectations is found, the system will record all relevant information of these error events in detail. This may include the time and place of the error, the context of the operation, the affected data, etc.

[0164] Preferably, the implementation of step 109 may further include the following refinements or alternatives:

[0165] 1. Design a detailed error classification system to better organize and understand the recorded error information.

[0166] 2. Implement an automated error report generation tool that can generate comprehensive reports periodically or when critical errors are detected.

[0167] 3. Add intelligent analysis functions to analyze erroneous data through machine learning and other technologies to predict possible risks and trends.

[0168] More specifically, step 109 can be further refined as follows:

[0169] During the monitoring process, the log framework can be used to record detailed technical logs, including error type, timestamp, operator, affected modules and other information.

[0170] A real-time monitoring dashboard can be designed to display real-time information of system status and error events, so that operation and maintenance personnel can quickly grasp the health of the system.

[0171] Evaluating the degree of system degradation and providing maintenance suggestions in step 110 means that the system will analyze and determine the degree of system performance degradation or stability reduction based on the recorded error events and log data, and then provide corresponding maintenance and optimization suggestions.

[0172] More specifically, step 110 can be further refined as follows:

[0173] Design an assessment model to quantify the degree of system degradation based on factors such as error frequency, type, and impact.

[0174] Implement a recommendation engine to provide personalized system optimization and maintenance suggestions based on the evaluation results, such as upgrading hardware, optimizing software configuration, and strengthening security protection.

[0175] Health checks can be performed regularly, the assessment process can be automatically triggered, and system maintenance reports can be generated to ensure the continuous and stable operation of the system.

[0176] In some embodiments, the following steps are also included:

[0177] Step 111: Design a graphical user interface to enable users to intuitively configure signatures and view results.

[0178] It should be noted that the graphical user interface designed in step 111 not only includes the basic interface layout and element design, but also covers the user interaction logic and data display method. For example, the interface may include a menu bar, a toolbar, a status bar, etc., as well as an area for displaying the configuration of signature parameters, the progress of signatures, and the results. Enabling users to intuitively configure signatures and view results means that the interface design should be concise and clear, and the operation logic should be intuitive and easy to understand to ensure that users can get started quickly.

[0179] Preferably, the implementation of step 111 may further include the following steps:

[0180] 1. Implement a responsive layout to ensure that the user interface maintains good display effects on different devices and resolutions.

[0181] 2. Design a unified set of icons and button styles to enhance the aesthetics and consistency of the interface.

[0182] 3. Provide multi-language support, allowing users to switch the interface language as needed.

[0183] 4. Implement a help system to provide users with operational guidance and answers to questions.

[0184] More specifically, step 108 can be further refined as follows:

[0185] During the design process, you can use modern UI design frameworks and tools, such as React or Vue.js, as well as Bootstrap or Material-UI, to quickly build interface prototypes.

[0186] Interface design should take into account the operating habits of different users and provide customized interface layout and functional modules so that users can adjust the interface according to their personal preferences.

[0187] Intuitive interaction methods such as drag-and-drop operations can be introduced to enable users to configure signature parameters through simple mouse operations.

[0188] The interface should provide a real-time feedback mechanism, such as prompt messages for successful operations, warnings for error messages, etc., to enhance the user's interactive experience.

[0189] The above-mentioned embodiments of the present invention have the following beneficial effects: the customs data signing method proposed by the present invention can significantly improve the efficiency and security of the signing process through a series of automated and user-friendly designs. By integrating multiple hardware media identification, user password verification, graphical configuration interface and other functions, the method can simplify the signing operation, reduce the difficulty of operation, and enable users to complete the signing operation more intuitively and conveniently. At the same time, the method also includes a data reading mechanism, a format conversion tool, a signature algorithm adapter and a signing result output module, which can further improve the efficiency and accuracy of signing. In addition, the addition of the exception handling mechanism enables any errors that occur during the signing process to be discovered and recorded in a timely manner, thereby providing a system degradation degree assessment and maintenance suggestions, which helps to improve the success rate of signing and ensure the stable operation of the system. In addition, the customs data signing method of the present invention can enhance the user experience through a carefully designed graphical user interface, allowing users to more conveniently perform signing configuration and result viewing. Recording failure details and providing log management functions can facilitate problem tracking and system maintenance. By monitoring, recording and evaluating error events during the signing process, the method can provide maintenance suggestions in a timely manner and reduce the risk of system failure.

[0190] Furthermore, the storage medium of the embodiment of the present application stores program instructions that can implement all the above methods, wherein the program instructions can be stored in the above storage medium in the form of a software product, including several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, or terminal devices such as a computer, a server, a mobile phone, and a tablet.

[0191] The above descriptions are only some preferred embodiments of the present invention and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present invention is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above inventive concept. For example, the above features are replaced with (but not limited to) technical features with similar functions disclosed in the embodiments of the present invention.

Claims

1. A customs data signing method based on multiple hardware media, characterized in that: The following steps are involved: Step 100: Start the signing software and identify the hardware medium, integrate the automatic identification function of multiple identity certificate physical media, and the software automatically obtains the physical media information of the connected certificate carrier; Step 101: cyclically calling dll components to identify hardware media, using JAVA's JNA class library to cyclically call integrated hardware media dll components of various manufacturers to identify and match connected hardware media; Step 102: Perform user password verification and enter the password of the physical medium of the identity certificate for identity authentication; Step 103: Configure signature parameters. After authentication, the user configures signature content, including service type and message type. Step 104: Regularly obtain the signature certificate. The software regularly reads the identity certificate from the physical medium and loads it into the memory to maintain validity. Step 105: Scan and load the data to be signed. The user places the data in a specific directory and the software scans and loads it. Step 106: Complete data signing, select a signature algorithm based on the service type and message type, and sign the loaded data; Step 107: Store the signing result and store the signed message in a file directory specified by the user.

2. The method according to claim 1, characterized in that: Step 101 further includes the following sub-steps: Step 1011: Identify the bank shield medium; Step 1012: Identify the China Electronic Port IC card medium; Step 1013: Identify the China Electronic Port ukey medium.

3. The method according to claim 1, characterized in that Step 102 further includes: Step 1021: Perform password verification. If the password entered by the user is successfully verified, the system is allowed to proceed to step 103 for subsequent configuration.

4. The method according to claim 1, characterized in that: Step 104 further includes: Step 1041: Set the software to automatically update the identity certificate in the physical medium every 5 minutes; Step 1042: Load the updated certificate content into the software's memory to maintain the real-time validity of the certificate.

5. The method according to claim 1, characterized in that Step 106 further includes: Step 1061: Select a corresponding signature algorithm from the software according to the service type and message type configured by the user; Step 1062: Apply the selected algorithm to sign the data in the memory to generate signed data.

6. The method according to claim 1, characterized in that Step 107 further includes: Step 1071: Store the signed data in the form of a file in the "file directory for storing signed messages" pre-configured by the user; Step 1072: If the signing fails, the failed file and error log are stored in the abnormal data directory.

7. The method according to claim 1, characterized in that Before step 100, the method further includes: Step A: Design a software interface that integrates multiple hardware media identification, allowing users to connect physical media through the USB port and automatically identify them; Step B: Design a user password verification mechanism to ensure the security of the operation; Step C: Design a graphical signature configuration interface to enable users to easily configure signature parameters; Step D: Design a timed task mechanism to update the signature certificate at a fixed frequency; Step E: Design the data signing process, including data reading, format conversion, signature algorithm selection and signing result output.

8. The method according to claim 7, characterized in that Step E further comprises: Step E1: Design a data reading mechanism to quickly read data from the directory to be signed; Step E2: Design a format conversion tool to convert the read data into a format suitable for signature; Step E3: Design a signature algorithm adapter and select the most appropriate signature algorithm according to different business requirements; Step E4: Design a signature result output module to ensure that the signed message can be accurately stored in the specified directory.

9. The method according to claim 6, characterized in that Step 1072 further includes: Step 1081: Record the failure details, including timestamp, message identifier and error code; Step 1082: Provide log management function to facilitate problem tracking and system maintenance.

10. The method according to claim 1, characterized in that Also included is an exception handling method, comprising the following steps: Step 109: Monitor and record error events during the signing process; Step 110: Evaluate the degree of system degradation and provide maintenance suggestions to improve the success rate of signing; Step 111: Design a graphical user interface to enable users to intuitively configure signatures and view results.

Citation Information

Patent Citations

  • Multi-CA UKEY medium, digital certificate and electronic seal identification and application system and method

    CN110851812A

  • Method and system for establishing encrypted communication based on remote authentication of trusted hardware, and medium

    CN118074919A