CN109818750A - A kind of generation method, system, device and the storage medium of ideal money data - Google Patents

A kind of generation method, system, device and the storage medium of ideal money data Download PDF

Info

Publication number
CN109818750A
CN109818750A CN201910097698.6A CN201910097698A CN109818750A CN 109818750 A CN109818750 A CN 109818750A CN 201910097698 A CN201910097698 A CN 201910097698A CN 109818750 A CN109818750 A CN 109818750A
Authority
CN
China
Prior art keywords
ideal money
card
value
information
card number
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
CN201910097698.6A
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.)
Wuxi Tvmining Juyuan Media Technology Co Ltd
Original Assignee
Wuxi Tvmining Juyuan Media 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 Wuxi Tvmining Juyuan Media Technology Co Ltd filed Critical Wuxi Tvmining Juyuan Media Technology Co Ltd
Priority to CN201910097698.6A priority Critical patent/CN109818750A/en
Publication of CN109818750A publication Critical patent/CN109818750A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses generation method, system, device and the storage mediums of a kind of ideal money data, wherein method is the following steps are included: obtain the behavioural information of user's input, and according to behavioural information obtain the first MD5 value after, according to the first MD5 value generate ideal money card card number;UID numerical value is obtained using hash algorithm, and according to the password number of UID numerical generation ideal money card;Ideal money card is generated in conjunction with the card number and password number of ideal money card.The present invention generates the card number of ideal money card according to unique first MD5 value, and the password number according to unique UID numerical generation ideal money card, ideal money card is generated by card number and password number again, to obtain unique ideal money card, prevent duplicate ideal money card, the stability for improving the ideal money data of game, can be widely applied to technical field of data processing.

Description

A kind of generation method, system, device and the storage medium of ideal money data
Technical field
The present invention relates to technical field of data processing more particularly to a kind of generation methods of ideal money data, system, dress It sets and storage medium.
Background technique
With the development of game technology, the game of the exploitation of front and back is associated with by present game developer when developing game Get up, for example the ideal money obtained in the game of front can be applied in new scene of game, is attracting new game visitor in this way While family, the user of game before being more easier to retain.Ideal money between each game cannot be used directly, such as the first trip The ideal money of play is diamond, and the ideal money of the second game is gold coin, therefore user can not directly answer the diamond of the first game It uses in the second game.The technology taken at present is, after the ideal money in each game is transformed into ideal money card, using void Quasi- money card is traded between each game.Ideal money card essence is by card number and password number sets in game process such as What generates unique ideal money card, and there is presently no corresponding solutions.
Explanation of nouns:
UID: user identity proves (User Identification), and for UID user after registered members, system can be automatic Give you the numerical value of a UID.The meaning is exactly that a number is compiled to this user.
Hash algorithm: the binary value of random length is mapped as the binary value of shorter regular length by hash algorithm, This small binary value is known as cryptographic Hash.Cryptographic Hash is the unique and extremely compact numerical value representation of one piece of data.If Hash a Duan Mingwen and even only changing a letter of the paragraph, subsequent Hash will all generate different values.It finds Hash is two different inputs of the same value, is computationally impossible, so the cryptographic Hash of data can be with check number According to integrality.
MD5 value: Message-Digest Algorithm 5 (Message-Digest Algorithm 5), for ensuring that information transmission is complete Unanimously.
Summary of the invention
In order to solve the above-mentioned technical problem, it is generated uniquely the object of the present invention is to provide a kind of according to ideal money data Method, system, device and the storage medium of the card number of ideal money card.
First technical solution of the present invention is:
A kind of generation method of ideal money data, comprising the following steps:
The behavioural information of user's input is obtained, and after obtaining the first MD5 value according to behavioural information, it is raw according to the first MD5 value At the card number of ideal money card;
UID numerical value is obtained using hash algorithm, and according to the password number of UID numerical generation ideal money card;
Ideal money card is generated in conjunction with the card number and password number of ideal money card.
Further, the behavioural information includes user information, timestamp information and ideal money numerical information, the basis Behavioural information obtains the step for the first MD5 value, specifically:
Event description text is generated in conjunction with user information, timestamp information, ideal money numerical information and the first predetermined manner Part;
Event description file is encrypted using asymmetric encryption mode, and obtains the first of encrypted description file MD5 value.
Further, the step for the card number that ideal money card is generated according to the first MD5 value, specifically:
Card number of the long number as ideal money card is obtained from the first MD5 value according to the second predetermined manner.
It further, further include verifying card number step, the verifying card number step are as follows:
After the card number information for obtaining user's input, judge whether the digit length of card number information meets the requirements, and judging When meeting the requirements, the 2nd MD5 value is generated in conjunction with card number information and third predetermined manner;
Comparison judge whether the first MD5 value and the 2nd MD5 value identical, and determine the two it is identical when, determine input Card number information is effective.
Further, further include the steps that using ideal money card, specifically:
After determining that the card number information of input is effective, the ideal money numerical value of the ideal money card is obtained according to card number information;
Judge whether the monetary value of consumption is greater than the ideal money numerical value of ideal money card, if so, prompt consumption not at Function;Conversely, prompt input password;
Judge whether the password of input is correct according to password number, if correctly, prompting to consume successfully, and updates accordingly empty The ideal money numerical value of quasi- money card;Conversely, prompt cipher mistake.
Second technical solution of the present invention is:
A kind of generation system of ideal money data, comprising:
Card number generation module obtains the first MD5 value for obtaining the behavioural information of user's input, and according to behavioural information Afterwards, the card number of ideal money card is generated according to the first MD5 value;
Secret generation module, for obtaining UID numerical value using hash algorithm, and according to UID numerical generation ideal money card Password number;
Money card generation module, card number and password number for combining ideal money card generate ideal money card.
Further, the behavioural information includes user information, timestamp information and ideal money numerical information, the card number Generation module includes file generating unit, MD5 value generation unit and card number generation unit;
The file generating unit is used for pre- in conjunction with user information, timestamp information, ideal money numerical information and first If mode generates event description file;
The MD5 value generation unit is used to encrypt event description file using asymmetric encryption mode, and obtains First MD5 value of encrypted description file;
The card number generation unit is used to obtain long number as virtual goods from the first MD5 value according to the second predetermined manner The card number of coin card.
It further, further include card number authentication module, the card number authentication module includes length determining unit and the judgement of MD5 value Unit;
After the length determining unit is used to obtain the card number information of user's input, judge that the digit length of card number information is It is no to meet the requirements, and when judgement meets the requirements, the 2nd MD5 value is generated in conjunction with card number information and third predetermined manner;
The MD5 value judging unit is being determined for comparing judge whether the first MD5 value and the 2nd MD5 value are identical When the two is identical, determine that the card number information of input is effective.
Third technical solution of the present invention is:
A kind of computer code automatically generating device, including memory and processor, the memory is for storing at least One program, the processor is for loading at least one described program to execute above-mentioned method.
4th technical solution of the present invention is:
A kind of storage medium, wherein be stored with the executable instruction of processor, the executable instruction of the processor by For executing above-mentioned method when processor executes.
The beneficial effects of the present invention are: the present invention generates the card number of ideal money card according to unique first MD5 value, and Ideal money card is generated according to the password number of unique UID numerical generation ideal money card, then by card number and password number, with Unique ideal money card is obtained, duplicate ideal money card is prevented, improves the stability of the ideal money data of game.
Detailed description of the invention
Fig. 1 is a kind of step flow chart of the generation method of ideal money data of the present invention;
Fig. 2 is a kind of structural block diagram of the generation system of ideal money data of the present invention.
Specific embodiment
Embodiment one
As shown in Figure 1, present embodiments providing a kind of generation method of ideal money data, comprising the following steps:
S1, obtain user input behavioural information, and according to behavioural information obtain the first MD5 value after, according to the first MD5 value Generate the card number of ideal money card.
S2, UID numerical value is obtained using hash algorithm, and according to the password number of UID numerical generation ideal money card.
S3, the card number in conjunction with ideal money card and password number generate ideal money card.
The ideal money of first game is diamond, and user has accumulated ideal money in the first game, these ideal moneys It can be obtained by " beating monster " or by supplementing with money, when user wants the virtual acquisition in the first game being applied to the second game, Second game is virtually gold coin.Ideal money card is first generated in the first game, then inputs ideal money in the second game Applying the ideal money of the first game in the second game can be realized in the card number and password number of card, such as by disappearing Consumption ideal money card is completed to supplement with money in the gold coin of the second game.The card number of ideal money card repeats in order to prevent, passes through following step It is rapid to generate card number.The behavioural information of user's input is obtained, the behavioural information, that is, user needs to generate the information of money card.It obtains After behavioural information, the first MD5 value is obtained according to behavioural information, the card number of ideal money card is generated further according to the first MD5 value, due to MD5 value has uniqueness, and the card number of ideal money card is generated according to the first MD5 value, card number can be made also to have uniqueness, avoid card It number causes confusion.Password number is also according to UID numerical generation with uniqueness, so that making password number also has uniquely Property, there are unique card number and password number to generate ideal money card, double shield ideal money card is uniquely, to improve virtual The uniqueness and stability of money card.
Wherein, the behavioural information includes user information, timestamp information and ideal money numerical information, and step S1 is specific Including step S11~S13:
After the behavioural information that S11, acquisition user input, in conjunction with user information, timestamp information, ideal money numerical information Event description file is generated with the first predetermined manner.
S12, event description file is encrypted using asymmetric encryption mode, and obtains encrypted description file First MD5 value.
S13, card number of the long number as ideal money card is obtained from the first MD5 value according to the second predetermined manner.
The behavioural information includes user information, timestamp information, ideal money numerical information and game ratings etc., described User information includes the essential information of user, such as account information;The ideal money numerical information is that user needs conversion more The information of few currency, for example an ideal money card is generated using 500 diamond currency.After obtaining above-mentioned behavioural information, knot It closes behavioural information and the first predetermined manner generates event description file, for example user wants to generate virtually using 500 diamond currency Money card, the then mode for generating event description file are as follows: when certain user is in using how many diamond currency generation one Ideal money card.Event description file is encrypted using asymmetric encryption mode, and obtains encrypted description file First MD5 value, the numerical value that the first MD5 value of acquisition is one 32.Multidigit is obtained from the first MD5 value according to the second predetermined manner Card number of the number as ideal money card, for example increase beginning mark before 32 numerical value, such as alphabetical " zs ", it generates The card number of one ideal money card;Or only obtain first 16 of numerical value of 32, be further added by beginning mark, generate one it is virtual The card number of money card.In event description file, executing ideal money card twice in the same time by a user is almost It is impossible, therefore the first MD5 value obtained is uniquely, so the card number generated is also unique, and to pass through above-mentioned side Formula is simply easily achieved, and reaches good effect.
It is further used as preferred embodiment, further includes verifying card number step, the verifying card number step are as follows:
A1, after obtaining the card number information that user inputs, judge whether the digit length of card number information meets the requirements, and sentencing It is disconnected when meeting the requirements, the 2nd MD5 value is generated in conjunction with card number information and third predetermined manner.
A2, comparison judges whether the first MD5 value and the 2nd MD5 value are identical, and when both determining identical, judgement is inputted Card number information it is effective.
When user uses ideal money card, the card number information of ideal money card is inputted in gaming, game first judges defeated Whether the length of the card number information entered meets the requirements, if so, executing following step;Otherwise, directly displaying card number information has Accidentally.There is card number information to can get the first MD5 value;The 2nd MD5 value is generated in conjunction with card number information and third predetermined manner, specifically: Card number information is redescribed according to third predetermined manner, derives the corresponding event description file of the card number information, then by Event description file obtains the 2nd MD5 value.Judge whether the first MD5 value and the 2nd MD5 value are identical, if they are the same, then can determine that this Card number information is effectively, to prevent the information of user's input error, improve the safety of data.
It is further used as preferred embodiment, is further included the steps that using ideal money card, specifically:
B1, after determining that the card number information of input is effective, the ideal money number of the ideal money card is obtained according to card number information Value.
B2, judge whether the monetary value of consumption is greater than the ideal money numerical value of ideal money card, if so, prompt consumption is not Success;Conversely, prompt input password.
B3, judge whether the password of input is correct according to password number, if correctly, prompting to consume successfully, and accordingly more The ideal money numerical value of new ideal money card;Conversely, prompt cipher mistake.
Record has ideal money numerical value in the ideal money card, after user is consumed using ideal money, judgement Whether the monetary value for needing to consume is greater than the ideal money numerical value of ideal money card, if so, sphere of consumption is had exceeded, it can not Consumption;Conversely, can then consume, and input password being prompted, after user inputs correct password, game, which can be shown, is consumed successfully, The ideal money numerical value in ideal money card is updated simultaneously.
The above method generates the card number of ideal money according to unique first MD5 value, to obtain unique card number.Together When, UID numerical value is obtained using hash algorithm, and according to the password number of UID numerical generation ideal money card, to obtain unique Password number, then ideal money card is generated by card number and password number, prevents duplicate ideal money card, improve game Stability.
Embodiment two
As shown in Fig. 2, present embodiments providing a kind of generation system of ideal money data, comprising:
Card number generation module obtains the first MD5 value for obtaining the behavioural information of user's input, and according to behavioural information Afterwards, the card number of ideal money card is generated according to the first MD5 value;
Secret generation module, for obtaining UID numerical value using hash algorithm, and according to UID numerical generation ideal money card Password number;
Money card generation module, card number and password number for combining ideal money card generate ideal money card.
It is further used as preferred embodiment, the behavioural information includes user information, timestamp information and virtual goods Coin numerical information, the card number generation module include file generating unit, MD5 value generation unit and card number generation unit;
The file generating unit is used for pre- in conjunction with user information, timestamp information, ideal money numerical information and first If mode generates event description file;
The MD5 value generation unit is used to encrypt event description file using asymmetric encryption mode, and obtains First MD5 value of encrypted description file;
The card number generation unit is used to obtain long number as virtual goods from the first MD5 value according to the second predetermined manner The card number of coin card.
It is further used as preferred embodiment, further includes card number authentication module, the card number authentication module includes length Judging unit and MD5 value judging unit;
After the length determining unit is used to obtain the card number information of user's input, judge that the digit length of card number information is It is no to meet the requirements, and when judgement meets the requirements, the 2nd MD5 value is generated in conjunction with card number information and third predetermined manner;
The MD5 value judging unit is being determined for comparing judge whether the first MD5 value and the 2nd MD5 value are identical When the two is identical, determine that the card number information of input is effective.
Above system generates the card number of ideal money card according to unique first MD5 value, and according to unique UID number Value generates the password number of ideal money card, then generates ideal money card by card number and password number, unique virtual to obtain Money card prevents duplicate ideal money card, improves the stability of the ideal money data of game.
Embodiment three
Present embodiments provide a kind of computer code automatically generating device, including memory and processor, the storage Device is for storing at least one program, and the processor is for loading at least one described program to execute above-mentioned method.
A kind of computer code automatically generating device of the present embodiment can be performed provided by embodiment of the present invention method one It is corresponding to have this method for a kind of generation method of ideal money data, any combination implementation steps of executing method embodiment Function and beneficial effect.
Example IV
A kind of storage medium is present embodiments provided, wherein being stored with the executable instruction of processor, the processor can The instruction of execution is when executed by the processor for executing above-mentioned method.
A kind of ideal money number provided by embodiment of the present invention method one can be performed in a kind of storage medium of the present embodiment According to generation method, any combination implementation steps of executing method embodiment, have the corresponding function of this method and beneficial to effect Fruit.
It is to be illustrated to preferable implementation of the invention, but the invention is not limited to the implementation above Example, those skilled in the art can also make various equivalent variations on the premise of without prejudice to spirit of the invention or replace It changes, these equivalent deformations or replacement are all included in the scope defined by the claims of the present application.

Claims (10)

1. a kind of generation method of ideal money data, which comprises the following steps:
The behavioural information of user's input is obtained, and after obtaining the first MD5 value according to behavioural information, is generated according to the first MD5 value empty The card number of quasi- money card;
UID numerical value is obtained using hash algorithm, and according to the password number of UID numerical generation ideal money card;
Ideal money card is generated in conjunction with the card number and password number of ideal money card.
2. a kind of generation method of ideal money data according to claim 1, which is characterized in that the behavioural information packet Include user information, timestamp information and ideal money numerical information, it is described that first MD5 value this step is obtained according to behavioural information Suddenly, specifically:
Event description file is generated in conjunction with user information, timestamp information, ideal money numerical information and the first predetermined manner;
Event description file is encrypted using asymmetric encryption mode, and obtains the first MD5 of encrypted description file Value.
3. a kind of generation method of ideal money data according to claim 2, which is characterized in that described according to first MD5 value generates the step for card number of ideal money card, specifically:
Card number of the long number as ideal money card is obtained from the first MD5 value according to the second predetermined manner.
4. a kind of generation method of ideal money data according to claim 3, which is characterized in that further include verifying card number Step, the verifying card number step are as follows:
After the card number information for obtaining user's input, judge whether the digit length of card number information meets the requirements, and meet in judgement It is required that when, the 2nd MD5 value is generated in conjunction with card number information and third predetermined manner;
Comparison judge whether the first MD5 value and the 2nd MD5 value identical, and determine the two it is identical when, determine input card number Information is effective.
5. a kind of generation method of ideal money data according to claim 4, which is characterized in that further include using virtual The step of money card, specifically:
After determining that the card number information of input is effective, the ideal money numerical value of the ideal money card is obtained according to card number information;
Judge whether the monetary value of consumption is greater than the ideal money numerical value of ideal money card, if so, prompt consumption is unsuccessful;Instead It, prompts input password;
Judge whether the password of input is correct according to password number, if correctly, prompting to consume successfully, and update virtual goods accordingly The ideal money numerical value of coin card;Conversely, prompt cipher mistake.
6. a kind of generation system of ideal money data characterized by comprising
Card number generation module, for obtain user input behavioural information, and according to behavioural information obtain the first MD5 value after, root The card number of ideal money card is generated according to the first MD5 value;
Secret generation module, for obtaining UID numerical value using hash algorithm, and according to the close of UID numerical generation ideal money card Code number;
Money card generation module, card number and password number for combining ideal money card generate ideal money card.
7. a kind of generation system of ideal money data according to claim 6, which is characterized in that the behavioural information packet User information, timestamp information and ideal money numerical information are included, the card number generation module includes file generating unit, MD5 It is worth generation unit and card number generation unit;
The file generating unit is used in conjunction with the default side of user information, timestamp information, ideal money numerical information and first Formula generates event description file;
The MD5 value generation unit is used to encrypt event description file using asymmetric encryption mode, and obtains encryption First MD5 value of description file afterwards;
The card number generation unit is used to obtain long number as ideal money card from the first MD5 value according to the second predetermined manner Card number.
8. a kind of generation system of ideal money data according to claim 7, which is characterized in that further include card number verifying Module, the card number authentication module include length determining unit and MD5 value judging unit;
After the length determining unit is used to obtain the card number information of user's input, judge whether the digit length of card number information accords with It closes and requires, and when judgement meets the requirements, generate the 2nd MD5 value in conjunction with card number information and third predetermined manner;
The MD5 value judging unit is determining the two for comparing judge whether the first MD5 value and the 2nd MD5 value are identical When identical, determine that the card number information of input is effective.
9. a kind of computer code automatically generating device, which is characterized in that including memory and processor, the memory is used for At least one program is stored, the processor requires any one of 1-5 institute for loading at least one described program with perform claim State method.
10. a kind of storage medium, wherein being stored with the executable instruction of processor, which is characterized in that the processor is executable Instruction be used to execute such as any one of claim 1-5 the method when executed by the processor.
CN201910097698.6A 2019-01-31 2019-01-31 A kind of generation method, system, device and the storage medium of ideal money data Pending CN109818750A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910097698.6A CN109818750A (en) 2019-01-31 2019-01-31 A kind of generation method, system, device and the storage medium of ideal money data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910097698.6A CN109818750A (en) 2019-01-31 2019-01-31 A kind of generation method, system, device and the storage medium of ideal money data

Publications (1)

Publication Number Publication Date
CN109818750A true CN109818750A (en) 2019-05-28

Family

ID=66606086

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910097698.6A Pending CN109818750A (en) 2019-01-31 2019-01-31 A kind of generation method, system, device and the storage medium of ideal money data

Country Status (1)

Country Link
CN (1) CN109818750A (en)

Similar Documents

Publication Publication Date Title
US11783061B2 (en) Embedding cloud-based functionalities in a communication device
US11875344B2 (en) Cloud-based transactions with magnetic secure transmission
CN105453483B (en) For method and apparatus derived from the key based on image
US20210328806A1 (en) Data verification methods, apparatuses, and devices
US20190012672A1 (en) Method and system for enhancing the security of a transaction
CN107925572A (en) Secure binding of the software application to communicator
CN108027926A (en) The Verification System and method of payment based on service
CN106465112A (en) Offline authentication
US20150006399A1 (en) Social Media Based Identity Verification
US11979485B2 (en) Electronic device providing blockchain account information and method of operating the same
US11880832B2 (en) Method and system for enhancing the security of a transaction
US20140359730A1 (en) Input validation, user and data authentication on potentially compromised mobile devices
CN104867009A (en) Intelligent card, quota control system thereof, and quota control method thereof
CN116722990A (en) System and method for enhancing strength of encryption algorithm
CN105897417A (en) Encrypted data input method and encrypted data input device
US20200366491A1 (en) Systems and methods for cryptographic authentication of contactless cards
CN116823257A (en) Information processing method, device, equipment and storage medium
Hinterwälder et al. Efficient E-cash with Attributes on MULTOS Smartcards
CN109818750A (en) A kind of generation method, system, device and the storage medium of ideal money data
CN110313005B (en) Security architecture for device applications
US20220284178A1 (en) Techniques to automatically and securely provide sensitive data in data electronic fields
CN104980913B (en) Protect the method and terminal device of data information security in terminal device
CN106600406A (en) Transaction method and terminal thereof
CN111741115A (en) Service processing method, device and system and electronic equipment
US20210406907A1 (en) Authorization data processing for multiple issuers

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190528

WD01 Invention patent application deemed withdrawn after publication