CN115982735A - Method, device and storage medium for automatically processing production data - Google Patents

Method, device and storage medium for automatically processing production data Download PDF

Info

Publication number
CN115982735A
CN115982735A CN202211589478.3A CN202211589478A CN115982735A CN 115982735 A CN115982735 A CN 115982735A CN 202211589478 A CN202211589478 A CN 202211589478A CN 115982735 A CN115982735 A CN 115982735A
Authority
CN
China
Prior art keywords
data
production
encrypted
project
field
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.)
Pending
Application number
CN202211589478.3A
Other languages
Chinese (zh)
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.)
Eastcompeace Technology Co Ltd
Original Assignee
Eastcompeace 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 Eastcompeace Technology Co Ltd filed Critical Eastcompeace Technology Co Ltd
Priority to CN202211589478.3A priority Critical patent/CN115982735A/en
Publication of CN115982735A publication Critical patent/CN115982735A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Storage Device Security (AREA)

Abstract

The invention provides an automatic processing method, equipment and a storage medium of production data, wherein the method comprises the following steps: acquiring an initial project data set to be uploaded, wherein the initial project data set comprises project identification information and a plurality of pieces of initial production data; splitting initial production data into a plurality of data fields according to a data processing script obtained by the project identification information, and determining the encryption attribute of each data field; encrypting a data field to be encrypted into an encrypted field based on a preset encryption algorithm and a project encryption key; and uploading the encrypted project data set obtained by updating according to the encrypted field to the production equipment. According to the technical scheme of the embodiment of the invention, the production data can be split into the plurality of data fields, the data fields needing to be encrypted are encrypted and then uploaded, so that the safety of the production data is improved, meanwhile, the project encryption key is generated according to the project identification information, the encrypted project data set is automatically uploaded to production equipment, manual operation is not needed, and the labor cost is effectively reduced.

Description

Method, device and storage medium for automatically processing production data
Technical Field
The invention relates to the technical field of smart card production, in particular to an automatic processing method, equipment and a storage medium of production data.
Background
At present, an Integrated Circuit (IC) card is widely used in the fields of finance, social security, transportation, telecommunication and the like, personalized data provided by a customer is called IC data, card making of the IC card is completed by production equipment, before card making, the IC data of the customer needs to be converted into production data applied to the production equipment through software, and the production data is written into the IC card by the production equipment during card making.
In the related art, when a card is manufactured, corresponding production data is loaded to production equipment through a File Transfer Protocol (FTP) according to different card manufacturing projects, and when a plurality of card manufacturing projects exist, the labor cost is high. Moreover, the production data is usually stored in a file form, so that the private data of the client can be easily acquired from the file, and the production data can be easily modified in the transmission process, so that the safety of the data cannot be guaranteed.
Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art. Therefore, the invention provides an automatic processing method, equipment and a storage medium of production data, which can improve the data security of the production data and reduce the labor cost.
In a first aspect, an embodiment of the present invention provides an automated processing method for production data, which is applied to a data processing device, where the data processing device is in communication connection with a production device, the production device is used for manufacturing an intelligent IC card, and the automated processing method for production data includes:
acquiring an initial project data set to be uploaded, wherein the initial project data set comprises a plurality of pieces of initial production data, and the initial project data set carries project identification information;
acquiring a preset data processing script according to the project identification information, splitting the initial production data into a plurality of data fields through the data processing script, and determining the encryption attribute of each data field, wherein the data fields are used for indicating the corresponding fields of the IC data in the initial production data;
encrypting the data field with the encryption attribute representation to be encrypted to obtain an encrypted field based on a preset encryption algorithm and a project encryption key, wherein the project encryption key is an MD5 value obtained according to the project identification information;
updating the corresponding initial production data into encrypted production data according to the encrypted fields, and uploading an encrypted project data set to the production equipment, wherein the encrypted project data set comprises the project identification information, the data processing script and a plurality of pieces of encrypted production data.
According to some embodiments of the present invention, the data processing script pre-configuring a plurality of tag field information, the tag field information indicating the IC data, the tag field information being associated with the encryption attribute and the type attribute, the splitting the initial production data into a plurality of data fields by the data processing script and determining the encryption attribute of each of the data fields, comprises:
determining the data fields corresponding to the label field information in the initial production data through the data processing script;
determining the encryption attribute and the type attribute of the data field based on the mapping relation between the label field information and the data field;
and verifying the data validity of each data field based on the type attribute.
According to some embodiments of the present invention, the encryption algorithm is a 3DES algorithm, and after the encrypting the data field with the encryption attribute representing to-be-encrypted to obtain an encrypted field, the method further includes:
determining an initial field length of the encrypted field;
when the initial field length is not a multiple of eight, zero padding is carried out on the encrypted field so as to adjust the field length of the encrypted field to be a multiple of eight;
adding a length description field before the encrypted field, the length description field being used to describe the initial field length of the encrypted field.
According to some embodiments of the invention, prior to said uploading the encrypted item data set to the production device, the method further comprises:
determining an MD5 value for the initial production data;
determining an MD5 value of the data processing script;
adding the MD5 value of the initial production data and the MD5 value of the data processing script to the encrypted item data set.
According to some embodiments of the invention, prior to said adding the MD5 value of the initial production data and the MD5 value of the data processing script to the encrypted item data set, the method further comprises:
determining package printing data, SMC chip data and data layout information corresponding to each initial production data according to the item identification information;
generating a CRC of the package print data and a CRC of the SMC chip data;
and associating the CRC of the package printing data, the CRC of the SMC chip data and the data layout information to the encrypted production data.
In a second aspect, an embodiment of the present invention provides an automated processing method for production data, which is applied to a production device, where the production device is used to manufacture a smart IC card, and the production device is in communication connection with a data processing device, and the automated processing method for production data includes:
acquiring a production instruction, wherein the production instruction comprises production identification information and index information;
determining a target project data set from a plurality of encrypted project data sets according to the production identification information, wherein the production identification information matches the project identification information of the target project data set, and the encrypted project data sets are obtained by the automatic processing method of the production data according to the first aspect;
acquiring target production data from a plurality of pieces of encrypted production data of the target project data set according to the index information;
determining a project decryption key according to the production identification information, decrypting encrypted fields in the target production data through the project decryption key, splicing a plurality of data fields corresponding to the target production data into initial production data through the data processing script, wherein the project decryption key is an MD5 value obtained according to the production identification information;
and manufacturing the intelligent IC card according to the initial production data, and deleting the target project data set when a delivery instruction aiming at the target project data set is obtained.
According to some embodiments of the invention, the encrypted production data further includes a CRC of the package print data, a CRC of the SMC chip data, and data layout information, and the index information is target layout information, and the method further includes:
determining the encrypted production data of which the data layout information is matched with the target layout information as the target production data;
determining a CRC (cyclic redundancy check) value according to the production identification information, and performing data check on the CRC of the package printing data and the CRC of the SMC (sheet molding compound) chip data according to the CRC value;
after the initial production data are spliced, determining a check MD5 value of the spliced initial production data, and performing data check according to the check MD5 value and the MD5 value of the initial production data in the encrypted project data set.
In a third aspect, an embodiment of the present invention provides a data processing apparatus, including at least one control processor and a memory, where the memory is used for being connected to the at least one control processor in a communication manner; the memory stores instructions executable by the at least one control processor to enable the at least one control processor to perform a method of automated processing of production data as described in the above first aspect.
In a fourth aspect, an embodiment of the present invention provides a production apparatus, including at least one control processor and a memory communicatively connected to the at least one control processor; the memory stores instructions executable by the at least one control processor to enable the at least one control processor to perform a method of automated processing of production data as described in the second aspect above.
In a fifth aspect, embodiments of the present invention provide a computer-readable storage medium storing computer-executable instructions for performing the method for automatically processing production data according to the first aspect, or performing the method for automatically processing production data according to the second aspect.
The automatic processing method of the production data provided by the embodiment of the invention at least has the following beneficial effects: acquiring an initial project data set to be uploaded, wherein the initial project data set comprises a plurality of pieces of initial production data and carries project identification information; acquiring a preset data processing script according to the project identification information, splitting the initial production data into a plurality of data fields through the data processing script, and determining the encryption attribute of each data field, wherein the data fields are used for indicating the corresponding fields of the IC data in the initial production data; encrypting the data field with the encryption attribute representation to be encrypted to obtain an encrypted field based on a preset encryption algorithm and a project encryption key, wherein the project encryption key is an MD5 value obtained according to the project identification information; and updating the corresponding initial production data into encrypted production data according to the encrypted fields, and uploading an encrypted project data set to the production equipment, wherein the encrypted project data set comprises the project identification information, the data processing script and the plurality of pieces of encrypted production data. According to the technical scheme of the embodiment of the invention, the production data can be split into the plurality of data fields, the data fields needing to be encrypted are encrypted and then uploaded, so that the safety of the production data is improved, meanwhile, the project encryption key is generated according to the project identification information, the encrypted project data set is automatically uploaded to production equipment, manual operation is not needed, and the labor cost is effectively reduced.
Drawings
FIG. 1 is a flow diagram of a method for automated processing of production data provided by one embodiment of the present invention;
FIG. 2 is a flow diagram of data validity verification provided by another embodiment of the present invention;
FIG. 3 is a flow diagram of adjusting encryption fields provided by another embodiment of the present invention;
FIG. 4 is a flow diagram of adding MD5 values for production data and data processing scripts provided by another embodiment of the present invention;
FIG. 5 is a flow chart of verification information provided by another embodiment of the present invention;
FIG. 6 is a flow chart of a method for automated processing of production data provided by another embodiment of the present invention;
FIG. 7 is a flow chart of performing a data check as provided by another embodiment of the present invention;
FIG. 8 is a block diagram of a data processing apparatus provided in another embodiment of the present invention;
fig. 9 is a block diagram of a production apparatus according to another embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
In the description of the present invention, it should be understood that the orientation or positional relationship referred to in the description of the orientation, such as the upper, lower, front, rear, left, right, etc., is based on the orientation or positional relationship shown in the drawings, and is only for convenience of description and simplification of description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention.
In the description of the present invention, the meaning of a plurality of means is one or more, the meaning of a plurality of means is two or more, and larger, smaller, larger, etc. are understood as excluding the number, and larger, smaller, inner, etc. are understood as including the number. If there is a description of first and second for the purpose of distinguishing technical features only, this is not to be understood as indicating or implying a relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of technical features indicated.
In the description of the present invention, unless otherwise explicitly limited, terms such as arrangement, installation, connection and the like should be understood in a broad sense, and those skilled in the art can reasonably determine the specific meanings of the above terms in the present invention in combination with the specific contents of the technical solutions.
The embodiment of the invention provides an automatic processing method, equipment and a storage medium of production data, wherein the automatic processing method of the production data comprises the following steps: acquiring an initial project data set to be uploaded, wherein the initial project data set comprises a plurality of pieces of initial production data and carries project identification information; acquiring a preset data processing script according to the project identification information, splitting the initial production data into a plurality of data fields through the data processing script, and determining the encryption attribute of each data field, wherein the data fields are used for indicating the corresponding fields of the IC data in the initial production data; encrypting the data field with the encryption attribute representation to be encrypted to obtain an encrypted field based on a preset encryption algorithm and a project encryption key, wherein the project encryption key is an MD5 value obtained according to the project identification information; updating the corresponding initial production data into encrypted production data according to the encrypted fields, and uploading an encrypted project data set to the production equipment, wherein the encrypted project data set comprises the project identification information, the data processing script and a plurality of pieces of encrypted production data. According to the technical scheme of the embodiment of the invention, the production data can be split into the plurality of data fields, the data fields needing to be encrypted are encrypted and then uploaded, so that the safety of the production data is improved, meanwhile, the project encryption key is generated according to the project identification information, the encrypted project data set is automatically uploaded to production equipment, manual operation is not needed, and the labor cost is effectively reduced.
The control method according to the embodiment of the present invention is further described below with reference to the accompanying drawings.
Referring to fig. 1, an embodiment of the present invention provides an automated processing method for production data, which is applied to a data processing device, where the data processing device is in communication connection with a production device, the production device is used for manufacturing a smart IC card, and the automated processing method for production data includes:
step S110, acquiring an initial project data set to be uploaded, wherein the initial project data set comprises a plurality of pieces of initial production data, and the initial project data set carries project identification information;
step S120, a preset data processing script is obtained according to the project identification information, the initial production data is divided into a plurality of data fields through the data processing script, and the encryption attribute of each data field is determined, wherein the data fields are used for indicating the corresponding fields of the IC data in the initial production data;
step S130, based on a preset encryption algorithm and a project encryption key, encrypting a data field with an encryption attribute representing to-be-encrypted to obtain an encrypted field, wherein the project encryption key is an MD5 value obtained according to project identification information;
and step S140, updating the corresponding initial production data into encrypted production data according to the encrypted fields, and uploading an encrypted project data set to the production equipment, wherein the encrypted project data set comprises project identification information, a data processing script and a plurality of pieces of encrypted production data.
It should be noted that the data processing device in this embodiment may be any device that can install data processing software, such as a computer, a development device, and the like, and the data processing software may be connected to the production device and upload data to the production device, and the specific type of the data processing device is not limited in this embodiment. The production equipment can be equipment for manufacturing the intelligent IC card, and after the production data are uploaded to the production equipment, the production equipment can write the production data into the intelligent IC card through the reader-writer, so that personalization of the intelligent IC card is realized.
It should be noted that, in this embodiment, the item identification information is distinguished by the item identification information, the item identification information may be description information of a card making project of an intelligent IC card, for the field of an intelligent IC card, the card making is usually performed by taking an item as a unit, since an item encryption key is generated by the item identification information, in order to ensure privacy of the item encryption key, multiple pieces of production data of each initial item data set may belong to the same card making project of the same customer, for example, a bank card is taken as an example, one item may be a card making project of a class B card of an a bank, and may also be a card making project of other fields (e.g., public transportation, social security, etc.), on this basis, the item identification information may include identification information of the bank a and identification information of the class B card, and different card making projects may be distinguished.
The production data may be obtained by IC data conversion, or may be directly imported into the data processing device through an external device, which is not limited herein.
In order to split and identify the production data, the data processing script is set in the data processing device in advance, and the processing of the production data is automatically executed through the data processing script. It should be noted that, because different production data have different formats, different data processing scripts need to be set for different production data, and in order to match the corresponding data processing scripts accurately, this embodiment may associate the project identification information with the data processing scripts, so as to ensure that the obtained data processing scripts can correctly process the initial production data in the initial project data set. It can be understood that the data processing script may write tag field information and field attributes for the corresponding initial production data, so that the data processing script may map a data field corresponding to each IC data from a code of the production data, and establish the field attribute corresponding to the field, so as to provide a data basis for the subsequent encryption processing.
It should be noted that, because the production data is obtained by converting the IC data, one production data may include multiple IC data, for example, the IC data of the bank card includes a user name, a card type, a contact manner, an account password, and the like, and after the production data is obtained by conversion, a code of the production data includes each of the IC data, in this embodiment, a data field corresponding to each of the IC data can be split from the production data by using a data processing script, and because whether the IC data is sensitive information is known in advance and can be set, an encryption attribute can be set for each data field, so as to determine whether the data field needs to be encrypted, for example, in the IC data of the bank, the user name, the contact manner, and the account password belong to sensitive information and need to be encrypted, and the card type does not belong to sensitive information and does not need to be encrypted, and by configuring the encryption attribute of each data field in advance in the data processing script, the data field can be determined quickly, and the data processing efficiency is improved. It will be appreciated that the encryption attribute may be in any form capable of characterizing the need for encryption or the lack thereof.
It should be noted that the item identification information of this embodiment is used to represent different card making items, so that the item identification information corresponding to different card making items is different, in order to improve data security, an MD5 value may be calculated according to the item identification information, the calculated MD5 value is used as an item encryption key, and a data field to be encrypted is encrypted to obtain an encrypted field. It can be understood that the calculation method of the MD5 value is a technique well known to those skilled in the art, and this embodiment does not relate to the improvement of the MD5 algorithm, and therefore is not described herein in detail.
It should be noted that after the encrypted field is obtained, the corresponding data field in the initial production data can be replaced by the encrypted field, so that the encrypted production data is obtained, the sensitive information in the encrypted production data can be encrypted, the data security is improved, the encryption process is automatically executed by the data processing script, manual intervention is not needed, and the labor cost is reduced.
It should be noted that, after each piece of initial production data of the initial project data set is encrypted, the encrypted project data set is obtained and automatically uploaded to the production equipment to manufacture the smart IC card. It can be understood that, because the encrypted production data in the encrypted project data set contains the encrypted fields, the production equipment can decrypt the encrypted production data according to the same principle, for example, the MD5 value is calculated as the decryption key according to the project identification information obtained by indexing, the encrypted fields are decrypted according to the decryption key to obtain the initial data fields, and then the initial production data are spliced and written into the smart IC card to realize the personalization of the card, so that the production data automatically run in the whole card making process, and the labor cost is effectively saved.
It should be noted that, when uploading the encrypted project data set, the description information, version number, and the like of the data processing software may be uploaded at the same time, and the uploading is not limited to the production data, and may also be performed to upload other information related to the analysis and decryption of the production data, and is not limited in many cases.
In addition, in an embodiment, the data processing script configures a plurality of tag field information in advance, where the tag field information is used to indicate the IC data, and the tag field information is associated with an encryption attribute and a type attribute, referring to fig. 2, step S120 in the embodiment shown in fig. 1 further includes, but is not limited to, the following steps:
step S210, determining data fields corresponding to the information of each label field in the initial production data through a data processing script;
step S220, based on the mapping relation between the label field information and the data field, determining the encryption attribute and the type attribute of the data field;
and step S230, verifying the validity of the data for each data field based on the type attribute.
It should be noted that, the data processing script may be configured with a plurality of tag field information in advance, and each tag field information represents one IC data, so that each data field can be quickly identified from the production data when the data processing script runs, and the data processing efficiency is improved.
It should be noted that, in order to distinguish different data fields, an encryption attribute and a type attribute associated with tag field information may be preset in the data processing script, and after the data fields are split, the corresponding encryption attribute and type attribute are established, so as to improve the data processing efficiency.
It should be noted that the type attribute may be used to characterize the data type of the data field, such as the user name and the contact information described above, and after the type attribute is obtained, the data validity of the data field may be verified, for example, whether user information exists, whether the data field is matched with a field of actual production data, whether the field value length is smaller than the actual length, and the index tag does not exist, and the verification method of the data validity may be determined according to the specific type of the data field.
In addition, in an embodiment, the encryption algorithm is a 3DES algorithm, and referring to fig. 3, after step S130 of the embodiment shown in fig. 1 is executed, the following steps are included, but not limited to:
step S310, determining the length of an initial field of an encrypted field;
step S320, when the length of the initial field is not a multiple of eight, zero padding is carried out on the encrypted field so as to adjust the length of the field of the encrypted field to be a multiple of eight;
in step S330, a length description field is added before the encrypted field, and the length description field is used for describing the initial field length of the encrypted field.
It should be noted that a specific Algorithm of the 3DES Algorithm (Triple Data Encryption Algorithm) is a technique well known to those skilled in the art, and is not described herein again. Because the lengths of the data fields are different, the initial field lengths of the encrypted fields obtained by encrypting through the 3DES are also different, in order to facilitate updating to production data, the data length needs to be ensured to be multiple of 8, after the encrypted fields are obtained, if the initial field lengths are multiple of 8, the encrypted fields can be directly used, otherwise, the encrypted fields are subjected to zero padding to enable the field lengths to reach multiple of 8, such as 8 bits, 16 bits and the like.
It should be noted that, because the encrypted field has the possibility of zero padding, in order to determine the actual field length of the encrypted field during decryption, in this embodiment, a length description field is added before the encrypted field, for example, a 4-bit hexadecimal value represents a natural number, the length of the initial field of the encrypted field is identified by the natural number, and after the length of the initial field is determined according to the length description field during decryption, the zero padding position is removed from the encrypted field, so that an actual plaintext value can be obtained.
In addition, in an embodiment, referring to fig. 4, before executing step S140 of the embodiment shown in fig. 1, the following steps are further included, but not limited to:
step S410, determining an MD5 value of initial production data;
step S420, determining the MD5 value of the data processing script;
step S430, add the MD5 value of the initial production data and the MD5 value of the data processing script to the encrypted item data set.
It should be noted that, the MD5 value is calculated for the initial production data and the data processing script, and the data is associated with the encrypted project data set, so that the data can be verified during decryption, for example, after the encrypted project data set is uploaded to the production equipment, the production equipment obtains the target production data from the encrypted project data set, and when the MD5 value of the calculated target production data is the same as the MD5 value of the initial production data, it can be determined that the decryption of the initial production data is completed and the data is consistent, so that the subsequent smart IC card manufacturing can be performed.
It can be understood that the data processing script is the same, after the production equipment obtains the corresponding data processing script according to the production identification information carried in the production instruction, when the MD5 value calculated according to the data processing script is the same as the MD5 value of the data processing script of the encrypted project data set, it can be determined that the data processing script is correct, and decryption operation can be performed by using the data processing script.
In addition, in an embodiment, referring to fig. 5, before executing the step S430 of the embodiment shown in fig. 4, the following steps are included, but not limited to:
step S510, determining package printing data, SMC chip data and data layout information corresponding to each initial production data according to the item identification information;
step S520, generating CRC of package printing data and CRC of SMC chip data;
step S530, the CRC of the package print data, the CRC of the SMC chip data, and the data layout information are associated to the encrypted production data.
The package print data is data that is not written to the smart IC card and is used for printing, for example, contents in a letter attached when a credit card issues a card; in order to ensure that production data can verify relevant data, after package print data and SMC chip data of each production data are determined according to item identification information, cyclic Redundancy Check (CRC) is generated for the package print data and the SMC chip data, and verification of the package print data and the SMC chip data is realized by production equipment through CRC, so that validity of the data is ensured.
The data layout information may be layout information related to a card surface of the smart IC card, for example, description information representing a layout of a credit card level, and different levels of the credit card are distinguished by different description information. The data layout information is associated in the encrypted production data, so that after the target production data is obtained by the production equipment, whether the decryption of the data is correct or not can be determined according to the data layout information, and the data layout information can also be used for indexing the production data, so that the production data obtained by the production equipment is ensured to be in accordance with the initial production data.
In addition, referring to fig. 6, fig. 6 is a flowchart of an automated processing method for production data, the method being applied to a production device, the production device being used for manufacturing a smart IC card, the production device being in communication connection with a data processing device, the automated processing method for production data according to an embodiment of the present invention includes:
step S610, acquiring a production instruction, wherein the production instruction comprises production identification information and index information;
step S620, determining a target project data set from a plurality of encrypted project data sets according to production identification information, wherein the production identification information matches the project identification information of the target project data set, and the encrypted project data set is obtained by the automated processing method of production data according to the embodiment shown in fig. 1;
step S630, obtaining target production data from a plurality of encrypted production data of the target project data set according to the index information;
step S640, determining a project decryption key according to the production identification information, decrypting encrypted fields in the target production data through the project decryption key, splicing a plurality of data fields corresponding to the target production data into initial production data through a data processing script, wherein the project decryption key is an MD5 value obtained according to the production identification information;
step S650, manufacturing of the intelligent IC card is executed according to the initial production data, and when a delivery instruction aiming at the target item data set is obtained, the target item data set is deleted.
It should be noted that, the production equipment may store a plurality of encrypted item data sets, and based on this, a target item data set whose item identification information is the same as the production identification information may be matched from the encrypted item data sets through the production identification information carried in the production instruction, for example, the production identification information and the item identification information are ID numbers or batch numbers of card-making items, which is not limited herein.
It should be noted that, each time the production equipment produces the card, the production equipment can execute the card production according to the same type of production data, for example, the production data with the same data layout information, and the production data required by the secondary production can be accurately retrieved from the encrypted item data set by introducing the index information, so that the card production efficiency is improved.
It should be noted that the encrypted fields in the encrypted production data are obtained by encrypting according to the item encryption key, and the item encryption key is obtained by using the MD5 value of the item identification information, and since the production identification information is the same as the item identification information, the item decryption key can be obtained according to the MD5 value that generates the identification information, so that the encrypted fields are decrypted and then spliced into the initial production data through the data processing script.
It should be noted that when the shipping instruction is obtained, it may be determined that all the target production data of the target item data set is used for card making, and at this time, the target item data set may be deleted, so as to improve the security of the data.
In addition, in an embodiment, the encrypted production data further includes CRC of the package printing data, CRC of the SMC chip data, and data layout information, and the index information is target layout information, and referring to fig. 7, the method further includes, but is not limited to, the following steps:
step S710, determining the encrypted production data of which the data layout information is matched with the target layout information as target production data;
step S720, determining a CRC check value according to the production identification information, and performing data check on the CRC of the package printing data and the CRC of the SMC chip data according to the CRC check value;
and step S730, after the initial production data are spliced, determining a check MD5 value of the spliced initial production data, and performing data check according to the check MD5 value and the MD5 value of the initial production data in the encrypted project data set.
It should be noted that, when the production data of the target project data set is more, the production equipment needs to select part of the production data as the production data of the current batch, so that the target production data can be determined by indexing according to the target layout information, so that the layout information of the smart IC cards produced in each batch is the same, and the production efficiency is improved.
It should be noted that the use and principle of the CRC of the package print data, the CRC of the SMC chip data, and the data layout information may refer to the description of the embodiment shown in fig. 5, and are not repeated herein, and the CRC obtained according to the production identification information is used as a CRC check value to perform integrity verification on the package print data and the SMC chip data, so that the accuracy of the data is ensured, manual checking is not required, and the labor cost is reduced.
It should be noted that after the initial production data is obtained by splicing the decrypted data fields, when the check MD5 value of the initial production data is the same as the MD5 value of the same initial production data carried by the encrypted item data set, it may be determined that the spliced data is consistent with the original data, and the accuracy of the data is ensured.
As shown in fig. 8, fig. 8 is a structural diagram provided by an embodiment of the present invention. The present invention also provides a data processing apparatus comprising:
the processor 801 may be implemented by a general Central Processing Unit (CPU), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits, and is configured to execute related programs to implement the technical solution provided in the embodiment of the present Application;
the Memory 802 may be implemented in a Read Only Memory (ROM), a static storage device, a dynamic storage device, or a Random Access Memory (RAM). The memory 802 may store an operating system and other application programs, and when the technical solution provided by the embodiments of the present disclosure is implemented by software or firmware, the relevant program codes are stored in the memory 802, and the processor 801 calls the automated processing method for executing the production data of the embodiments of the present disclosure;
an input/output interface 803 for realizing information input and output;
the communication interface 804 is used for realizing communication interaction between the device and other devices, and can realize communication in a wired manner (such as USB, network cable, and the like) or in a wireless manner (such as mobile network, WIFI, bluetooth, and the like);
a bus 805 that transfers information between the various components of the device (e.g., the processor 801, memory 802, input/output interface 803, and communications interface 804);
wherein the processor 801, the memory 802, the input/output interface 803 and the communication interface 804 are communicatively connected to each other within the device via a bus 805.
As shown in fig. 9, fig. 9 is a structural diagram of a production apparatus according to an embodiment of the present invention. The present invention also provides a production apparatus comprising:
the processor 901 may be implemented by a general-purpose CPU, a microprocessor, an ASIC, or one or more integrated circuits, and is configured to execute a relevant program to implement the technical solution provided in the embodiment of the present application;
the memory 902 may be implemented in the form of a ROM, a static memory device, a dynamic memory device, or a RAM. The memory 902 may store an operating system and other application programs, and when the technical solution provided in the embodiments of the present specification is implemented by software or firmware, the relevant program codes are stored in the memory 902, and the processor 901 calls the automated processing method for executing the production data in the embodiments of the present application;
an input/output interface 903 for implementing information input and output;
a communication interface 904, configured to implement communication interaction between the device and another device, where communication may be implemented in a wired manner (e.g., USB, network cable, etc.), or in a wireless manner (e.g., mobile network, WIFI, bluetooth, etc.);
a bus 905 that transfers information between various components of the device (e.g., the processor 901, the memory 902, the input/output interface 903, and the communication interface 904);
wherein the processor 901, the memory 902, the input/output interface 903 and the communication interface 904 are communicatively connected to each other within the device via a bus 905.
The embodiment of the application also provides a storage medium which is a computer readable storage medium, and the storage medium stores a computer program, and the computer program is executed by a processor to realize the automatic processing method of the production data.
The memory, as a non-transitory computer-readable storage medium, may be used to store non-transitory software programs as well as non-transitory computer-executable programs. Further, the memory may include high speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory optionally includes memory located remotely from the processor, and these remote memories may be connected to the processor through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The above described embodiments of the apparatus are merely illustrative, wherein the units illustrated as separate components may or may not be physically separate, are implemented to be located in one place, or may also be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
One of ordinary skill in the art will appreciate that all or some of the steps, systems, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those skilled in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
While the preferred embodiments of the present invention have been described, it will be understood by those skilled in the art that the present invention is not limited to the above embodiments, and various equivalent modifications or substitutions can be made without departing from the spirit of the present invention and the scope of the present invention is defined by the appended claims.

Claims (10)

1. An automated processing method for production data, which is applied to a data processing device, wherein the data processing device is in communication connection with a production device, the production device is used for manufacturing a smart IC card, and the automated processing method for production data comprises the following steps:
acquiring an initial project data set to be uploaded, wherein the initial project data set comprises a plurality of pieces of initial production data, and the initial project data set carries project identification information;
acquiring a preset data processing script according to the project identification information, splitting the initial production data into a plurality of data fields through the data processing script, and determining the encryption attribute of each data field, wherein the data fields are used for indicating the corresponding fields of the IC data in the initial production data;
encrypting the data field with the encryption attribute representation to be encrypted to obtain an encrypted field based on a preset encryption algorithm and a project encryption key, wherein the project encryption key is an MD5 value obtained according to the project identification information;
updating the corresponding initial production data into encrypted production data according to the encrypted fields, and uploading an encrypted project data set to the production equipment, wherein the encrypted project data set comprises the project identification information, the data processing script and a plurality of pieces of encrypted production data.
2. The method of claim 1, wherein the data processing script pre-configures a plurality of tag field information, the tag field information indicating the IC data, the tag field information being associated with the encryption attribute and a type attribute, the splitting the initial production data into a plurality of data fields by the data processing script and determining the encryption attribute of each of the data fields comprises:
determining the data fields corresponding to the label field information in the initial production data through the data processing script;
determining the encryption attribute and the type attribute of the data field based on the mapping relation between the label field information and the data field;
and verifying the data validity of each data field based on the type attribute.
3. The method of claim 1, wherein the encryption algorithm is a 3DES algorithm, and after the encrypting the data field with the encryption attribute representing the data field to be encrypted to obtain an encrypted field, the method further comprises:
determining an initial field length of the encrypted field;
when the initial field length is not a multiple of eight, zero padding is carried out on the encrypted field so that the field length of the encrypted field is adjusted to be a multiple of eight;
adding a length description field before the encrypted field, the length description field being used to describe the initial field length of the encrypted field.
4. The method of automated processing of production data according to claim 1, wherein prior to said uploading of the encrypted item data set to the production facility, the method further comprises:
determining an MD5 value for the initial production data;
determining an MD5 value of the data processing script;
adding the MD5 value of the initial production data and the MD5 value of the data processing script to the encrypted item data set.
5. The method for automated processing of production data according to claim 4, wherein prior to said adding the MD5 value of the initial production data and the MD5 value of the data processing script to the encrypted project data set, the method further comprises:
determining package printing data, SMC chip data and data layout information corresponding to each initial production data according to the item identification information;
generating a CRC of the package print data and a CRC of the SMC chip data;
and associating the CRC of the package printing data, the CRC of the SMC chip data and the data layout information to the encrypted production data.
6. An automated processing method of production data, which is applied to a production apparatus for manufacturing a smart IC card, the production apparatus being communicatively connected to a data processing apparatus, the automated processing method of production data comprising:
acquiring a production instruction, wherein the production instruction comprises production identification information and index information;
determining a target project data set from a plurality of encrypted project data sets according to the production identification information, wherein the production identification information is matched with the project identification information of the target project data set, and the encrypted project data sets are obtained by the automatic processing method of the production data according to any one of claims 1 to 5;
acquiring target production data from a plurality of pieces of encrypted production data of the target project data set according to the index information;
determining a project decryption key according to the production identification information, decrypting encrypted fields in the target production data through the project decryption key, splicing a plurality of data fields corresponding to the target production data into initial production data through the data processing script, wherein the project decryption key is an MD5 value obtained according to the production identification information;
and manufacturing the intelligent IC card according to the initial production data, and deleting the target item data set when a delivery instruction for the target item data set is obtained.
7. The method of claim 6, wherein the encrypted production data further includes a CRC of package print data, a CRC of SMC chip data, and data layout information, and the index information is target layout information, the method further comprising:
determining the encrypted production data of which the data layout information is matched with the target layout information as the target production data;
determining a CRC (cyclic redundancy check) value according to the production identification information, and performing data check on the CRC of the package printing data and the CRC of the SMC (sheet molding compound) chip data according to the CRC value;
after the initial production data are spliced, determining a check MD5 value of the spliced initial production data, and performing data check according to the check MD5 value and the MD5 value of the initial production data in the encrypted project data set.
8. A data processing apparatus comprising at least one control processor and a memory for communicative connection with the at least one control processor; the memory stores instructions executable by the at least one control processor to enable the at least one control processor to perform the method of automated processing of production data according to any one of claims 1 to 5.
9. A production facility comprising at least one control processor and a memory for communicative connection with the at least one control processor; the memory stores instructions executable by the at least one control processor to enable the at least one control processor to perform the method of automated processing of production data according to claim 6 or 7.
10. A computer-readable storage medium storing computer-executable instructions for causing a computer to perform the method for automated processing of production data according to any one of claims 1 to 7.
CN202211589478.3A 2022-12-12 2022-12-12 Method, device and storage medium for automatically processing production data Pending CN115982735A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211589478.3A CN115982735A (en) 2022-12-12 2022-12-12 Method, device and storage medium for automatically processing production data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211589478.3A CN115982735A (en) 2022-12-12 2022-12-12 Method, device and storage medium for automatically processing production data

Publications (1)

Publication Number Publication Date
CN115982735A true CN115982735A (en) 2023-04-18

Family

ID=85957194

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211589478.3A Pending CN115982735A (en) 2022-12-12 2022-12-12 Method, device and storage medium for automatically processing production data

Country Status (1)

Country Link
CN (1) CN115982735A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117094717A (en) * 2023-07-25 2023-11-21 湖北谊嘉金融仓储有限公司 Multi-user receivables right verification system based on blockchain encryption

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117094717A (en) * 2023-07-25 2023-11-21 湖北谊嘉金融仓储有限公司 Multi-user receivables right verification system based on blockchain encryption
CN117094717B (en) * 2023-07-25 2024-03-29 湖北谊嘉金融仓储有限公司 Multi-user receivables right verification system based on blockchain encryption

Similar Documents

Publication Publication Date Title
US20200234013A1 (en) Tag, related method and system for identifying and/or authenticating objects
CN110365670B (en) Blacklist sharing method and device, computer equipment and storage medium
US20170346808A1 (en) Information device, data processing system, data processing method, and non-transitory storage medium
US9361457B1 (en) Use of decoy data in a data store
US10375057B2 (en) Systems and methods for certificate chain validation of secure elements
US9734091B2 (en) Remote load and update card emulation support
EP2704053A1 (en) Method and system for updating a firmware of a security module
CN103136678A (en) Identification method and device of intelligent terminal, processing method and device of identification information and identification system
EP2874074A1 (en) Method for implementing cross-domain jump, browser, and domain name server
CN102171652A (en) Method for provisioning trusted software to an electronic device
CN108174377B (en) Method and system for opening number
CN107026832A (en) Account logon method, equipment and server
CN107453873B (en) Intelligent IC card data verification method and system
CN111258756B (en) Load balancing method, device, computer equipment and readable storage medium
WO2017113789A1 (en) Electronic device remote repair method, device, repaired device, and system
CN104301875A (en) Short message processing method and device
CN108897728B (en) Short message splicing processing method and device, computer equipment and storage medium
CN115982735A (en) Method, device and storage medium for automatically processing production data
CN111367923A (en) Data processing method, data processing device, node equipment and storage medium
CN111259364B (en) Method, device, equipment and storage medium for using national secret encryption card
CN110808950B (en) Message processing method, device, computer equipment and storage medium
CN112950236B (en) Sequence number writing method, device and computer readable medium
US20130318638A1 (en) Method for Programming a Mobile End Device Chip
CN104424426A (en) Verification method and verification device
CN113220568B (en) Method, device and medium for testing USIM card file system

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