Supercharge Your Innovation With Domain-Expert AI Agents!

Method and system for randomly generating credit card number

A random generation, credit card technology, applied in the computer field, can solve the problems of card number process performance degradation, increased probability of card number repetition, etc.

Inactive Publication Date: 2021-10-08
上海通联金融服务有限公司
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The problem with this method is that as the number of already assigned card numbers increases, the probability of attempting to generate duplicate card numbers will gradually increase, resulting in a gradual decrease in the performance of the card number generation process

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for randomly generating credit card number
  • Method and system for randomly generating credit card number

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] In order to make the technical means, creative features, goals and effects of the present invention easy to understand, the following embodiments illustrate the method and system for randomly generating credit card numbers of the present invention in conjunction with the accompanying drawings.

[0023] Such as figure 1 As shown, the method for randomly generating a credit card number includes the following steps:

[0024] In the preparation stage, establish the sequence number table of the card number: first determine the range of the sequence number, generate a sequence array, then use the random scrambling algorithm to scramble the generated sequence array, and finally store the scrambled sequence in the sequence number table. In this embodiment, the random shuffling algorithm is the Fisher-Yate shuffle algorithm. For example, the sequence number ranges from 0000-9999, a total of 100,000 sequence numbers. Use the Fisher-Yate shuffle algorithm to shuffle the 100,000 ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method and system for randomly generating credit card numbers, and the method comprises the following steps: building a sequence number table of card numbers: firstly determining the range of sequence numbers, generating a sequence array, then disorganizing the generated sequence array by using a random disorganizing algorithm, and finally storing the disorganized sequence in the sequence number table; and generating a card number: when a request for generating the card number is received, sequentially acquiring the sequence numbers in the sequence number table, deleting the acquired sequence numbers from the sequence number table, and generating a complete card number from the acquired sequence numbers according to a rule for generating the card number. The performance of the card number generation process cannot be reduced along with the increase of the number of distributed card numbers, and the method is suitable for high-performance requirement scenes.

Description

technical field [0001] The invention belongs to the technical field of computers, and in particular relates to a method and system for randomly generating credit card numbers. Background technique [0002] The credit card number usually consists of: 6-digit card BIN (Issuing Bank Identification Number, stipulated by the credit card organization) + several digits indicating the card product / region, etc. + several digits of sequence number + 1 digit for check digit. In order to protect the cardholder's information security as much as possible, the sequence number is usually required to be randomly generated. [0003] At present, the commonly used method is to generate a sequence number purely randomly each time to form a card number, and then search whether it already exists in the existing card table. If it exists, it will be randomly generated again until an unused card number is obtained. The problem with this approach is that as the number of already assigned card number...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F7/58G06Q40/02
CPCG06F7/588G06Q40/03
Inventor 洪俊
Owner 上海通联金融服务有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More