# US 2016/0253496 A1 · Method and device for identifying pirated dongle

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2016/0253496 A1
- Document ID: US20160253496A1
- Status: Published application
- Kind: A1
- Application number: 14/237,619
- Filed: 2013-05-08
- Published: 2016-09-01
- Earliest claimed: 2012-08-21
- Assignees: Feitian Technologies Co., Ltd.
- Applicants: Feitian Technologies Co., Ltd.
- Inventors: Zhou LU; Huazhang YU
- Web page: https://patentgrep.com/patent/US20160253496A1

## CPC

- G06F 21/554: {involving event detection and direct action}
- G06F 21/34: involving the use of external additional devices, e.g. dongles or smart cards
- G06F 21/44: Program or device authentication
- G06F 21/602: {Providing cryptographic facilities or services}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method and a device for identifying pirated dongle are provided. The method includes: determining by an identification device whether any dongle is connected to host; obtaining preset data from a detection list having data volume larger than storage capacity of the dongle; obtaining first input data and first output data; sending the first input data to the dongle; receiving fifth output data; judging whether the fifth output data is identical to the first output data; determining the dongle as legitimate if judgment result is positive; determining the dongle as pirated if judgment result is negative. The detection list has data volume larger than storage capacity of the dongle; during identification, the legitimate dongle returns correct output data based on a cryptographic algorithm, while the pirated dongle without the correct cryptographic algorithm returns wrong data; therefore, the identification device may identify pirated dongle, and protection for dongle is improved.

## Claims

### Claim 1

A method for identifying a pirated dongle, comprising:
step S1, determining, by an identification device, whether there is any dongle connected to a host, proceeding to step S2 if there is a dongle connected to the host, or outputting information that no dongle is connected to the host if no dongle is connected to the host;
the step S2, obtaining, by the identification device, preset data from a detection list based on a preset rule, wherein the detection list is generated by an encryption device, the detection list is prestored in the identification device, and data volume of the detection list is larger than a storage capacity of the dongle;
step S3, obtaining, by the identification device, first input data and first output data based on the preset data;
step S4, sending, by the identification device, the first input data to the dongle;
step S5, receiving, by the identification device, fifth output data sent by the dongle; and
step S6, determining, by the identification device, whether the fifth output data is identical to the first output data, outputting information that the dongle is legitimate if the fifth output data is identical to the first output data, or outputting information that the dongle is pirated if the fifth output data is not identical to the first output data.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the step S6 comprises:
step S6-1, determining, by the identification device, whether the fifth output data is identical to the first output data, proceeding to step S6-2 if the fifth output data is identical to the first output data, or proceeding to step S6-3 if the fifth output data is not identical to the first output data;
the step S6-2, computing, by the identification device, a current count of detection and determining, by the identification device, whether the current count of detection reaches a preset count, proceeding to step S6-4 if the current count of detection reaches the preset count, or proceeding to the step S2 if the current count of detection does not reach the preset count;
the step S6-3, returning, by the identification device, information that the identification device is pirated and ending the procedure; and
the step S6-4, restoring the current count of detection to an initial value and returning information that the dongle is legitimate, by the identification device.

### Claim 3 (depends on 2)

The method according to claim 2, wherein in the case that the identification device receives a plurality of pieces of fifth output data in the step S5, the step S6 comprises:
step S6-1′, computing, by the identification device, the current count of detection and determining, by the identification device, whether the current count of detection reaches the preset count, proceeding to step S6-2′ if the current count of detection reaches the preset count, or proceeding the step S2 if the current count of detection does not reach the preset count; and
the step S6-2′, determining, by the identification device, whether all pieces of received fifth output data are respectively identical to corresponding pieces of first output data, proceeding to the step S6-4 if all the pieces of received fifth output data are respectively identical to the corresponding pieces of first output data, or proceeding to the step S6-3 if at least one piece of fifth output data is not identical to the corresponding piece of first output data.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the step S3 comprises:
step S3′, decrypting, by the identification device, the preset data to obtain the first input data and the first output data.

### Claim 5 (depends on 1)

The method according to claim 1, wherein
the step S3 is replaced by:
step S3″, obtaining, by the identification device, the first input data and second output data based on the preset data; and
the step S6 is replaced by:
Step S6″, performing computation on the fifth output data by the identification device based on a preset conversion algorithm to obtain sixth output data, determining, by the identification device, whether the sixth output data is identical to the second output data, outputting information that the dongle is legitimate if the sixth output data is identical to the second output data, or outputting information that the dongle is pirated if the sixth output data is not identical to the second output data.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the step S6″ comprises:
step S6″-1, performing computation on the fifth output data by the identification device based on the preset conversion algorithm to obtain the sixth output data, determining whether the sixth output data is identical to the second output data by the identification device, proceeding to step S6″-2 if the sixth output data is identical to the second output data, or proceeding to step S6″-3 if the sixth output data is not identical to the second output data;
the step S6″-2, computing a current count of detection by the identification device and determining, by the identification device, whether the current count of detection reaches a preset count, proceeding to step S6″-4 if the current count of detection reaches the preset count, or proceeding to the step S2 if the current count of detection does not reach a preset count;
the step S6″-3, returning, by the identification device, information that the dongle is pirated; and
the step S6″-4, restoring, by the identification device, the current count of detection to an initial value and returning, by the identification device, information that the dongle is legitimate.

### Claim 7 (depends on 6)

The method according to claim 6, wherein in the case that the identification device receives a plurality of pieces of fifth output data in the step S3, the Step S6″ comprises:
step S6″-1′, computing, by the identification device, the current count of detection and determining, by the identification device, whether the current count of detection reaches the preset count, proceeding to step S6″-2′ if the current count of detection reaches the preset count, or proceeding to the step S2 if the current count of detection does not reach the preset count; and
step S6″-2′, determining, by the identification device, whether all pieces of received sixth output data are respectively identical to corresponding pieces of second output data, proceeding to the step S6″-4 if all the pieces of received sixth output data are respectively identical to the corresponding pieces of second output data, or proceeding to the step S6″-3 if at least one piece of sixth output data is not identical to the corresponding piece of second output data.

### Claim 8 (depends on 5)

The method according to claim 5, wherein the step S3″ comprises:
step S3′″, decrypting the preset data by the identification device to obtain the first input data and the second output data.

### Claim 9 (depends on 1)

The method according to claim 1, wherein the step S1 comprises:
step S11, after the identification device receives a command of dongle invoking, determining, by the identification device, whether there is any dongle connected to the host, proceeding to step S12 if there is a dongle connected to the host, or outputting, by the identification device, information that no dongle is connected to the host if no dongle is connected to the host;
the step S12, obtaining a first identifier and a second identifier from the dongle by the identification device;
step S13, determining, by the identification device, whether the first identifier and the second identifier are respectively identical to a first identifier prestored in the identification device and a second identifier prestored in the identification device; proceeding to step S14 if the first identifier and the second identifier are respectively identical to the first identifier prestored in the identification device and the second identifier prestored in the identification device, or outputting, by the identification device, information that the dongle is wrong if the first identifier and the second identifier are not respectively identical to the first identifier prestored in the identification device and the second identifier prestored in the identification device;
the step S14, reading a user identity from the dongle by the identification device; and
step S15, determining, by the identification device, whether the user identity is identical to a user identity prestored in the identification device, proceeding to the step S2 if the user identity is identical to the user identity prestored in the identification device, or outputting information that the dongle is wrong by the identification device if the user identity is not identical to the user identity prestored in the identification device.

### Claim 10 (depends on 1)

The method according to claim 1, wherein data in the detection list is generated by performing computation on the first input data by the encryption device based on an algorithm corresponding to a legitimate dongle to obtain the first output data, and performing computation on the first output data by the encryption device based on a preset conversion algorithm to obtain second output data.

### Claim 11 (depends on 1)

The method according to claim 1, wherein the preset rule in the step S2 comprises randomly obtaining the preset data or orderly obtaining the preset data.

### Claim 12 (depends on 1)

The method according to claim 1, wherein after the step S1 and before the step S4, the method further comprises: determining whether the dongle is legitimate by the identification device; continuing the procedure if the dongle is legitimate; or reporting an error if the dongle is not legitimate.

### Claim 13 (depends on 12)

The method according to claim 12, wherein determining whether the dongle is legitimate by the identification device comprises: obtaining a user password from the dongle by the identification device; determining, by the identification device, whether the user password is identical to a user password stored in the identification device; determining that the dongle is legitimate if the user password is identical to the user password stored in the identification device or determining that the dongle is not legitimate if the user password is not identical to the user password stored in the identification device.

### Claim 14 (depends on 10)

The method according to claim 10, wherein the algorithm corresponding to the legitimate dongle comprises a cryptographic algorithm and an algorithm with which unique output data may be obtained.

### Claim 15

A device for identifying a pirated dongle, comprising: a first determination module, a storage module, an obtaining module, a sending module, a receiving module, a second determination module and an output module; wherein
the first determination module is configured to determine whether there is any qualified dongle connected to a host;
the storage module is configured to store a detection list generated by an encryption device, wherein data volume of the detection list is larger than a storage capacity of the dongle;
the obtaining module is configured to obtain preset data from the detection list and obtain first input data and first output data based on the preset data;
the sending module is configured to send the first input data to the dongle;
the receiving module is configured to receive fifth output data sent by the dongle; wherein the dongle performs computation on the first input data to obtain the fifth output data;
the second determination module is configured to determine whether the fifth output data is identical to the first output data; and
the output module is configured to output information that the dongle is wrong, information that no dongle is connected to the host, information that the dongle is legitimate and information that the dongle is pirated.

### Claim 16 (depends on 15)

The device according to claim 15, wherein the first determination module comprises: a first determination unit, a first obtaining unit, a second determination unit, a second obtaining unit and a third determination unit; wherein
the first determination unit is configured to determine whether there is any dongle connected to the host;
the first obtaining unit is configured to obtain a first identifier and a second identifier from the dongle;
the second determination unit is configured to determine whether the first identifier and the second identifier are respectively identical to a first identifier prestored in the identification device and a second identifier prestored in the identification device;
the second obtaining unit is configured to obtain a user identity from the dongle; and
the third determination unit is configured to determine whether the user identity is identical to a user identity prestored in the identification device.

### Claim 17 (depends on 15)

The device according to claim 15, wherein the identification device further comprises: a verification module, a decryption module and a computation module; wherein
the verification module is configured to verify whether the dongle is legitimate;
the decryption module is configured to decrypt the preset data to obtain the first input data and the first output data, or to decrypt the preset data to obtain the first input data and the second output data; and
the computation module is configured to perform computation on the fifth output data based on a preset algorithm to obtain sixth output data;
wherein the second determination module is further configured to determine whether the sixth output data is identical to the second output data.

### Claim 18 (depends on 17)

The device according to claim 17, wherein the verification module comprises: a third obtaining unit and a fourth determination unit; wherein
the third obtaining unit is configured to obtain a user password from the dongle; and
the fourth determination unit is configured to determine whether the user password is identical to a user password stored in the identification device.

### Claim 19 (depends on 15)

The device according to claim 15, wherein the second determination module comprises: a first comparison unit, a first computation unit and a second comparison unit; wherein
the first comparison unit is configured to determine whether the fifth output data is identical to the first output data, or determine whether the sixth output data is identical to the second output data;
the first computation unit is configured to compute a current count of detection; and
the second comparison unit is configured to determine whether the current count of detection reaches a preset count.

### Claim 20 (depends on 19)

The device according to claim 19, wherein the output module comprises: a second computation unit and a first output unit; wherein
the second computation unit is configured to restore the current count of detection to an initial value; and
the first output unit is configured to output the information that the dongle is wrong, the information that no dongle is connected to the host, the information that the dongle is legitimate or the information that the dongle is pirated.
