Nothing Special   »   [go: up one dir, main page]

CN106529217B - Software license generation method and device - Google Patents

Software license generation method and device Download PDF

Info

Publication number
CN106529217B
CN106529217B CN201610972015.3A CN201610972015A CN106529217B CN 106529217 B CN106529217 B CN 106529217B CN 201610972015 A CN201610972015 A CN 201610972015A CN 106529217 B CN106529217 B CN 106529217B
Authority
CN
China
Prior art keywords
software
license
version number
information
product
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.)
Active
Application number
CN201610972015.3A
Other languages
Chinese (zh)
Other versions
CN106529217A (en
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.)
BEIJING VSETTAN DATA TECHNOLOGY CO.,LTD.
Original Assignee
Huasheng Xintai Information Industry Development 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 Huasheng Xintai Information Industry Development Co Ltd filed Critical Huasheng Xintai Information Industry Development Co Ltd
Priority to CN201610972015.3A priority Critical patent/CN106529217B/en
Publication of CN106529217A publication Critical patent/CN106529217A/en
Application granted granted Critical
Publication of CN106529217B publication Critical patent/CN106529217B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/10Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
    • G06F21/105Arrangements for software license management or administration, e.g. for managing licenses at corporate level
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/10Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
    • G06F21/107License processing; Key processing
    • G06F21/1075Editing

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Technology Law (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Storage Device Security (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present invention provides a kind of software license generation method and device, wherein the described method includes: obtaining the License Info of software, the License Info includes the product information and authorization message of the software;Determine the data format of software license;According to the version number of software license described in the obtaining product information of the software;The software license of the data format is generated according to the License Info and the version number, the software license includes magic number, the version number and authorization sequence number.The present invention can determine the version number of software license according to the product information of software, and the data format for providing various software licensing is available, so that between different software products, it can be according to the association between software product, or the update status of software product itself, the flexible version number for determining software license, so that the licensing between the software of like products line can facilitate the maintenance upgrade of subsequent licensing with flexible expansion.

Description

Software license generation method and device
Technical field
The present invention relates to field of cryptography, more particularly to a kind of software license generation method and device.
Background technique
Software license is the right for providing to use software (or its source code) with restricted software user, Yi Jigui Determine software author's obligation.Under normal conditions, the software product of commercial use is only obtaining its software developer or confession After the software license for answering quotient to provide, ability normal use, and enjoy the value-added service that software developer or supplier provide.
In traditional business software permission field, mostly use the text file of fixed format as software licensing information Carrier software is authorized, when a software product simultaneously have multiple product lines when, widespread practice is for each software Product respectively provides a kind of software license of format, for example, there is a plurality of product line of the same series in certain company, A product, B are produced Product, C product need to make the software of different-format for each software product due to having a certain difference property between each product License passport, the upgrade maintenance of the only software license certificate in later period brings big inconvenience in this way, and in the production in later period In terms of versatility between the extension of product line and product, there is also very big deficiencies.
Summary of the invention
Based on this, it is necessary to for the software license for needing to make different-format between different software product, be unfavorable for The upgrade maintenance problem of later period software license provides a kind of software license generation method and device.
To reach goal of the invention, a kind of software license generation method is provided, which comprises
The License Info of software is obtained, the License Info includes the product information and authorization message of the software;
Obtain the data format of software license;
According to the version number of software license described in the obtaining product information of the software;
The software license of the data format, the software license are generated according to the License Info and the version number Card includes magic number, the version number and authorization sequence number.
The version number includes major version number and secondary version number in one of the embodiments, described according to the software Product information the step of determining the version number of the software license include:
Judge whether the software is upgrading products;
If the software is not upgrading products, the version of the software license is distributed according to the product information of the software This number;
If the software is upgrading products, the major version number of original software product software license of the software is obtained And secondary version number, and the software of original software product according to more new information, the software in the product information of the software The major version number and secondary version number of licensing determine the major version number and secondary version number of the software license of the software.
The License Info further includes the customer information for being licensed client in one of the embodiments, client's letter Breath includes software installation environment and subscriber identity information.
The software license further includes extended attribute domain in one of the embodiments, and the extended attribute domain includes Data field, the data field is for storing the product information, the authorization message, the software installation environmental information and described The one of which or any combination of subscriber identity information.
The software license further includes encrypted data fields in one of the embodiments, and the encrypted data fields are used for Store the encrypted product information, the authorization message, the software installation environmental information and the subscriber identity information One of which or any combination.
The software license further includes signed data domain in one of the embodiments, and the signed data domain is used for The product information, the authorization message, the software installation environmental information and the client after storing execution word signature The one of which or any combination of identification information.
Software license generation method provided by the present invention can determine software license according to the product information of software Version number so that can be according to the update of association or software product itself between software product between different software products Situation, the flexible version number for determining software license, expands the licensing between the software of like products line flexibly Exhibition, facilitates the maintenance upgrade of subsequent licensing.
Software license generation method provided by the present invention in one of the embodiments, by by software license Version number be divided into major version number and secondary version number, the case where wherein major version number is changed greatly for the update of software, and secondary Version number is used for the lesser situation of more new change of software, further improves the scalability of software license, facilitates subsequent Licensing maintenance upgrade.
The present invention also provides a kind of software license generating means, comprising:
License Info obtains module, and for obtaining the License Info of software, the License Info includes the production of the software Product information and authorization message;
Data format determining module, for determining the data format of software license;
Version number's determining module, the version number for the software license according to the obtaining product information of the software;
Licensing generation module, for generating the software of the data format according to the License Info and the version number Licensing, the software license include magic number, the version number and authorization sequence number.
The version number includes major version number and secondary version number in one of the embodiments, and the version number determines mould Block includes:
Judging unit, for judging whether the software is upgrading products;
Version number's allocation unit, for being believed according to the product of the software when judging the software not is upgrading products Breath distributes the major version number and secondary version number of the software license;
Version number's updating unit, for when judging the software is upgrading products, obtaining original software of the software The major version number and secondary version number of product software licensing, and according to the more new information, described in the product information of the software The major version number and secondary version number of the software license of original software product of software, determine the software license of the software Major version number and secondary version number.
The License Info of the software further includes the customer information for being licensed client in one of the embodiments, described Customer information includes software installation environmental information and subscriber identity information.
The data lattice that the licensing generation module is generated according to the License Info in one of the embodiments, The software license of formula further includes extended attribute domain, and the extended attribute domain includes data field;The licensing generation module, also Include:
Extended attribute domain generation unit, for storing the product information, the authorization message, the software installation environment The one of which or any combination of information and the subscriber identity information.
The data lattice that the licensing generation module is generated according to the License Info in one of the embodiments, The software license of formula further includes encrypted data fields;The licensing generation module, further includes:
Encrypted data fields generation unit, for storing the encrypted product information, the authorization message, the software The one of which or any combination of installation environment information and the subscriber identity information.
The data lattice that the licensing generation module is generated according to the License Info in one of the embodiments, The software license of formula further includes signed data domain;The licensing generation module, further includes:
Signed data domain generation unit, for storing execution word signature after the product information, the authorization message, The one of which or any combination of the software installation environmental information and the subscriber identity information.
Software license generating means provided by the present invention can determine software license according to the product information of software Version number, and the data format for providing various software licensing is available, so that being capable of root between different software products According to the update status of association or software product itself between software product, the flexible version number for determining software license makes The licensing obtained between the software of like products line can facilitate the maintenance upgrade of subsequent licensing with flexible expansion.
Software license generating means provided by the present invention in one of the embodiments, by by software license Version number be divided into major version number and secondary version number, the case where wherein major version number is changed greatly for the update of software, and secondary Version number is used for the lesser situation of more new change of software, further improves the scalability of software license, facilitates subsequent Licensing maintenance upgrade.
Detailed description of the invention
Fig. 1 is the flow chart of the software license generation method in one embodiment;
Fig. 2 is the flow chart of the software license generation method in another embodiment;
Fig. 3 is the flow chart of the software license generation method in another embodiment;
Fig. 4 is the flow chart of the software license generation method in further embodiment;
Fig. 5 is the flow chart of the software license generation method in further embodiment;
Fig. 6 is the structure chart of the software license generating means in one embodiment;
Fig. 7 is the structure chart of the software license generating means in another embodiment;
Fig. 8 is the software license generating process schematic diagram in another embodiment.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, right with reference to the accompanying drawings and embodiments Invention software licensing generation method and device are further elaborated.It should be appreciated that specific reality described herein Example is applied only to explain the present invention, is not intended to limit the present invention.
Fig. 1 be one embodiment in software license generation method flow chart, as Fig. 1 be shown in software license Generation method includes:
Step S10, obtains the License Info of software, and the License Info includes the product information and authorization letter of the software Breath.
Specifically, the product information of the software includes that producer, supplier, software product title etc. need that software is added The content of one of which or any combination in licensing.
The authorization message, including license the time limit, software use scope (such as licenses region, authorizes client's model Enclose) etc. need to be added the content of one of which or any combination in software license.
Step S20 determines the data format of required software license.
Specifically, the data format is arrangement of the various information datas in software license in software license The formats such as display mode, such as it is software product title that data format, which defines first information data of software license, then The position of first information of the data format must be filled with the software product name data of text or specified format.
In one embodiment, data format has default template and customized template, can press the License Info It is flexibly embodied according to default template or customized template defined form.
Step S30, according to the version number of software license described in the obtaining product information of the software.
Specifically, the version number of the software license is determined according to the product information of software, it can be by the same product The multiple software product of line, or belong to the mutual related software product or same software product of different production lines Update, upgrading etc., the definition of version number is carried out according to preset mode.
Step S40 generates the software license of the data format according to the License Info and the version number, described Software license includes magic number, the version number and authorization sequence number.
Specifically, the present invention can be raw according to the License Info to keep the use scope of the licensing generated more flexible It is various to be permitted in the default template of the data format at the software license of the data format of default template or customized template Can information format and permutation and combination be general format, only need to according to the format of default add information;The data The customized template of format according to the feature or actual demand of product, can then carry out format and the arrangement of License Info It is customized, so that the software license generated more meets the feature of product or meets specific demand.
The software license includes magic number, version number and authorization sequence number.
Wherein, magic number is the mark positioned at each software license most leading portion, for determining issuing for the software license Person.When using software license, magic number is parsed first, if the issuer inaccuracy that magic number determines, stops into one The parsing of step.
For convenience of understanding, a specific example of magic number (MagicNumber) is provided are as follows:
MagicNumber:='V''L', (0x564C)
In this example embodiment, V is the abbreviation of the issuer of licensing, and L is the abbreviation of License, and (0x564C) is VL's ASCII coding.
Wherein, version number (Version Number) is the identification number of version, makes whether user understands used software For newest version and function provided by it etc..In general, each version number can be divided into major version number and time version This number two parts, such as V4.0, major version number are 4, secondary version number 0.
For convenience of understanding, a specific example of version number (Version) is provided are as follows:
Version:=MajorVersionMinorVersion
MajorVersion:=VersionNumber
MinorVersion:=VersionNumber
VersionNumber:=Int32
In this example embodiment, version number is composed of major version number and secondary version number, and 8 after following magic number closely byte determines Major version number and secondary version number, major version number and secondary version number use an Int32 (small end) to store respectively.
Wherein, authorization sequence number is the unique identification code generated by encryption, the UUID tool provided usually using JDK The authorization sequence number is generated, for guaranteeing the uniqueness of authorization sequence number.
For convenience of understanding, a specific example of authorization sequence number (SerialNumber) is provided are as follows:
SerialNumber:=UUID (Byte8*36),
In this example embodiment, the number of License is used to store using 36 bytes, the number of the License is authorization Sequence number.
Software license generation method provided by the present embodiment, can be by providing the side of default template or customized template Formula, to provide the data format of flexible licensing, and can be according to the product information of software product, flexible setting as needed Version number, so that dilatation and the upgrade maintenance in licensing later period of the software license ultimately produced convenient for product.
Fig. 2 is the flow chart of the software license generation method in another embodiment, software license as shown in Figure 2 Generation method includes:
Step S10, obtains the License Info of software, and the License Info includes the product information and authorization letter of the software Breath.
Step S20 determines the data format of software license.
Step S31 judges whether the software is upgrading products according to the product information, if it is not, step S32 is met, if It is to skip to step S32 '.
Specifically, the version information of product is generally included in the product information that step S10 is obtained, when software product is to update When product, there is continuity between version information and the version information of its product before updating;When software product is new product When, it generally can also be numbered, i.e., may determine that from the product information of software product described from 1.0 etc. in product version information Whether software is upgrading products.
When a software product is new product, there is no the comparison of the existing product with software product, the software products It is not upgrading products.
When a software product is not new product, the update of software product is carried out on the basis of being included in existing product Partial function the change of lesser software product such as perfect and when there are larger changes for the implementation of function of software product The upgrading that software product is carried out when dynamic.According to actual demand, self-defining is carried out to the update of software product.
Step S32 determines the major version number and secondary version number of the software license according to the product information of the software.
When software product is new product, setting for version number can be carried out according to the long-range developmental program of the new product It is fixed.
The major version number and secondary version number can voluntarily provide the composition of version number's byte length and number or letter Mode etc..
Step S32 ', according in the product information of the software more new information, before the software upgrading product software The major version number and secondary version number of licensing determine the major version number and secondary version number of the software license of the software.
Specifically, the update change such as software product is smaller, only secondary version number can be changed;When software product more It newly changes larger, then major version number is changed, to be synchronized with product, conducive to the later maintenance of licensing.
In one embodiment, it manages and maintains for convenience of to the software license progress later period, is produced according to software The feature that product update, can change the secondary version number of the software license of the software product of update, major version number is motionless;It will The major version number of the software license of the software product of upgrading is changed, and secondary version number is motionless.
Step S40 generates the software license of the data format, the software license packet according to the License Info Include magic number, the version number and authorization sequence number.
Software license generation method provided by the present embodiment can be to new software according to the product information of software product Product, smaller change update software product and larger change upgrading software product, flexible setting key plate sheet as needed Number and secondary version number embody so that dilatation and the liter in licensing later period of the software license ultimately produced convenient for product Grade maintenance.
Fig. 3 is the flow chart of the software license generation method in another embodiment, software license as shown in Figure 3 Generation method includes:
Step S10a, obtains the License Info of software, and the License Info includes the product information of the software, authorization letter Breath and customer information, the customer information include software installation environment and subscriber identity information.
Specifically, the software installation environment is the installation environments information such as the operating system environment of runs software, the visitor The information such as family identification information, including customer name, project name, computer terminal mark, operator's mark, can according to need spirit Setting living.
Step S20a determines the data format of software license.
Step S30a determines the version number of the software license according to the product information of the software.
Step S40a generates the software license of the data format, the software license according to the License Info It may include magic number, the version number, authorization sequence number, extended attribute domain, encrypted data fields and signed data domain.
Specifically, the extended attribute domain includes data field, by the product information, the authorization message, the software The one of which or any combination of installation environment information and the subscriber identity information are stored in the data field.To selected When authorization message is stored, need according to format as defined in selected default template or customized template, by specific information It inserts in the data field in specific extended attribute domain, to generate the data field for meeting default template or customized exemplary format.
By the product information, the authorization message, the software installation environmental information and the subscriber identity information The encrypted data fields are stored in after the encryption of one of or any combination.The process that authorization message is encrypted can incite somebody to action Authorization message is completed together during being stored in encrypted data fields, authorization message can also be executed using external service program and added After close, encrypted authorization message is directly stored further according to the format of encrypted data fields.Sets itself is according to demand It can.
By the product information, the authorization message, the software installation environmental information and the subscriber identity information The signed data domain is stored in after one of or any combination storing execution word signature.It is identical as encrypted data fields, institute The signed data domain stated can execute together number label by selected authorization message during being stored in signed data domain It stores after name process, after external service program completion digital signature can also be used, will be executed according still further to the format in signed data domain Data after digital signature are stored.
Above-mentioned extended attribute domain, encrypted data fields and signed data domain can be used in any combination.
Storage content in the data field be it is non-encrypted can public information, such as product information, the encryption data Storage content in domain be encryption can not public information, such as authorize time limit or scope of authority information, the signed data domain In storage content be also encrypted, and need the not ostensible information that authenticates.
Further, the mode for freely selecting public private key pair can be used in the encryption information, reaches higher confidentiality Energy.
Preferably to express above content, a specific example in extended attribute domain (popertiesPhrase) is provided Are as follows:
PopertiesPhrase:=PropertiesPhraseDataLengthPropertiesHea dPropertyIt em*
PropertiesPhraseDataLength:=Int32
PropertiesHead:=PropertiesCount
PropertiesCount:=Int32
PropertyItem:=PropertyKeyEntryPropertyValueEntry
PropertyKeyEntry:=StringEntry
StringEntry:=StringLength Byte8*
StringLength:=Int32
PropertyValueEntry:=StringEntry
StringEntry:=StringLength Byte8*
StringLength:=Int32
Wherein, extended attribute domain (popertiesPhrase) is by extended attribute numeric field data length (PropertiesPhraseDataLength), Attribute domain head (PropertiesHead) and 0 arrives multiple data fields (PropertyItem) it forms.Extended attribute numeric field data length (PropertiesPhraseDataLength) uses one Int32 stores the byte length of extended attribute domain overall data, and Attribute domain head (PropertiesHead) use one Int32 stores the number (PropertiesCount of data Domain Properties member
);Data field is made of 0 or multiple attribute members (PropertyItem), and each attribute member is closed comprising Attribute domain The entity PropertyValueEntry of key word entity (PropertyKeyEntry) and Attribute domain keyword respective value, PropertyKeyEntry and PropertyValueEntry entity all employs an Int32 to store the byte long of entity Degree, followed by be entity byte stream.
Provide a specific example of encrypted data fields (EncryptedLicensePharse) are as follows:
EncryptedLicensePharse:=EncryptedDataLength Byte8*
EncryptedDataLength:=Int32
In this example embodiment, the encryption number that encrypted data fields (EncryptedLicensePharse) is 8 bits is provided first According to byte length (EncryptedDataLength Byte8*), and store using an Int32 byte of encrypted data fields Length (EncryptedDataLength), what is and then stored below is the byte data of encryption data.
Provide a specific example in signed data domain (SignLicensePharse) are as follows:
SignLicensePharse:=SignDataLength Byte8*
SignLicensePharse:=Int32
In this example embodiment, the signed data byte that signed data domain (SignLicensePharse) is 8 bits is provided first Length (SignDataLength Byte8*), and store using an Int32 byte length in signed data domain (SignLicensePharse), what is and then stored below is the byte data of signed data.
Software license generation method provided by the present embodiment, by product information in License Info, the authorization message, The one of which or any combination of the software installation environmental information and the subscriber identity information, are stored respectively according to demand In extended attribute domain, encrypted data fields and signed data domain, the data in the extended attribute domain can arbitrarily add according to demand Add and extend, the data of storage can be public data or encrypted data, so that the data content of licensing storage is flexible It is changeable;The encrypted data fields provide safer data encryption storage, so that the data of licensing are safer;It is described Data in signed data domain enable the data stored in licensing directly to carry out signature verification, further improve described The safety of data in licensing.
Fig. 4 is the flow chart of the software license generation method in further embodiment, software license as shown in Figure 4 Generation method includes:
Step S11 obtains the product information and authorization message of software.
Step S12 judges whether to need customer information, if so, step S13 is met, if it is not, skipping to step S16.
Step S13 judges whether to need software installation environmental information, if meeting step S13 ', if it is not, skipping to step S14.
Step S13 ' obtains software installation environmental information.
Step S14 obtains subscriber identity information.
Step S15 judges whether the data for needing to merge the software installation environmental information and subscriber identity information, if It is to meet step S15 ', if it is not, meeting step S16.
Step S15 ' merges the data of the software installation environmental information and subscriber identity information.
Specifically, the various information that will acquire carry out data merging, so that the information obtained becomes machine and can recognize Data.
Step S16 verifies the legitimacy of the data, exports school
Test result.
Specifically, in default template and customized template, preferably to make software license that there are uniformity, different moulds The fixation position of version needs to place fixed presupposed information data, when the data got are defeated not in accordance with preset fixed position It is fashionable, it is illegal to be verified as data.
Step S17 judges whether the check results of the data are legal, if so, step S18 is met, if it is not, return step S11。
Step S18 generates License Info.
Software license generation method provided by the present embodiment is obtaining product information and customer information and is generating license During information, verified by the legitimacy to input data, so that the software license uniform format ultimately produced, Dilatation and the upgrade maintenance in licensing later period convenient for product.
Fig. 5 is the flow chart of the software license generation method in further embodiment, software license as shown in Figure 5 Generation method includes:
Step S40 obtains License Info and the version number of software product.
Step S41 judges whether to select customized template, if so, step S42 is met, if it is not, skipping to step S44.
Step S42 judges whether the generation for supporting the customized template, if so, step S44 is skipped to, if it is not, connecing step S43。
Step S43 uses default template.
Step S44 judges whether to include extended attribute domain, if so, meeting step S45.If it is not, skipping to step S46.
Step S45 determines the storage content in extended attribute domain.
Step S46 judges whether to include encrypted data fields, if so, step S47 is met, if it is not, skipping to step S48.
Step S47 determines the storage content of encrypted data fields.
Step S48 judges whether to include signed data domain, if so, step S49 is met, if it is not, skipping to step S49 '.
Step S49 determines the storage content in signed data domain.
Step S49 ' generates software license.
Specifically, the information such as law acknowledge can be added during ultimately producing software license.
Software license generation method provided by the present embodiment, by product information in License Info, the authorization message, The one of which or any combination of the software installation environmental information and the subscriber identity information, are stored respectively according to demand In extended attribute domain, encrypted data fields and signed data domain, so that the software license ultimately produced is convenient for the dilatation of product, with And the upgrade maintenance in licensing later period.
The following are the structural schematic diagram of software license generating means provided by the present invention, filled provided by each embodiment Setting is device corresponding to sending method provided by the present invention, each embodiment corresponding to heretofore described method it is detailed Thin description content is suitable for corresponding device accordingly, repeats no more.
Fig. 6 is the structure chart of the software license generating means in one embodiment, and software license as shown in FIG. 6 is raw Include: at device
License Info obtains module 10, and for obtaining the License Info of software, the License Info includes the software Product information and authorization message.In one embodiment, License Info obtains License Info of the module 10 for the software of acquisition It can also further comprise the customer information for being licensed client, the customer information includes software installation environmental information and customer ID Information.
Data format determining module 20, for determining the data format of software license.Specifically, the data format can To include default exemplary format or customized exemplary format.
Version number's determining module 30, the version for the software license according to the obtaining product information of the software Number.The version number may include major version number and secondary version number.
Specifically, version number's determining module 30 is used to judge whether the software is upgrading products, if it is not, then basis The product information of the software distributes the major version number and secondary version number of the software license, if so, obtaining original software The major version number and secondary version number of product software licensing, and according to the more new information, original in the product information of the software The major version number and secondary version number of the software license of software product, determine the software license of the software major version number and Secondary version number.
Licensing generation module 40, for generating the soft of the data format according to the License Info and the version number Part licensing, the software license include magic number, the version number and authorization sequence number.
Software license generating means provided by the present embodiment can be to new software according to the product information of software product Product, smaller change update software product and larger change upgrading software product, flexible setting key plate sheet as needed Number and secondary version number embody so that dilatation and the liter in licensing later period of the software license ultimately produced convenient for product Grade maintenance.
Fig. 7 is the structure chart of the software license generating means in another embodiment, software license as shown in Figure 7 Generating means, comprising:
License Info obtains module 10, and for obtaining the License Info of software, the License Info includes the software Product information and authorization message.In one embodiment, License Info obtains License Info of the module 10 for the software of acquisition It can also further comprise the customer information for being licensed client, the customer information includes software installation environmental information and customer ID Information.
Data format determining module 20, for determining the data format of software license.Data format determining module 20 is used It may include defaulting exemplary format and customized exemplary format in the data format of determining software license.
Version number's determining module 30, for judging whether the software is upgrading products.Wherein, version number may include master Version number and secondary version number, version number's determining module 30 include:
Judging unit, for judging whether the software is upgrading products;
Version number's allocation unit, for being believed according to the product of the software when judging the software not is upgrading products Breath distributes the major version number and secondary version number of the software license;
Version number's updating unit, for when judging the software is upgrading products, obtaining original software of the software The major version number and secondary version number of product software licensing, and according to the more new information, described in the product information of the software The major version number and secondary version number of the software license of original software product of software, determine the software license of the software Major version number and secondary version number.
Licensing generation module 40, for generating the software license of the data format, institute according to the License Info Stating software license includes magic number, the version number and authorization sequence number.
In one embodiment, the data format that licensing generation module 40 is generated according to the License Info it is soft Part licensing can further include extended attribute domain.Correspondingly, software license generating means further comprise that extension belongs to Property domain generation unit 41, for storing the product information, the authorization message, the software installation environmental information and the visitor The one of which or any combination of family identification information.
In one embodiment, the data format that licensing generation module 40 is generated according to the License Info it is soft Part licensing, can further include encrypted data fields.Correspondingly, software license generating means further comprise encryption number According to domain generation unit 42, for storing the encrypted product information, the authorization message, the software installation environmental information With the one of which or any combination of the subscriber identity information.
In one embodiment, the data format that licensing generation module 40 is generated according to the License Info it is soft Part licensing can further include signed data domain.Correspondingly, software license generating means further comprise number of signature According to domain generation unit 43, for the product information, the authorization message, the software installation after storing execution word signature The one of which or any combination of environmental information and the subscriber identity information.
Software license generating means provided by the present embodiment, by product information in License Info, the authorization message, The one of which or any combination of the software installation environmental information and the subscriber identity information, are stored respectively according to demand In extended attribute domain, encrypted data fields and signed data domain, so that the software license ultimately produced is convenient for the dilatation of product, with And the upgrade maintenance in licensing later period.
The software license generating means as provided by the embodiment of the present invention, the principle solved the problems, such as and software above-mentioned Licensing generation method is similar, therefore the implementation of software license generating means may refer to the implementation of preceding method, repetition Place repeats no more.
Fig. 8 is the software license generating process schematic diagram in another embodiment, and software license as shown in Figure 8 is raw Include: at process
Step 100, License Info is obtained.
Specifically, the License Info includes the product information and authorization message of the software, it further include being licensed client Customer information include software installation environment and subscriber identity information, above-mentioned license can be obtained according to the demand of the authorization of software and believed Cease it is therein part or all.
Step 200, the License Info is subjected to data merging according to selected data format content.
Specifically, can use default template, also can use customized template, by the above-mentioned License Info got by It is inputted according to data format as defined in default template or customized template.In embodiment as shown in the figure, each provide The template of two kinds of data formats of Properties and XML, such as wherein in the template of Properties data format, Key1= Value1 etc., for the key value title and content of the License Info that the needs that the template provides input, according to the definition of template, Different information has different data type requirements, needs defeated according to the sequence of information keywords value and format as defined in template Enter, just can guarantee that subsequent data verification passes through.The version of XML format is identical as Properties, repeats no more.
Step 300, the data after the merging are generated has magic number, authorization sequence number, version number, extended attribute domain, The software license of encrypted data fields and signed data domain.
Specifically, in this step will after the License Info that step 200 inputs has input customized template or default template The information of step 200, whether need to encrypt according to data etc., it is encapsulated into the extended attribute domain of licensing respectively (PropertiesPhrase), encrypted data fields (EncryptedLicensePharse) and signed data domain (SignLicensePharse) in, with magic number (MagicNumber), version number (Version) and authorization sequence number (SerialNumber) together, software license is formed.
Step 400, after law acknowledge being added, last software license is generated.
Specifically, the software license for again generating step 300, is separately added into law acknowledge and cipher text part start information With cipher text part ending message, final complete software license is formed.
Software license generating means provided by the present embodiment, by product information in License Info, the authorization message, The one of which or any combination of the software installation environmental information and the subscriber identity information, are stored respectively according to demand In extended attribute domain, encrypted data fields and signed data domain, so that the software license ultimately produced is convenient for the dilatation of product, with And the upgrade maintenance in licensing later period.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously Limitations on the scope of the patent of the present invention therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention Protect range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (12)

1. a kind of software license generation method characterized by comprising
The License Info of software is obtained, the License Info includes the product information and authorization message of the software;Wherein, described Authorization message includes licensing time limit and software use scope, and the software use scope includes licensing region and authorization Customer range;
Obtain the data format of software license;
According to the version number of software license described in the obtaining product information of the software, wherein the version number includes key plate This number and secondary version number;If the software is not upgrading products, the software is distributed according to the product information of the software and is permitted The version number that can be demonstrate,proved;If the software is upgrading products, the master of original software product software license of the software is obtained Version number and secondary version number, and according to original software product of more new information, the software in the product information of the software Software license major version number and secondary version number, determine the major version number and time version of the software license of the software Number;
The software license of the data format, the software license packet are generated according to the License Info and the version number Include magic number, the version number and authorization sequence number.
2. software license generation method according to claim 1, it is characterised in that:
The License Info further includes the customer information for being licensed client, and the customer information includes software installation environment and client Identification information.
3. software license generation method according to claim 2, it is characterised in that:
The software license further includes extended attribute domain, and the extended attribute domain includes data field, and the data field is for depositing Store up the one of which of the product information, the authorization message, the software installation environmental information and the subscriber identity information Or any combination.
4. software license generation method according to claim 2, it is characterised in that:
The software license further includes encrypted data fields, and the encrypted data fields are for storing the encrypted product letter Breath, the authorization message, the one of which or any combination of the software installation environmental information and the subscriber identity information.
5. software license generation method according to claim 2, it is characterised in that:
The software license further includes signed data domain, and the signed data domain is for described after storing execution word signature Product information, the authorization message, the one of which or any of the software installation environmental information and the subscriber identity information Combination.
6. a kind of software license generating means characterized by comprising
License Info obtains module, and for obtaining the License Info of software, the License Info includes the product letter of the software Breath and authorization message;Wherein, the authorization message includes licensing time limit and software use scope, the software use scope Including licensing region and authorization customer range;
Data format determining module, for determining the data format of software license;
Version number's determining module, the version number for the software license according to the obtaining product information of the software, wherein The version number includes major version number and secondary version number;If the software is not upgrading products, according to the product of the software Information distributes the version number of the software license;If the software is upgrading products, original software of the software is obtained The major version number and secondary version number of product software licensing, and according to the more new information, described in the product information of the software The major version number and secondary version number of the software license of original software product of software, determine the software license of the software Major version number and secondary version number;
Licensing generation module, for generating the software license of the data format according to the License Info and the version number Card, the software license include magic number, the version number and authorization sequence number.
7. software license generating means according to claim 6, it is characterised in that:
The License Info of the software further includes the customer information for being licensed client, and the customer information includes software installation environment Information and subscriber identity information.
8. software license generating means according to claim 7, it is characterised in that:
The software license for the data format that the licensing generation module is generated according to the License Info further includes expanding Attribute domain is opened up, the extended attribute domain includes data field;The licensing generation module, further includes:
Extended attribute domain generation unit, for storing the product information, the authorization message, the software installation environmental information With the one of which or any combination of the subscriber identity information.
9. software license generating means according to claim 7, it is characterised in that:
The software license for the data format that the licensing generation module is generated according to the License Info further includes adding Ciphertext data domain;The licensing generation module, further includes:
Encrypted data fields generation unit, for storing the encrypted product information, the authorization message, the software installation The one of which or any combination of environmental information and the subscriber identity information.
10. software license generating means according to claim 7, it is characterised in that:
The software license for the data format that the licensing generation module is generated according to the License Info further includes label Name data field;The licensing generation module, further includes:
Signed data domain generation unit, for the product information, authorization message, described after storing execution word signature The one of which or any combination of software installation environmental information and the subscriber identity information.
11. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists In the step of processor realizes any one of claims 1 to 5 the method when executing the computer program.
12. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of any one of claims 1 to 5 the method is realized when being executed by processor.
CN201610972015.3A 2016-10-28 2016-10-28 Software license generation method and device Active CN106529217B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610972015.3A CN106529217B (en) 2016-10-28 2016-10-28 Software license generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610972015.3A CN106529217B (en) 2016-10-28 2016-10-28 Software license generation method and device

Publications (2)

Publication Number Publication Date
CN106529217A CN106529217A (en) 2017-03-22
CN106529217B true CN106529217B (en) 2019-09-10

Family

ID=58349456

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610972015.3A Active CN106529217B (en) 2016-10-28 2016-10-28 Software license generation method and device

Country Status (1)

Country Link
CN (1) CN106529217B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106960137A (en) * 2017-03-30 2017-07-18 北京深思数盾科技股份有限公司 Matching process and system and software protective lock for digital permission management system
CN109086576A (en) * 2018-07-27 2018-12-25 迈普通信技术股份有限公司 Licensing dissemination method, License Authentication method, system and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1621992A (en) * 2004-12-20 2005-06-01 四川大学 Method for software copyright protection
CN101901324A (en) * 2004-11-18 2010-12-01 康坦夹德控股股份有限公司 The method of the content consumption at licence center, system and equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100343775C (en) * 2004-05-25 2007-10-17 华为技术有限公司 Licensing file generating method, software product protection method and system
US9053482B2 (en) * 2011-05-24 2015-06-09 Amazon Technologies, Inc. Service for managing digital content licenses

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101901324A (en) * 2004-11-18 2010-12-01 康坦夹德控股股份有限公司 The method of the content consumption at licence center, system and equipment
CN1621992A (en) * 2004-12-20 2005-06-01 四川大学 Method for software copyright protection

Also Published As

Publication number Publication date
CN106529217A (en) 2017-03-22

Similar Documents

Publication Publication Date Title
US20100046749A1 (en) Content protection apparatus, and content utilization apparatus
CN112291245B (en) Identity authorization method, identity authorization device, storage medium and equipment
CN102792633B (en) Access control
US8112786B2 (en) Security policy generation
CN104463554A (en) Electronic seal achieving method and device
CN106161470B (en) A kind of authorization method, client, server and system
CN107453874A (en) Digital sealing and its generation method, service request and offer method and electronic equipment
CN112311538A (en) Identity authentication method, device, storage medium and equipment
CN106529217B (en) Software license generation method and device
Polk et al. Cryptographic algorithms and key sizes for personal identity verification
KR20190112959A (en) Operating method for machine learning model using encrypted data and apparatus based on machine learning model
CN110225028A (en) A kind of distribution anti-counterfeiting system and its method
LU101757B1 (en) Encrypted verifiable credentials
EP3335370B1 (en) Enhanced obfuscation or randomization for secure product identification and verification
JP2003233594A (en) Access right management system, access right management method, access right management program and recording medium recording access right management program
CN115766270A (en) File decryption method, file encryption method, key management method, device and equipment
JP4959152B2 (en) Authentication system and authentication information delegation method in the same system
US10680826B2 (en) Secure product identification and verification
JP4948789B2 (en) Authentication information delegation method and security device in authentication system
JP2006185227A (en) Authentication system, authentication information transfer method for same system, and security device
CN117744158B (en) Access method, device, equipment and medium based on industrial Internet identification
CN107344454A (en) Digital sealing generation method, service request and offer method and electronic equipment
CN106446701A (en) Credible binding method for file secret level label
CN100334831C (en) Technology of forming encryption signature and using said signature accompanied with product copy
JP2002259634A (en) Information distributing method, information transmitter, information receiver, information transmitting program, information receiving program, recording medium storing information transmitting program and recording medium storing information receiving program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210910

Address after: 100193 room 402, 4th floor, building 23, East District, yard 10, northwest Wangdong Road, Haidian District, Beijing

Patentee after: VSETTAN INFORMATION INDUSTRY DEVELOPMENT Co.,Ltd.

Patentee after: BEIJING VSETTAN DATA TECHNOLOGY Co.,Ltd.

Address before: 100192 West Zone, 10 / F, block a, No. 8 Xueqing Road (Science and technology wealth center), Haidian District, Beijing

Patentee before: VSETTAN INFORMATION INDUSTRY DEVELOPMENT Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220420

Address after: Room 403, 4th floor, building 23, East District, yard 10, Xibeiwang East Road, Haidian District, Beijing 100089

Patentee after: BEIJING VSETTAN DATA TECHNOLOGY CO.,LTD.

Address before: 100193 room 402, 4th floor, building 23, East District, yard 10, northwest Wangdong Road, Haidian District, Beijing

Patentee before: VSETTAN INFORMATION INDUSTRY DEVELOPMENT CO.,LTD.

Patentee before: Beijing Huasheng Xintai Data Technology Co., Ltd