IP Library Granted Patent US 10,884,862
Granted Patent B2
US 10,884,862 · App. 16/156,762 · Granted Jan 5, 2021

Method and apparatus for processing failure of cipher change of ciphertext in database

Inventor: Li Li (Hangzhou, CN)
Assignee: ADVANCED NEW TECHNOLOGIES CO., LTD.
G06F11/1415G06F11/1402G06F11/1443G06F21/64G06Q20/24G06Q20/3829G06Q20/4093H04L9/0891G06F2201/805G06F2201/82
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,884,862
App. No.
16/156,762
Granted
Jan 5, 2021
Kind
B2
Abstract

A method for processing cipher change failure comprises: storing a record's error information when a cipher change of ciphertext data in the record fails, the error information comprising an identifier of the record and a failure cause; determining a retry strategy based on the stored failure cause; and employing the retry strategy to reperform the cipher change of the ciphertext data in the record having the identifier.

Claims (37)

1. A method for processing cipher change failure, comprising:

storing a record's error information when a cipher change of ciphertext data in the record fails, the error information comprising an identifier of the record, a failure cause, an old key version number, and a new key version number;

determining a retry strategy based on the stored failure cause, the determining a retry strategy comprising determining whether to implement an automatic retry or a manual retry based on whether the failure cause comprises at least one of: database inaccessibility, database jitter, database read/write errors, a state anomaly of a field value access system that performs the cipher change, or an execution anomaly of a cipher change execution component that calls the field value access system; and

employing the retry strategy to reperform the cipher change of the ciphertext data in the record having the identifier by decrypting the ciphertext data with a key corresponding to the old key version number to obtain plaintext data, and encrypting the obtained plaintext data using a key corresponding to the new key version number.

2. The method according to claim 1 , wherein: the retry strategy comprises reperforming the cipher change of the ciphertext data in the record for a number of times not exceeding a first predetermined number when the failure cause comprises at least one of database inaccessibility, database jitter, or database read/write errors.

3. The method according to claim 1 , wherein: the cipher change of the ciphertext data is performed on the record's field value in which the ciphertext data is located; and

the retry strategy comprises: when the failure cause comprises the state anomaly of the field value access system, reperforming the cipher change of the ciphertext data in the record after a predetermined time has elapsed for a number of times not exceeding a second predetermined number.

4. The method according to claim 1 , wherein the retry strategy comprises:

when the failure cause comprises the execution anomaly of the cipher change execution component, reperforming the cipher change of a ciphertext data in the record for a number of times not exceeding a third predetermined number.

5. The method according to claim 1 , further comprising: not reperforming the cipher change of the ciphertext data in the record having the identifier when the failure cause is a decryption failure of the ciphertext data in the record.

6. The method according to claim 1 , further comprising: after the reperformed cipher change of the ciphertext data in the record having the identifier according to the retry strategy fails, writing the record's error information into a failure log.

7. The method according to claim 1 , wherein the storing the record's error information comprises: adding the error information of the record with the cipher change failure to a retry processing table, and tagging the error information as unsuccessful; and

the determining a retry strategy based on the stored failure cause and the employing the retry strategy to reperform the cipher change of the ciphertext data in the record having the identifier comprise: when predetermined retry conditions are met, reading the error information tagged as unsuccessful in the retry processing table, determining the retry strategy based on the failure cause in the error information, employing the determined retry strategy to reperform the cipher change of the ciphertext data for the record having the identifier, if the cipher change according to the retry strategy is successful, revising the tagging of the error information to successful; and if the cipher change according to the retry strategy is unsuccessful, modifying a retry number for the error information, and when the retry number reaches a maximum number allowed according to the retry strategy, deleting the error information from the retry processing table and writing the error information into a failure log.

8. The method according to claim 1 , wherein the employing the retry strategy to reperform the cipher change comprises

reperforming the cipher change of the ciphertext data in the record for a number of times not exceeding a first predetermined number, the first predetermined number based on a current operational load and a success rate of the automatic retry.

9. The method according to claim 1 , wherein the ciphertext data comprises: ciphertext data for a credit card number.

10. An apparatus for processing cipher change failure, the apparatus comprising a processor and a non-transitory computer-readable storage medium storing instructions that, when executed by the processor, cause the apparatus to perform operations comprising:

storing a record's error information when a cipher change of ciphertext data in the record fails, the error information comprising an identifier of the record, a failure cause, an old key version number, and a new key version number;

determining a retry strategy based on the stored failure cause, the determining a retry strategy comprising determining whether to implement an automatic retry or a manual retry based on whether the failure cause comprises at least one of: database inaccessibility, database jitter, database read/write errors, a state anomaly of a field value access system that performs the cipher change, or an execution anomaly of a cipher change execution component that calls the field value access system; and

employing the retry strategy to reperform the cipher change of the ciphertext data in the record having the identifier by decrypting the ciphertext data with a key corresponding to the old key version number to obtain plaintext data, and encrypting the obtained plaintext data using a key corresponding to the new key version number.

11. The apparatus according to claim 10 , wherein: the retry strategy comprises reperforming the cipher change of the ciphertext data in the record for a number of times not exceeding a first predetermined number when the failure cause comprises at least one of database inaccessibility, database jitter, or database read/write errors.

12. The apparatus according to claim 10 , wherein: the cipher change of the ciphertext data is performed on the record's field value in which the ciphertext data is located; and

the retry strategy comprises: when the failure cause comprises the state anomaly of the field value access system, reperforming the cipher change of the ciphertext data in the record after a predetermined time has elapsed for a number of times not exceeding a second predetermined number.

13. The apparatus according to claim 10 , wherein: the retry strategy comprises:

when the failure cause comprises the execution anomaly of the cipher change execution component, reperforming the cipher change of a ciphertext data in the record for a number of times not exceeding a third predetermined number.

14. The apparatus according to claim 10 , wherein the operations further comprise: not reperforming the cipher change of the ciphertext data in the record having the identifier when the failure cause is a decryption failure of the ciphertext data in the record.

15. The apparatus according to claim 10 , wherein the operations further comprise: after the reperformed cipher change of the ciphertext data in the record having the identifier according to the retry strategy fails, writing the record's error information into a failure log.

16. The apparatus according to claim 10 , wherein the storing the record's error information comprises: adding the error information of the record with the cipher change failure to a retry processing table, and tagging the error information as unsuccessful; and

the determining a retry strategy based on the stored failure cause and the employing the retry strategy to reperform the cipher change of the ciphertext data in the record having the identifier comprise: when predetermined retry conditions are met, reading the error information tagged as unsuccessful in the retry processing table, determining the retry strategy based on the failure cause in the error information, employing the determined retry strategy to reperform the cipher change of the ciphertext data for the record having the identifier, if the cipher change according to the retry strategy is successful, revising the tagging of the error information to successful if the cipher change is successful; and if the cipher change according to the retry strategy is unsuccessful, modifying a retry number for the error information, and when the retry number reaches a maximum number allowed according to the retry strategy, deleting the error information from the retry processing table and writing the error information into a failure log.

17. The apparatus according to claim 10 , wherein the employing the retry strategy to reperform the cipher change comprises

reperforming the cipher change of the ciphertext data in the record for a number of times not exceeding a first predetermined number, the first predetermined number based on a current operational load and a success rate of the automatic retry.

18. The apparatus according to claim 10 , wherein the ciphertext data comprises: ciphertext data for a credit card number.

19. A non-transitory computer-readable storage medium storing instructions that, when executed by a processor, cause the processor to perform operations comprising:

storing a record's error information when a cipher change of ciphertext data in the record fails, the error information comprising an identifier of the record, a failure cause, an old key version number, and a new key version number;

determining a retry strategy based on the stored failure cause, the determining a retry strategy comprising determining whether to implement an automatic retry or a manual retry based on whether the failure cause comprises at least one of: database inaccessibility, database jitter, database read/write errors, a state anomaly of a field value access system that performs the cipher change, or an execution anomaly of a cipher change execution component that calls the field value access system; and

employing the retry strategy to reperform the cipher change of the ciphertext data in the record having the identifier by decrypting the ciphertext data with a key corresponding to the old key version number to obtain plaintext data, and encrypting the obtained plaintext data using a key corresponding to the new key version number.

20. The storage medium according to claim 19 , wherein: the retry strategy comprises reperforming the cipher change of the ciphertext data in the record for a number of times not exceeding a first predetermined number when the failure cause comprises at least one of database inaccessibility, database jitter, or database read/write errors.

Assignments (4)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 12, 2024
From: ADVANCED NEW TECHNOLOGIES CO., LTD.
To: ADVANCED NOVA TECHNOLOGIES (SINGAPORE) HOLDING PTE. LTD.
Reel/Frame 066733/0793 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 16, 2020
From: ADVANTAGEOUS NEW TECHNOLOGIES CO., LTD.
To: ADVANCED NEW TECHNOLOGIES CO., LTD.
Reel/Frame 053796/0281 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 3, 2020
From: ALIBABA GROUP HOLDING LIMITED
To: ADVANTAGEOUS NEW TECHNOLOGIES CO., LTD.
Reel/Frame 053702/0392 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 19, 2018
From: LI, LI
To: ALIBABA GROUP HOLDING LIMITED
Reel/Frame 047544/0678 →
Priority Claims (1)
CN 2016 1 0221942 · Apr 11, 2016 · national
Continuity (2)
Continuation PCTCN2017078499 · Mar 29, 2017
Related Publication 20190042367A1 · Feb 7, 2019