Magnetic card data processing method and system

文档序号:1127739 发布日期:2020-10-02 浏览:14次 中文

阅读说明:本技术 一种磁卡数据的处理方法及系统 (Magnetic card data processing method and system ) 是由 党娜 刘洋 于 2020-07-01 设计创作,主要内容包括:本申请实施例公开了一种磁卡数据的处理方法及系统,数据服务系统获取原始磁卡数据进行预处理,得到第一磁卡数据;并储存至位于第一目标位置的第一磁卡文件中;账户生成系统从第一目标位置获取第一磁卡文件,得到第一磁卡数据;对第一磁卡数据进行解密,获取磁卡账户信息,根据磁卡账户信息建立电子账户;对解密后的第一磁卡数据进行加密,得到第二磁卡数据,存放至位于第二目标位置的第二磁卡文件中;制卡准备系统从第二目标位置获取第二磁卡文件,得到第二磁卡数据;对第二磁卡数据进行解密,转换为磁卡文本数据;磁卡文本数据用于测试用磁卡写磁,生成与电子账户对应的磁卡。如此,提高磁卡数据处理的效率,便于磁卡的测试的进行。(The embodiment of the application discloses a magnetic card data processing method and a magnetic card data processing system, wherein a data service system acquires original magnetic card data for preprocessing to obtain first magnetic card data; storing the data in a first magnetic card file located at a first target position; the account generation system acquires a first magnetic card file from a first target position to obtain first magnetic card data; decrypting the first magnetic card data, acquiring magnetic card account information, and establishing an electronic account according to the magnetic card account information; encrypting the decrypted first magnetic card data to obtain second magnetic card data, and storing the second magnetic card data in a second magnetic card file located at a second target position; the card preparation system acquires a second magnetic card file from a second target position to obtain second magnetic card data; decrypting the second magnetic card data and converting the second magnetic card data into magnetic card text data; and the magnetic card text data is used for magnetic writing of the magnetic card for testing to generate the magnetic card corresponding to the electronic account. Therefore, the efficiency of magnetic card data processing is improved, and the magnetic card test is convenient to carry out.)

1. A method for processing magnetic card data, the method comprising:

the data service system acquires original magnetic card data, and pre-processes the original magnetic card data to obtain first magnetic card data; the first magnetic card data is data respectively satisfying the reading conditions of the account generation system and the card preparation system;

the data service system stores the first magnetic card data into a first magnetic card file located at a first target position;

the account generation system acquires the first magnetic card file from the first target position, and reads the first magnetic card file to obtain first magnetic card data; the account generation system decrypts the first magnetic card data, acquires magnetic card account information and establishes an electronic account according to the magnetic card account information;

the account generation system encrypts the decrypted first magnetic card data to obtain second magnetic card data; the account generation system stores the second magnetic card data into a second magnetic card file located at a second target position;

the card preparation system acquires the second magnetic card file from the second target position, and reads the second magnetic card file to obtain second magnetic card data;

the card preparation system decrypts the second magnetic card data and converts the decrypted second magnetic card data into magnetic card text data; and the magnetic card text data is used for magnetic writing of a magnetic card for testing to generate the magnetic card corresponding to the electronic account.

2. The method as claimed in claim 1, wherein the account generation system decrypts the first magnetic card data, obtains magnetic card account information, and establishes an electronic account according to the magnetic card account information, comprising:

the account generation system decrypts all the first magnetic card data, and extracts magnetic card account information from the decrypted first magnetic card data;

encrypting data except the magnetic card account information in the decrypted first magnetic card data to generate first encrypted data;

and establishing a corresponding electronic account according to the magnetic card account information.

3. The method of claim 2, wherein the account generation system encrypts the decrypted first magnetic card data to obtain second magnetic card data, and comprises:

the account generation system encrypts the magnetic card account information and the account label corresponding to the magnetic card account information to generate second encrypted data; the account tag is marked by the account generation system on the magnetic card account information;

and combining the first encrypted data and the second encrypted data to obtain second magnetic card data.

4. The method of claim 3, wherein the card preparation system decrypts the second magnetic card data and converts the decrypted second magnetic card data into magnetic card text data, comprising:

the card preparation system decrypts all the second magnetic card data;

and extracting the magnetic card account information from the decrypted second magnetic card data according to the account label, and converting the magnetic card account information into magnetic card text data.

5. The method of claim 1, wherein the depositing, by the account generation system, the second magnetic card data into a second magnetic card file located at a second target location comprises:

the account generation system stores the second magnetic card data in a second magnetic card file located at a first target position, so that the data service system can acquire the second magnetic card file from the first target position and store the second magnetic card file to a second target position.

6. A system for processing magnetic card data, the system comprising: the system comprises a data service system, an account generation system and a card preparation system; wherein the content of the first and second substances,

the data service system is used for acquiring original magnetic card data and preprocessing the original magnetic card data to obtain first magnetic card data; the first magnetic card data is data respectively satisfying the reading conditions of the account generation system and the card preparation system; storing the first magnetic card data into a first magnetic card file located at a first target position;

the account generation system is used for acquiring the first magnetic card file from the first target position, and reading the first magnetic card file to obtain first magnetic card data;

decrypting the first magnetic card data to obtain magnetic card account information, and establishing an electronic account according to the magnetic card account information;

encrypting the decrypted first magnetic card data to obtain second magnetic card data;

storing the second magnetic card data into a second magnetic card file located at a second target position;

the card preparation system is used for acquiring the second magnetic card file from the second target position and reading the second magnetic card file to obtain second magnetic card data;

decrypting the second magnetic card data, and converting the decrypted second magnetic card data into magnetic card text data; and the magnetic card text data is used for magnetic writing of a magnetic card for testing to generate the magnetic card corresponding to the electronic account.

7. The system according to claim 6, wherein the account generation system is specifically configured to decrypt all the first magnetic card data, and extract magnetic card account information from the obtained decrypted first magnetic card data; encrypting data except the magnetic card account information in the decrypted first magnetic card data to generate first encrypted data; and establishing a corresponding electronic account according to the magnetic card account information.

8. The system according to claim 7, wherein the account generation system is specifically configured to encrypt the magnetic card account information and an account tag corresponding to the magnetic card account information to generate second encrypted data; the account tag is marked by the account generation system on the magnetic card account information; and combining the first encrypted data and the second encrypted data to obtain second magnetic card data.

9. The system according to claim 8, characterized in that said card preparation system, in particular for totally decrypting said second magnetic card data; and extracting the magnetic card account information from the decrypted second magnetic card data according to the account label, and converting the magnetic card account information into magnetic card text data.

10. The system as claimed in claim 6, wherein the account generation system is specifically configured to store the second magnetic card data in a second magnetic card file located in a first target location, so that the data service system acquires the second magnetic card file from the first target location and stores the second magnetic card file in a second target location.

Technical Field

The present application relates to the field of data processing, and in particular, to a method and a system for processing magnetic card data.

Background

Before the magnetic card is used, magnetic card data is required to be used for magnetic card writing. When a magnetic card for testing is generated, original magnetic card data obtained by application needs to be subjected to data conversion to obtain data capable of being written with magnetism, and then the data capable of being written with magnetism is utilized to perform magnetic card magnetism writing.

However, the conversion process of the magnetic card data for testing needs to be performed manually, which results in a complicated process of generating the magnetic card data capable of being written, and a low efficiency of generating the magnetic card data capable of being written, which affects the test result based on the magnetic card test.

Disclosure of Invention

In view of this, embodiments of the present disclosure provide a method and a system for processing magnetic card data, which can automatically process magnetic card data for testing, and facilitate magnetic card testing.

In order to solve the above problem, the technical solution provided by the embodiment of the present application is as follows:

in a first aspect, the present application provides a magnetic card data processing method, including:

the data service system acquires original magnetic card data, and pre-processes the original magnetic card data to obtain first magnetic card data; the first magnetic card data is data respectively satisfying the reading conditions of the account generation system and the card preparation system;

the data service system stores the first magnetic card data into a first magnetic card file located at a first target position;

the account generation system acquires the first magnetic card file from the first target position, and reads the first magnetic card file to obtain first magnetic card data; the account generation system decrypts the first magnetic card data, acquires magnetic card account information and establishes an electronic account according to the magnetic card account information;

the account generation system encrypts the decrypted first magnetic card data to obtain second magnetic card data; the account generation system stores the second magnetic card data into a second magnetic card file located at a second target position;

the card preparation system acquires the second magnetic card file from the second target position, and reads the second magnetic card file to obtain second magnetic card data;

the card preparation system decrypts the second magnetic card data and converts the decrypted second magnetic card data into magnetic card text data; and the magnetic card text data is used for magnetic writing of a magnetic card for testing to generate the magnetic card corresponding to the electronic account.

Optionally, the account generation system decrypts the first magnetic card data, acquires magnetic card account information, and establishes an electronic account according to the magnetic card account information, including:

the account generation system decrypts all the first magnetic card data, and extracts magnetic card account information from the decrypted first magnetic card data;

encrypting data except the magnetic card account information in the decrypted first magnetic card data to generate first encrypted data;

and establishing a corresponding electronic account according to the magnetic card account information.

Optionally, the encrypting the decrypted first magnetic card data by the account generation system to obtain second magnetic card data includes:

the account generation system encrypts the magnetic card account information and the account label corresponding to the magnetic card account information to generate second encrypted data; the account tag is marked by the account generation system on the magnetic card account information;

and combining the first encrypted data and the second encrypted data to obtain second magnetic card data.

Optionally, the card preparation system decrypts the second magnetic card data, and converts the decrypted second magnetic card data into magnetic card text data, and includes:

the card preparation system decrypts all the second magnetic card data;

and extracting the magnetic card account information from the decrypted second magnetic card data according to the account label, and converting the magnetic card account information into magnetic card text data.

Optionally, the depositing, by the account generation system, the second magnetic card data into a second magnetic card file located in a second target location includes:

the account generation system stores the second magnetic card data in a second magnetic card file located at a first target position, so that the data service system can acquire the second magnetic card file from the first target position and store the second magnetic card file to a second target position.

In a second aspect, the present application provides a magnetic card data processing system, comprising:

the system comprises a data service system, an account generation system and a card preparation system; wherein the content of the first and second substances,

the data service system is used for acquiring original magnetic card data and preprocessing the original magnetic card data to obtain first magnetic card data; the first magnetic card data is data respectively satisfying the reading conditions of the account generation system and the card preparation system; storing the first magnetic card data into a first magnetic card file located at a first target position;

the account generation system is used for acquiring the first magnetic card file from the first target position, and reading the first magnetic card file to obtain first magnetic card data;

decrypting the first magnetic card data to obtain magnetic card account information, and establishing an electronic account according to the magnetic card account information;

encrypting the decrypted first magnetic card data to obtain second magnetic card data;

storing the second magnetic card data into a second magnetic card file located at a second target position;

the card preparation system is used for acquiring the second magnetic card file from the second target position and reading the second magnetic card file to obtain second magnetic card data;

decrypting the second magnetic card data, and converting the decrypted second magnetic card data into magnetic card text data; and the magnetic card text data is used for magnetic writing of a magnetic card for testing to generate the magnetic card corresponding to the electronic account.

Optionally, the account generation system is specifically configured to decrypt all the first magnetic card data, and extract magnetic card account information from the obtained decrypted first magnetic card data; encrypting data except the magnetic card account information in the decrypted first magnetic card data to generate first encrypted data; and establishing a corresponding electronic account according to the magnetic card account information.

Optionally, the account generation system is specifically configured to encrypt the magnetic card account information and the account tag corresponding to the magnetic card account information, and generate second encrypted data; the account tag is marked by the account generation system on the magnetic card account information; and combining the first encrypted data and the second encrypted data to obtain second magnetic card data.

Optionally, the card preparation system is specifically configured to decrypt all the second magnetic card data; and extracting the magnetic card account information from the decrypted second magnetic card data according to the account label, and converting the magnetic card account information into magnetic card text data.

Optionally, the account generation system is specifically configured to store the second magnetic card data in a second magnetic card file located in a first target location, so that the data service system obtains the second magnetic card file from the first target location and stores the second magnetic card file in a second target location.

Therefore, the embodiment of the application has the following beneficial effects:

the magnetic card data processing method provided by the embodiment of the application comprises the following steps that firstly, a data service system acquires original magnetic card data, and the original magnetic card data is preprocessed to obtain first magnetic card data; the first magnetic card data are data respectively meeting the reading conditions of an account generation system and a card preparation system; the data service system stores the first magnetic card data into a first magnetic card file located at a first target position; secondly, the account generation system acquires the first magnetic card file from the first target position, and reads the first magnetic card file to obtain first magnetic card data; the account generation system decrypts the first magnetic card data, acquires magnetic card account information and establishes an electronic account according to the magnetic card account information; the account generation system encrypts the decrypted first magnetic card data to obtain second magnetic card data; the account generation system stores the second magnetic card data into a second magnetic card file located at a second target position; finally, the card preparation system acquires the second magnetic card file from the second target position, and reads the second magnetic card file to obtain second magnetic card data; the card preparation system decrypts the second magnetic card data and converts the decrypted second magnetic card data into magnetic card text data; and the magnetic card text data is used for magnetic card magnetic writing to generate a magnetic card corresponding to the electronic account. The data service system processes the original magnetic card data to obtain the first magnetic card data read by the account generation system and the card preparation system. The first magnetic card data is stored in the first magnetic card file located in the first target position, so that the account generation system can automatically acquire the file. The account generation system is used for establishing a corresponding electronic account and generating second magnetic card data by decrypting and encrypting the first magnetic card data. And storing the second magnetic card data into a second magnetic card file located at a second target position, so that the card preparation system automatically reads the file to acquire the second magnetic card data. And the card preparation system decrypts the second magnetic card data, and performs data conversion to obtain magnetic card text data for magnetic card magnetic writing. Therefore, the magnetic card data for testing can be automatically processed by processing the original magnetic card data and setting the position for storing the magnetic card data, so that the efficiency of processing the magnetic card data is improved, and the magnetic card-based test is facilitated.

Drawings

Fig. 1 is a flowchart of a magnetic card data processing method according to an embodiment of the present disclosure;

fig. 2 is a schematic structural diagram of a magnetic card data processing system according to an embodiment of the present disclosure.

Detailed Description

In order to facilitate understanding and explaining the technical solutions provided by the embodiments of the present application, the following description will first describe the background art of the present application.

Before the magnetic card is used, magnetic writing is carried out on the magnetic card, and basic information of the magnetic card is recorded into the magnetic card. After studying conventional magnetic card data processing, the inventor finds that in the generation process of a magnetic card for testing, a magnetic card creation application is firstly carried out to obtain magnetic card original data containing magnetic card basic information. The original data of the magnetic card is ciphertext, which cannot be directly used for magnetic card writing and needs data conversion. After obtaining the magnetic card raw data, the worker manually processes the magnetic card raw data to obtain magnetic card data for magnetic writing. Due to the test process, the magnetic card generation system which is handled normally cannot be used, and multi-step processing of magnetic card data is required. At present, the magnetic card data processing efficiency is low due to the fact that the magnetic card data processing is carried out manually, on one hand, errors of the magnetic card data are easy to occur due to manual processing, and the test fails; on the other hand, it is difficult to quickly process a large amount of magnetic card data, which affects the test efficiency.

Based on this, an embodiment of the present application provides a magnetic card data processing method, which includes that, first, a data service system obtains original magnetic card data, and performs preprocessing on the original magnetic card data to obtain first magnetic card data; the first magnetic card data are data respectively meeting the reading conditions of an account generation system and a card preparation system; the data service system stores the first magnetic card data into a first magnetic card file located at a first target position; secondly, the account generation system acquires the first magnetic card file from the first target position, and reads the first magnetic card file to obtain first magnetic card data; the account generation system decrypts the first magnetic card data, acquires magnetic card account information and establishes an electronic account according to the magnetic card account information; the account generation system encrypts the decrypted first magnetic card data to obtain second magnetic card data; the account generation system stores the second magnetic card data into a second magnetic card file located at a second target position; finally, the card preparation system acquires the second magnetic card file from the second target position, and reads the second magnetic card file to obtain second magnetic card data; the card preparation system decrypts the second magnetic card data and converts the decrypted second magnetic card data into magnetic card text data; and the magnetic card text data is used for magnetic card magnetic writing to generate a magnetic card corresponding to the electronic account.

In order to facilitate understanding of the technical solutions provided in the embodiments of the present application, a magnetic card data processing method provided in the embodiments of the present application is described below with reference to the accompanying drawings.

Referring to fig. 1, the figure is a flowchart of a magnetic card data processing method according to an embodiment of the present application, and the method includes steps S101 to S106.

S101: the data service system acquires original magnetic card data, and pre-processes the original magnetic card data to obtain first magnetic card data; the first magnetic card data is data that satisfies the reading conditions of the account generation system and the card preparation system, respectively.

A data service system is a system for performing data preprocessing. The data service system acquires the original magnetic card data, which is encrypted ciphertext generated according to the basic information of the applied magnetic card.

In order to enable the account generation system and the card making preparation system to normally read data subsequently, the data service system may perform preprocessing on the original magnetic card data to obtain processed first magnetic card data.

The preprocessing specifically includes converting the original magnetic card data into a corresponding ASCII codeword stream, and detecting whether the byte length of the ASCII codeword stream is an integer multiple of 8. Since the ASCII code is an 8-bit number, when the byte length of the obtained ASCII codeword stream is not an integer multiple of 8, it means that there is an error in converting the original magnetic card data into the ASCII codeword stream, and bit padding is required. And carrying out XOR processing on the ASCII code word throttle after the bit is complemented to obtain first magnetic card data.

S102: and the data service system stores the first magnetic card data into a first magnetic card file positioned at a first target position.

After the first magnetic card data is obtained, the first magnetic card data may be stored in a first magnetic card file of the first target location. The first target position is a position where the account generation system reads the file, and the account generation system can directly read the first magnetic card file at the first target position by storing the first magnetic card data in the first magnetic card file at the first target position, so that the account generation system can automatically acquire the first magnetic card data.

It should be noted that, the storage location of the first magnetic card data of the data service system may be preset as a first target location, so that the first magnetic card file is stored in the first target location.

S103: the account generation system acquires the first magnetic card file from the first target position, and reads the first magnetic card file to obtain first magnetic card data; and the account generation system decrypts the first magnetic card data, acquires magnetic card account information and establishes an electronic account according to the magnetic card account information.

The account generation system is used for establishing an electronic account according to the magnetic card account information, and it can be understood that the magnetic card has a corresponding electronic account, and the first magnetic card information has basic information for establishing the magnetic card. The account generation system acquires first magnetic card data through the first magnetic card file, decrypts the first magnetic card data, and can obtain magnetic card account information. The magnetic card account information is basic information of a magnetic card required by the account generation system to establish the electronic account, such as a name, an account, a card type, a product code and the like of a user corresponding to the magnetic card.

In the embodiment of the present application, the method for decrypting the first magnetic card data corresponds to the method for encrypting the original magnetic card data, and the method for encrypting and decrypting the first magnetic card data may use a 3DESede method and a double-length key method.

S104: the account generation system encrypts the decrypted first magnetic card data to obtain second magnetic card data; and the account generation system stores the second magnetic card data into a second magnetic card file located at a second target position.

The account generation system may decrypt the first magnetic card data to obtain the magnetic card account information, and then may encrypt the decrypted first magnetic card data to obtain the second magnetic card data. The purpose of encrypting the decrypted first magnetic card data is to increase the security of data transmission between systems.

The embodiment of the present application does not limit the encryption method for obtaining the second magnetic card data, and may perform encryption by using a 3DESede and a double key, similar to the method for decrypting the first magnetic card data.

And after the second magnetic card data is obtained, storing the second magnetic card data in a second magnetic card file at a second target position, wherein the second target position is a position for reading the file by the card preparation system.

In a possible implementation manner, the account generation system may not directly store the second magnetic card data in the second target location, and the account generation system stores the second magnetic card data in a second magnetic card file located in the second target location, which may specifically include:

the account generation system stores the second magnetic card data in a second magnetic card file located at a first target position, so that the data service system can acquire the second magnetic card file from the first target position and store the second magnetic card file to a second target position.

The account generation system may store the second magnetic card data in a second magnetic card file in the first target location, and the data service system may forward the second magnetic card file to the second target location so as to prepare for file reading for card making. The second magnetic card file is transferred and stored by the data service system, so that the setting of an account generation system can be reduced, and the data service system can process the magnetic card file conveniently. The data service system performs unloading on the second magnetic card file, and can also perform backup on the second magnetic card file to ensure the integrity of data.

S105: and the card preparation system acquires the second magnetic card file from the second target position, and reads the second magnetic card file to obtain second magnetic card data.

The card preparation system is used for converting the second magnetic card data to obtain magnetic card data which can be written magnetically. And the card preparation system acquires the second magnetic card file from the second target position and reads the second magnetic card data in the second magnetic card file.

S106: the card preparation system decrypts the second magnetic card data and converts the decrypted second magnetic card data into magnetic card text data; and the magnetic card text data is used for magnetic card magnetic writing to generate a magnetic card corresponding to the electronic account.

The card preparation system decrypts the second magnetic card data, and a decryption method of the second magnetic card data by the card preparation system may be the same as an encryption method of the second magnetic card data generation.

And the card preparation system converts the decrypted second magnetic card data into magnetic card text data, and the magnetic card text data can be used for magnetic card magnetic writing.

In the embodiment of the application, the data service system is used for preprocessing original magnetic card data to obtain first magnetic card data which can be read by the account generation system and the card preparation system, and the first magnetic card data is stored to a first target position so that the account generation unit can automatically read a first magnetic card file to obtain the first magnetic card data. And the account generation system establishes an electronic account according to the magnetic card account information in the decrypted first magnetic card data and encrypts the electronic account to obtain second magnetic card data. And the card preparation system automatically acquires the second magnetic card file in the second target position, acquires the second magnetic card data, decrypts and converts the second magnetic card data to obtain magnetic card text data for magnetic card magnetic writing. The data processed by each system is stored to a specific target position, so that the next data processing system can automatically process the data conveniently. Therefore, the automatic processing of the magnetic card data is realized, the corresponding electronic account and the magnetic card text data for magnetic writing are automatically generated according to the original magnetic card data, and the processing efficiency of the magnetic card data is improved.

In a possible implementation manner, in order to facilitate the card preparation system to perform data conversion to obtain magnetic card text data, the account generation system may mark the magnetic card account information after obtaining the magnetic card account information.

The account generation system decrypts the first magnetic card data, acquires magnetic card account information, and establishes an electronic account according to the magnetic card account information, and the account generation system comprises:

the account generation system decrypts all the first magnetic card data, and extracts magnetic card account information from the decrypted first magnetic card data;

encrypting data except the magnetic card account information in the decrypted first magnetic card data to generate first encrypted data;

and establishing a corresponding electronic account according to the magnetic card account information.

Since the account generation system can establish an electronic account according to the magnetic card account information in the first magnetic card data, other data in the first magnetic card data can be partially decrypted for data security. The partial decryption means that the account generation system can decrypt all the first magnetic card data, extract magnetic card account information from the decrypted all the first magnetic card data, and encrypt data except the magnetic card account information to obtain first encrypted data. Therefore, when the magnetic card account information is used for establishing the electronic account, other data are in an encrypted state, and the safety of the data is ensured.

Further, the account generation system encrypts the decrypted first magnetic card data to obtain second magnetic card data, and the method includes:

the account generation system encrypts the magnetic card account information and the account label corresponding to the magnetic card account information to generate second encrypted data; the account tag is marked by the account generation system on the magnetic card account information;

and combining the first encrypted data and the second encrypted data to obtain second magnetic card data.

In order to facilitate the card preparation system to perform data conversion on the magnetic card account information, the account generation system may mark an account tag on the magnetic card account information, and encrypt the magnetic card account information and the account tag to obtain second encrypted data. Since the data encryption other than the magnetic card account information has already resulted in the first encrypted data, the first encrypted data and the second encrypted data are combined to result in the second magnetic card data. Note that the encryption method of the first encrypted data is identical to that of the second encrypted data.

Correspondingly, the card preparation system decrypts the second magnetic card data, and converts the decrypted second magnetic card data into magnetic card text data, and includes:

the card preparation system decrypts all the second magnetic card data;

and extracting the magnetic card account information from the decrypted second magnetic card data according to the account label, and converting the magnetic card account information into magnetic card text data.

The card preparation system decrypts all the second magnetic card data, and can quickly extract the magnetic card account information according to the account label in the decrypted second magnetic card data. And the card making preparation system performs data conversion on the magnetic card account information to convert the magnetic card account information into magnetic card text data so as to write magnetism conveniently and obtain a magnetic card corresponding to the electronic account established by the account generation system.

In the embodiment of the application, the account generation system marks the magnetic card account information, so that the card preparation system can conveniently acquire the magnetic card account information from the second magnetic card data and convert the magnetic card account information. The card preparation system can screen data, and more accurate magnetic card text data can be obtained for magnetic card writing.

Based on the magnetic card data processing method provided by the method embodiment, the embodiment of the present application further provides a magnetic card data processing system, and the magnetic card data processing system will be described below with reference to the accompanying drawings.

Referring to fig. 2, the figure is a schematic structural diagram of a magnetic card data processing system according to an embodiment of the present disclosure. As shown in fig. 2, the magnetic card data processing system includes:

a data service system 201, an account generation system 202, and a card preparation system 203; wherein the content of the first and second substances,

the data service system 201 is configured to acquire original magnetic card data, and pre-process the original magnetic card data to obtain first magnetic card data; the first magnetic card data is data that satisfies the reading conditions of the account generation system 202 and the card preparation system 203, respectively; storing the first magnetic card data into a first magnetic card file located at a first target position;

the account generation system 202 is configured to acquire the first magnetic card file from the first target location, and read the first magnetic card file to obtain the first magnetic card data;

decrypting the first magnetic card data to obtain magnetic card account information, and establishing an electronic account according to the magnetic card account information;

encrypting the decrypted first magnetic card data to obtain second magnetic card data;

storing the second magnetic card data into a second magnetic card file located at a second target position;

the card preparation system 203 is configured to acquire the second magnetic card file from the second target location, and read the second magnetic card file to obtain the second magnetic card data;

decrypting the second magnetic card data, and converting the decrypted second magnetic card data into magnetic card text data; and the magnetic card text data is used for magnetic writing of a magnetic card for testing to generate the magnetic card corresponding to the electronic account.

Optionally, the account generation system 202 is specifically configured to decrypt all the first magnetic card data, and extract magnetic card account information from the obtained decrypted first magnetic card data; encrypting data except the magnetic card account information in the decrypted first magnetic card data to generate first encrypted data; and establishing a corresponding electronic account according to the magnetic card account information.

Optionally, the account generation system 202 is specifically configured to encrypt the magnetic card account information and the account tag corresponding to the magnetic card account information, and generate second encrypted data; the account tag is signed by the account generation system 202 for the magnetic card account information; and combining the first encrypted data and the second encrypted data to obtain second magnetic card data.

Optionally, the card preparation system 203 is specifically configured to decrypt all the second magnetic card data; and extracting the magnetic card account information from the decrypted second magnetic card data according to the account label, and converting the magnetic card account information into magnetic card text data.

Optionally, the account generation system 202 is specifically configured to store the second magnetic card data in a second magnetic card file located in a first target location, so that the data service system 201 obtains the second magnetic card file from the first target location and stores the second magnetic card file in a second target location.

It should be noted that, in the present specification, the embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the system or the device disclosed by the embodiment, the description is simple because the system or the device corresponds to the method disclosed by the embodiment, and the relevant points can be referred to the method part for description.

It should be understood that in the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" for describing an association relationship of associated objects, indicating that there may be three relationships, e.g., "a and/or B" may indicate: only A, only B and both A and B are present, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of single item(s) or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.

It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

12页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种故事生成的方法、装置、计算机设备和介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!