CN106778086A - theme packet processing method and device - Google Patents

theme packet processing method and device Download PDF

Info

Publication number
CN106778086A
CN106778086A CN201611063967.XA CN201611063967A CN106778086A CN 106778086 A CN106778086 A CN 106778086A CN 201611063967 A CN201611063967 A CN 201611063967A CN 106778086 A CN106778086 A CN 106778086A
Authority
CN
China
Prior art keywords
theme bag
bag
theme
digital certificate
signature
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.)
Granted
Application number
CN201611063967.XA
Other languages
Chinese (zh)
Other versions
CN106778086B (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 Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201611063967.XA priority Critical patent/CN106778086B/en
Publication of CN106778086A publication Critical patent/CN106778086A/en
Application granted granted Critical
Publication of CN106778086B publication Critical patent/CN106778086B/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/12Protecting executable software
    • G06F21/121Restricting unauthorised execution of programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Abstract

The disclosure is directed to a kind of theme packet processing method and device, the method includes:Server is signed to the first theme bag digital certificate corresponding with the first theme bag, generates the first signature file;Server is packed to the first theme bag, digital certificate and the first signature file, generate theme bag to be downloaded, the theme bag to be downloaded is used to supply terminal downloads, signed by the first theme bag digital certificate corresponding with the first theme bag, it is tampered with the digital certificate for preventing terminal, so as to improve the credibility of theme bag.

Description

Theme packet processing method and device
Technical field
This disclosure relates to computer network security field, more particularly to a kind of theme packet processing method and device.
Background technology
Theme bag is the packet of one group of enhancement system or software interface, and theme bag is also referred to as " beautification bag, style Bag ", with the constantly improve that theme bag is ecological, starts the designer for " big shot " occur.The theme of these designers design Quality is high, and artistic feeling is strong, has saved bit by bit good acceptance of the users." bean vermicelli " for some designers occur is also begun to simultaneously, and they chase after The theme bag for asking and liking certain some designer to design.
For these reasons, name's user cheating that Separate designs teacher is turned on other designers is begun with present.Therefore, such as What all stamps the identity of oneself to the every a theme in theme market, official on the theme band that the designer for allowing makes Certification and official status can not be forged, prevent to palm off the generation of replacement event, be a technical problem urgently to be resolved hurrily.
The content of the invention
To overcome problem present in correlation technique, the disclosure to provide a kind of theme packet processing method and device.The skill Art scheme is as follows:
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of theme packet processing method, including:
First theme bag and the corresponding digital certificate of the first theme bag are signed, the first signature file is generated;
First theme bag, digital certificate and the first signature file are packed, theme bag to be downloaded is generated;
Wherein, theme bag to be downloaded is used to supply terminal downloads.
The technical scheme provided by this disclosed embodiment can include the following benefits:By to the first theme bag and should The corresponding digital certificate of first theme bag is signed, and is tampered with the digital certificate for preventing terminal, so as to improve theme bag It is credible.
Alternatively, the first theme bag and the corresponding digital certificate of the first theme bag are signed, the signature text of generation first Before part, also include:The original topic bag that designer makes is signed, the second signature file is generated;Described second is signed Name file is inserted in the original topic bag, obtains the first theme bag.Distorted such that it is able to prevent original topic to be coated with.
Alternatively, by the second signature file insertion original topic bag, obtain after the first theme bag, also include: The first theme bag is encrypted by the private key of the first theme bag, the first theme bag after being encrypted;
Accordingly, the first theme bag and the corresponding digital certificate of the first theme bag are signed, the signature text of generation first Part, including:
The first theme bag and the corresponding digital certificate of the first theme bag after to encryption, generate the first signature file.So as to May insure the security of the first theme bag.
Alternatively, the original topic bag that the first theme Bao Wei designer makes.
Alternatively, also include:It is determined that being signed to the first theme bag and the corresponding digital certificate of the first theme bag The signature algorithm for being used;
The identification information of signature algorithm is sent to terminal, the identification information of the signature algorithm is used to identify the signature calculation Method.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of theme packet processing method, including:
Theme bag to be downloaded is downloaded from server, theme bag to be downloaded includes:First theme bag, the first theme bag are corresponding Digital certificate is signed with to the first theme bag and the corresponding digital certificate of the first theme bag, the first signature for being generated File;
Using with server identical signature algorithm, the first theme bag and the corresponding digital certificate of the first theme bag are carried out Signature, generates the 3rd signature file;
If the first signature file and the 3rd signature file are differed, terminal determines the first theme bag and/or digital certificate It is tampered.
That is, if the first signature file and the 3rd signature file are differed, terminal then determines the first theme bag And/or digital certificate is tampered, otherwise terminal determines that the first theme bag and digital certificate are not tampered with, so that it is guaranteed that theme bag and The security of digital certificate.
Alternatively, also include:Receive the identification information of the signature algorithm that the server sends;
Accordingly, using with the server identical signature algorithm, to the first theme bag and the first theme bag pair The digital certificate answered is signed, and generates the 3rd signature file, including:
Using signature algorithm corresponding to the identification information, to the first theme bag and the corresponding numeral of the first theme bag Certificate, generates the 3rd signature file.
The identification information of the signature algorithm sent by the reception server, is calculated with ensuring to be signed using identical with server Method, so as to verify whether the first theme bag and/or digital certificate are tampered.
A kind of theme bag processing unit is explained below, wherein device part is corresponding with the above method, corresponding content technology Effect is identical, will not be repeated here.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of theme bag processing unit, including:
First generation module, is configured as signing the first theme bag and the corresponding digital certificate of the first theme bag Name, generates the first signature file;
Second generation module, is configured as packing the first theme bag, digital certificate and the first signature file, generation Theme bag to be downloaded;
Wherein, the theme bag to be downloaded is used to supply terminal downloads.
Alternatively, also include:3rd generation module, is configured as signing the original topic bag that designer makes, Generate the second signature file;
Insertion module, is configured as, by the second signature file insertion original topic bag, obtaining the first theme bag.
Alternatively, also include:Encrypting module, the private key for being configured to the first theme bag is added to the first theme bag It is close, the first theme bag after being encrypted;
Accordingly, the first generation module, the first theme bag and the first theme bag correspondence after being specifically configured to encryption Digital certificate, generate the first signature file.
Alternatively, the original topic bag that the first theme Bao Wei designer makes.
Alternatively, also include:Determining module, is configured to determine that corresponding to the first theme bag and the first theme bag Digital certificate is signed used signature algorithm;
Sending module, is configured as being sent to terminal the identification information of signature algorithm, and the identification information of the signature algorithm is used In the mark signature algorithm.
According to the fourth aspect of the embodiment of the present disclosure, there is provided a kind of theme bag processing unit, including:
Download module, is configured as downloading theme bag to be downloaded from server, and the theme bag to be downloaded includes:First theme Bag, the corresponding digital certificate of the first theme bag with to the first theme bag and the first theme bag it is corresponding numeral card Book is signed, the first signature file for being generated;
Generation module, be configured as using with the server identical signature algorithm, to the first theme bag and described the The corresponding digital certificate of one theme bag is signed, and generates the 3rd signature file;
Determining module, if being configured as first signature file and the 3rd signature file is differed, it is determined that institute State the first theme bag and/or the digital certificate is tampered.
Alternatively, also include:Receiver module, by the identification information with the signature algorithm for being combined into the reception server transmission;
Accordingly, generation module, is specifically configured to using signature algorithm corresponding to identification information, to the first theme bag and The corresponding digital certificate of the first theme bag, generates the 3rd signature file.
The 5th aspect according to the embodiment of the present disclosure, there is provided a kind of theme bag processing unit, the device includes:
Processor;
Memory for storing the executable instruction of processor;
Wherein, processor is configured as:
First theme bag and the corresponding digital certificate of the first theme bag are signed, the first signature file is generated;
The first theme bag, the digital certificate and first signature file are packed, master to be downloaded is generated Topic bag, wherein, the theme bag to be downloaded is used to supply terminal downloads.
The 6th aspect according to the embodiment of the present disclosure, there is provided a kind of theme bag processing unit, the device includes:
Processor;
Memory for storing the executable instruction of processor;
Wherein, processor is configured as:
Theme bag to be downloaded is downloaded from server, theme bag to be downloaded includes:First theme bag, the first theme bag pair The digital certificate answered is signed with to the first theme bag and the corresponding digital certificate of the first theme bag, is generated First signature file;
Using with server identical signature algorithm, to the first theme bag and the corresponding digital certificate of the first theme bag Signed, generated the 3rd signature file;
If first signature file and the 3rd signature file are differed, it is determined that the first theme bag and/or The digital certificate is tampered.
The technical scheme provided by this disclosed embodiment can include the following benefits:The disclosure provides a kind of theme bag Processing method and processing device, the method includes:First theme bag digital certificate corresponding with the first theme bag is signed, it is raw Into the first signature file;First theme bag, digital certificate and the first signature file are packed, theme bag to be downloaded is generated, Theme bag to be downloaded is used to supply terminal downloads, is signed by the first theme bag digital certificate corresponding with the first theme bag Name, is tampered, with the digital certificate for preventing terminal so as to improve the credibility of theme bag.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, not The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows the implementation for meeting the disclosure Example, and it is used to explain the principle of the disclosure together with specification.
Fig. 1 is a kind of flow chart of the theme packet processing method according to an exemplary embodiment;
Fig. 2 is a kind of flow chart of the theme packet processing method according to another exemplary embodiment;
Fig. 3 is a kind of flow chart of the theme packet processing method according to another exemplary embodiment;
Fig. 4 is a kind of flow chart of the theme packet processing method according to further example embodiment;
Fig. 5 is a kind of block diagram of the theme bag processing unit according to an exemplary embodiment;
Fig. 6 is a kind of block diagram of the theme bag processing unit according to another exemplary embodiment;
Fig. 7 is a kind of block diagram of the theme bag processing unit according to another exemplary embodiment;
Fig. 8 is a kind of block diagram of the theme bag processing unit according to further example embodiment;
Fig. 9 is a kind of block diagram of the theme bag processing unit 900 according to an exemplary embodiment;
Figure 10 is a kind of block diagram of the theme bag processing unit 1000 according to an exemplary embodiment.
By above-mentioned accompanying drawing, it has been shown that the clear and definite embodiment of the disclosure, will hereinafter be described in more detail.These accompanying drawings It is not intended to limit the scope that the disclosure is conceived by any mode with word description, but is by reference to specific embodiment Those skilled in the art illustrate the concept of the disclosure.
Specific embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in implementation method do not represent all implementation methods consistent with the disclosure.Conversely, they be only with it is such as appended The example of the consistent apparatus and method of some aspects described in detail in claims, the disclosure.
Fig. 1 is a kind of flow chart of the theme packet processing method according to an exemplary embodiment, and the present embodiment is with this Theme packet processing method is applied in server illustrate.As shown in figure 1, the theme packet processing method can include it is as follows Several steps:
In step S101:First theme bag digital certificate corresponding with the first theme bag is signed, generation the One signature file;
Wherein, the first theme bag is the packet of enhancement system or software interface, also referred to as " beautification bag, style Bag " etc., the corresponding digital certificate of the first theme bag is Certificate Authority (Certificate Authority, abbreviation CA) mechanism The digital certificate promulgated by the designer of the first theme bag, the digital certificate includes:The corresponding public key of theme bag, designer one A little ostensible identity informations and theme market to signature of these information etc., usual user when the first theme bag is downloaded, Can be authenticated to CA mechanisms by digital certificate, determine whether the digital certificate is credible.However, because terminal generally is intended to First theme bag is downloaded to locally, in downloading process or after downloading, malicious person may juggle the figures certificate so that the The corresponding public key of one theme bag, some ostensible identity informations of designer and theme market are to signature of these information etc. It is tampered.For example:When the identity information of the corresponding designer of the first theme bag is tampered, in this case, user cannot be known Whom the real designer of first theme bag is, reduces the credibility of theme bag design.
Digital signature is a kind of similar common physical signature write on paper, but is the use of the skill in public key encryption field Art realization, the method for differentiating digital information.A set of digital signature generally defines two kinds of computings of complementation, and one is used to sign Name, another is used to verify.Digital signature, is exactly others hop count that cannot forge that the sender of only information could produce Word string, this hop count word string is also simultaneously the valid certificates that information authenticity is sent to the sender of information.
Therefore, in the embodiment of the present disclosure, server enters to the first theme bag digital certificate corresponding with the first theme bag Row signature, generates the first signature file, and the first theme bag and/or the corresponding digital certificate of the first theme bag are prevented by signature It is tampered.
In step s 102:First theme bag, digital certificate and the first signature file are packed, master to be downloaded is generated Topic bag, the theme bag to be downloaded is used to supply terminal downloads.
In fact, end side uses identical signature algorithm with server side, end side is according to the first theme bag and numeral Certificate can also generate a signature file, and the signature file and the first signature file that then terminal-pair is generated are compared, when When the signature file and inconsistent the first signature file that are generated, then it represents that there is malicious person to distort the first theme bag and/or number Word certificate.
The embodiment of the present disclosure provides a kind of theme packet processing method, including:To the first theme bag and the first theme bag pair The digital certificate answered is signed, and generates the first signature file;First theme bag, digital certificate and the first signature file are carried out Packing, generates theme bag to be downloaded, theme bag to be downloaded for terminal downloads, by the first theme bag and first theme Wrap corresponding digital certificate to be signed, be tampered with the digital certificate for preventing terminal, so as to improve the credibility of theme bag.
Alternatively, the first theme bag can be the original topic bag, or will be described below that designer makes Theme bag.Based on the basis of a upper embodiment, step S101 will further be refined below, specifically, Fig. 2 is root According to a kind of flow chart of the theme packet processing method shown in another exemplary embodiment, the present embodiment is with the theme packet processing method It is applied in server illustrate.As shown in Fig. 2 the theme packet processing method can include following several steps:
In step s 201:The original topic bag that designer makes is signed, the second signature file is generated;
In step S202:By in the second signature file insertion original topic bag, the first theme bag is obtained;
Illustrated with reference to step S201 and step S202, designer can by terminal by CA mechanisms be its distribute number Word certificate and original topic bag are sent to server, and the designer corresponding to theme bag can be determined by the digital certificate, Distorted to prevent original topic to be coated with, after server receives original topic bag, original topic bag can be calculated using signature Method, generate the second signature file, server will the second signature file insert original topic bag in, obtain the first theme bag, it is necessary to Illustrate, the embodiment of the present disclosure is not limited to the insertion position of the second signature file.
In step S203:First theme bag digital certificate corresponding with the first theme bag is signed, generation the One signature file;
Step S203 is identical with step S101, will not be repeated here.
Alternatively, will during second signature file inserts the original topic bag, after obtaining the first theme bag, Also include:The server is encrypted by the private key of the first theme bag to the first theme bag, after being encrypted The first theme bag;Accordingly, the server is carried out to the first theme bag and the corresponding digital certificate of the first theme bag Signature, generates the first signature file, including:Server is corresponding with the first theme bag to the first theme bag after the encryption Digital certificate, generate the first signature file.By to the first theme packet encryption, and then ensure the security of the first theme bag.
In step S204:First theme bag, digital certificate and the first signature file are packed, master to be downloaded is generated Topic bag, the theme bag to be downloaded for terminal downloads.
Step S204 is identical with step S102, will not be repeated here.
It should be noted that in the embodiment of the present disclosure, signature algorithm is Digital Signature Algorithm, the signature algorithm can be Hash algorithm, RSA signature algorithm etc., the disclosure is not limited to signature algorithm, while the embodiment of the present disclosure is to AES It is not limited.
The embodiment of the present disclosure provides a kind of theme packet processing method, is primarily due to the original master that server makes to designer Topic bag is signed, and generates the second signature file, is distorted such that it is able to prevent original topic to be coated with, and alternatively, server passes through The private key of the first theme bag is encrypted to the first theme bag, the first theme bag after being encrypted, such that it is able to Ensure the security of the first theme bag, and signed by the first theme bag digital certificate corresponding with the first theme bag Name, is tampered, with the digital certificate for preventing terminal so as to improve the credibility of theme bag.To sum up, carried by the embodiment of the present disclosure The theme packet processing method of confession, to improve the security of theme bag treatment.
Alternatively, also include:It is determined that being signed to the first theme bag and the corresponding digital certificate of the first theme bag The signature algorithm for being used;The identification information of the signature algorithm is sent to the terminal, so that the terminal uses the mark The corresponding signature algorithm of knowledge information, signs to the first theme bag and the corresponding digital certificate of the first theme bag, generation 3rd signature file.
Specifically, when server is signed and adopted to the first theme bag and the corresponding digital certificate of the first theme bag When signature algorithm is hash algorithm, then terminal is also to the first theme bag and the first theme bag pair by hash algorithm The digital certificate answered is signed, and in the case of signature algorithm identical, terminal could sign to the first signature file and the 3rd File is compared, and determines whether the first theme bag and/or the corresponding digital certificate of the first theme bag are tampered.
Fig. 3 is a kind of flow chart of the theme packet processing method according to another exemplary embodiment, the present embodiment with The theme packet processing method is applied in terminal illustrate.As shown in figure 3, the theme packet processing method can include it is as follows Several steps:
In step S301:Theme bag to be downloaded is downloaded from server, the theme bag to be downloaded includes:First theme bag, The corresponding digital certificate of first theme bag is signed with to the first theme bag digital certificate corresponding with the first theme bag, The first signature file for being generated;
Alternatively, the first theme bag can be the original topic bag that designer makes;Or, the first theme bag is to pass through What following mode was obtained:Server is signed to the original topic bag that designer makes, and generates the second signature file;Service Device inserts the second signature file in original topic bag, obtains the first theme bag, and further, the first theme bag to obtaining can To use AES, the first theme bag encrypted.
In step s 302:Using with server identical signature algorithm, to the first theme bag and the first theme bag Corresponding digital certificate is signed, and generates the 3rd signature file;
Specifically, when server is signed and adopted to the first theme bag and the corresponding digital certificate of the first theme bag When signature algorithm is hash algorithm, then terminal is also to the first theme bag and the first theme bag pair by hash algorithm The digital certificate answered is signed, and in the case of signature algorithm identical, terminal could sign to the first signature file and the 3rd File is compared.
In step S303:Judge whether the first signature file and the 3rd signature file are identical;If the first signature file and 3rd signature file is differed, then perform step S304, otherwise, then performs step S305;
In step s 304:Determine that the first theme bag and/or digital certificate are tampered;
In step S305:Determine that the first theme bag and digital certificate are not tampered with.
The embodiment of the present disclosure provides a kind of theme packet processing method, including:Terminal downloads theme bag to be downloaded from server, Terminal use with server identical signature algorithm, the first theme bag and the corresponding digital certificate of the first theme bag are carried out Signature, generates the 3rd signature file, and whether the signature file of terminal judges first and the 3rd signature file are identical;If the first signature text Part and the 3rd signature file are differed, and terminal then determines that the first theme bag and/or digital certificate are tampered, and otherwise terminal is true Fixed first theme bag and digital certificate are not tampered with, so that it is guaranteed that the security of theme bag and digital certificate.
Further, Fig. 4 is a kind of flow chart of the theme packet processing method according to further example embodiment, this Embodiment is applied in terminal illustrate with the theme packet processing method.As shown in figure 4, the theme packet processing method can be with Including following several steps:
In step S401:Theme bag to be downloaded is downloaded from server, the theme bag to be downloaded includes:First theme bag, The corresponding digital certificate of first theme bag is signed with to the first theme bag digital certificate corresponding with the first theme bag, The first signature file for being generated;
Wherein step S401 is identical with step S301, will not be repeated here.
In step S402:The identification information of the signature algorithm that the reception server sends;
In step S403:Using signature algorithm corresponding to identification information, to the first theme bag and the first theme bag correspondence Digital certificate signed, generate the 3rd signature file;
Illustrated with reference to step S402 and step S403, for example:The signature algorithm that server is used is hash algorithm, should The identification information of hash algorithm is 1, then terminal directly according to the identification information using hash algorithm to the first theme bag and the The corresponding digital certificate of one theme bag is signed, and generates the 3rd signature file.
In step s 404:Judge whether the first signature file and the 3rd signature file are identical;If the first signature file and 3rd signature file is differed, then perform step S405, otherwise, then performs step S406;
In step S405:Determine that the first theme bag and/or digital certificate are tampered;
In step S406:Determine that the first theme bag and digital certificate are not tampered with.
In the embodiment of the present disclosure, the identification information of the signature algorithm that terminal is sent by the reception server, to ensure kimonos Business device uses identical signature algorithm, so as to verify whether the first theme bag and/or digital certificate are tampered.
Fig. 5 is a kind of block diagram of the theme bag processing unit according to an exemplary embodiment, the message display device Can by software, hardware or both be implemented in combination with turn into server it is some or all of.As shown in figure 5, the theme Bag processing unit can include:
First generation module 51, is configured as signing the first theme bag and the corresponding digital certificate of the first theme bag Name, generates the first signature file;
Second generation module 52, is configured as giving birth to the first theme bag, digital certificate and first generation module 51 Into the first signature file packed, generate theme bag to be downloaded, the theme bag to be downloaded is used to supply terminal downloads.
The embodiment of the present disclosure provides a kind of theme bag processing unit, including:First generation module, is configured as being led to first Topic bag digital certificate corresponding with the first theme bag is signed, and generates the first signature file;Second generation module, is configured as The first signature file that first theme bag, digital certificate and the first generation module are generated is packed, master to be downloaded is generated Topic bag, for theme bag to be downloaded described in terminal downloads.It is tampered with the digital certificate for preventing terminal, so as to improve theme bag It is credible.
Further, Fig. 6 is a kind of block diagram of the theme bag processing unit according to another exemplary embodiment, and this disappears Breath display device can by software, hardware or both be implemented in combination with turn into server it is some or all of.Such as Fig. 6 institutes Show, the device also includes:3rd generation module 53, is configured as signing the original topic bag that designer makes, and generates Second signature file;Insertion module 54, is configured as, by second signature file insertion original topic bag, obtaining institute State the first theme bag.Also include:Encrypting module 55, the private key for being configured to the first theme bag enters to the first theme bag Row encryption, the first theme bag after being encrypted;Accordingly, first generation module 51, is specifically configured to add to described The first theme bag and the corresponding digital certificate of the first theme bag after close, generate the first signature file.
Alternatively, the original topic bag that the first theme Bao Wei designer makes.
Alternatively, the device also includes:Determining module 56, is configured to determine that to the first theme bag and first theme Corresponding digital certificate is wrapped to be signed used signature algorithm;Sending module 57, is configured as sending institute to the terminal The identification information of signature algorithm is stated, the identification information is used to identify the signature algorithm, to the first theme bag and described first The corresponding digital certificate of theme bag is signed, and generates the 3rd signature file.
The embodiment of the present disclosure provide theme bag processing unit, can perform the method and step of the corresponding embodiments of Fig. 2 with And optional method and step, the content of correspondence effect will not be repeated here.
Fig. 7 is a kind of block diagram of the theme bag processing unit according to another exemplary embodiment, message display dress Put can by software, hardware or both be implemented in combination with turn into terminal it is some or all of.As shown in fig. 7, the theme Bag processing unit can include:
Download module 71, is configured as downloading theme bag to be downloaded from server, and the theme bag to be downloaded includes:First Theme bag, the corresponding digital certificate of the first theme bag with to the first theme bag and the corresponding number of the first theme bag Word certificate is signed, the first signature file for being generated;
Generation module 72, be configured as using with the server identical signature algorithm, to the first theme bag and described The corresponding digital certificate of first theme bag is signed, and generates the 3rd signature file;
Determining module 74, if being configured as first signature file and the 3rd signature file is differed, it is determined that The first theme bag and/or the digital certificate are tampered.
Optionally, also include:Judge module 73, is configured as judging first signature file and the generation module 72 Whether the 3rd signature file for being generated is identical;
The theme bag processing unit that the embodiment of the present disclosure is provided, can perform the method and step of the corresponding embodiments of Fig. 3, right The content of effect is answered to will not be repeated here.
Further, Fig. 8 is a kind of block diagram of the theme bag processing unit according to further example embodiment, and this disappears Breath display device can by software, hardware or both be implemented in combination with turn into terminal it is some or all of.Such as Fig. 8 institutes Show, the theme bag processing unit also includes:
Receiver module 75, by with the identification information for being combined into the signature algorithm for receiving the server transmission;
Accordingly, the generation module 72, is specifically configured to using signature algorithm corresponding to the identification information, to the One theme bag and the corresponding digital certificate of the first theme bag, generate the 3rd signature file.
The theme bag processing unit that the embodiment of the present disclosure is provided, can perform the method and step of the corresponding embodiments of Fig. 4, right The content of effect is answered to will not be repeated here.
Fig. 9 is a kind of block diagram of the theme bag processing unit 900 according to an exemplary embodiment, for example, device 900 May be provided in a server.Reference picture 9, device 900 includes processing assembly 922, and it is further included at one or more Reason device, and the memory resource as representated by memory 932, can be by the instruction of the execution of processing assembly 922, example for storing Such as application program.In memory 932 store application program can include it is one or more each correspond to one group The module of instruction.
Device 900 can also include that a power supply module 926 is configured as the power management of performs device 900, and one has Line or radio network interface 950 are configured as device 900 being connected to network, and input and output (I/O) interface 958.Dress Put 900 can operate based on storage memory 932 operating system, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
Processing assembly 922 is configured as signing the first theme bag digital certificate corresponding with the first theme bag, The first signature file is generated, the first theme bag, digital certificate and the first signature file are packed, generate theme to be downloaded Bag, the theme bag to be downloaded for terminal downloads.
On the device in above-described embodiment, wherein each device performs the concrete mode of operation in relevant the method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Figure 10 is a kind of block diagram of the theme bag processing unit 1000 according to an exemplary embodiment.For example, device 1000 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, medical treatment Equipment, body-building equipment, personal digital assistant etc..
Reference picture 10, device 1000 can include following one or more assemblies:Processing assembly 1002, memory 1004, Power supply module 1006, multimedia groupware 1008, audio-frequency assembly 1010, the interface 1012 of input/output (I/O), sensor cluster 1014, and communication component 1016.
The integrated operation of the usual control device 1000 of processing assembly 1002, such as with display, call, data communication, Camera operation and the associated operation of record operation.Processing assembly 1002 can include one or more processors 1020 to perform Instruction, to complete all or part of step of above-mentioned method.Additionally, processing assembly 1002 can include one or more moulds Block, is easy to the interaction between processing assembly 1002 and other assemblies.For example, processing assembly 1002 can include multi-media module, To facilitate the interaction between multimedia groupware 1008 and processing assembly 1002.
Memory 1004 is configured as storing various types of data supporting the operation in device 1000.These data Instruction of the example including any application program or method for being operated on device 1000, contact data, telephone book data, Message, picture, video etc..Memory 1004 can by any kind of volatibility or non-volatile memory device or they Combination realizes, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), it is erasable can Program read-only memory (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash memory Reservoir, disk or CD.
Power supply module 1006 provides electric power for the various assemblies of device 1000.Power supply module 1006 can include power management System, one or more power supplys, and other generate, manage and distribute the component that electric power is associated with for device 1000.
One touch-control of output interface of offer that multimedia groupware 1008 is included between described device 1000 and user shows Display screen.In certain embodiments, touching display screen can include liquid crystal display (LCD) and touch panel (TP).Touch panel Including one or more touch sensors with the gesture on sensing touch, slip and touch panel.The touch sensor can be with The not only border of sensing touch or sliding action, but also the detection duration related to the touch or slide and pressure Power.In certain embodiments, multimedia groupware 1008 includes a front camera and/or rear camera.When device 1000 In operator scheme, such as screening-mode or during video mode, front camera and/or rear camera can receive many of outside Media data.Each front camera and rear camera can be a fixed optical lens systems or with focal length and light Learn zoom capabilities.
Audio-frequency assembly 1010 is configured as output and/or input audio signal.For example, audio-frequency assembly 1010 includes a wheat Gram wind (MIC), when device 1000 is in operator scheme, such as call model, logging mode and speech recognition mode, microphone quilt It is configured to receive external audio signal.The audio signal for being received can be further stored in memory 1004 or via communication Component 1016 sends.In certain embodiments, audio-frequency assembly 1010 also includes a loudspeaker, for exports audio signal.
I/O interfaces 1012 are that interface, above-mentioned peripheral interface module are provided between processing assembly 1002 and peripheral interface module Can be keyboard, click wheel, button etc..These buttons may include but be not limited to:Main bar button, volume button, start button and Locking press button.
Sensor cluster 1014 includes one or more sensors, and the state for providing various aspects for device 1000 is commented Estimate.For example, sensor cluster 1014 can detect the opening/closed mode of device 1000, the relative positioning of component, such as institute Display and keypad that component is device 1000 are stated, sensor cluster 1014 can be with detection means 1000 or device 1,000 1 The position of individual component changes, and user is presence or absence of with what device 1000 was contacted, the orientation of device 1000 or acceleration/deceleration and dress Put 1000 temperature change.Sensor cluster 1014 can include proximity transducer, be configured to without any physics The presence of object nearby is detected during contact.Sensor cluster 1014 can also include optical sensor, and such as CMOS or ccd image are sensed Device, for being used in imaging applications.In certain embodiments, the sensor cluster 1014 can also include acceleration sensing Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 1016 is configured to facilitate the communication of wired or wireless way between device 1000 and other equipment.Dress Putting 1000 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.It is exemplary at one In embodiment, communication component 1016 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel Information.In one exemplary embodiment, the communication component 1016 also includes near-field communication (NFC) module, to promote short distance Communication.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 1000 can be by one or more application specific integrated circuits (ASIC), numeral Signal processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components realization, for performing above-mentioned theme packet processing method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 1004 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 1020 of device 1000.Example Such as, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, soft Disk and optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the treatment of device 1000 When device is performed so that device 1000 is able to carry out a kind of theme packet processing method.
Including:Theme bag to be downloaded is downloaded from server, the theme bag to be downloaded includes:First theme bag, the first theme Wrap corresponding digital certificate to be signed with to the first theme bag digital certificate corresponding with the first theme bag, generated First signature file;
Using with server identical signature algorithm, to the first theme bag and the corresponding digital certificate of the first theme bag Signed, generated the 3rd signature file;
If the first signature file and the 3rd signature file are differed, it is determined that the first theme bag and/or digital certificate It is tampered.
Those skilled in the art will readily occur to its of the disclosure after considering specification and putting into practice invention disclosed herein Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by following Claims are pointed out.
It should be appreciated that the disclosure is not limited to the precision architecture for being described above and being shown in the drawings, and And can without departing from the scope carry out various modifications and changes.The scope of the present disclosure is only limited by appending claims System.

Claims (14)

1. a kind of theme packet processing method, it is characterised in that including:
First theme bag and the corresponding digital certificate of the first theme bag are signed, the first signature file is generated;
The first theme bag, the digital certificate and first signature file are packed, theme bag to be downloaded is generated;
Wherein, the theme bag to be downloaded is used to supply terminal downloads.
2. method according to claim 1, it is characterised in that described corresponding with the first theme bag to the first theme bag Digital certificate signed, generation the first signature file before, also include:
The original topic bag that designer makes is signed, the second signature file is generated;
By in second signature file insertion original topic bag, the first theme bag is obtained.
3. method according to claim 2, it is characterised in that described that second signature file is inserted into the original master In topic bag, obtain after the first theme bag, also include:
The first theme bag is encrypted by the private key of the first theme bag, the first theme bag after being encrypted;
Accordingly, described that first theme bag and the corresponding digital certificate of the first theme bag are signed, generation first is signed Name file, including:
To the first theme bag after the encryption and the corresponding digital certificate of the first theme bag, the first signature file is generated.
4. the method according to claim any one of 1-3, it is characterised in that also include:
It is determined that used signature algorithm of being signed to the first theme bag and the corresponding digital certificate of the first theme bag;
The identification information of the signature algorithm is sent to the terminal, the identification information of the signature algorithm is used to identify the label Name algorithm.
5. a kind of theme packet processing method, it is characterised in that including:
Theme bag to be downloaded is downloaded from server, the theme bag to be downloaded includes:First theme bag, the first theme bag pair The digital certificate answered is signed with to the first theme bag and the corresponding digital certificate of the first theme bag, is generated First signature file;
Using with the server identical signature algorithm, to the first theme bag and the corresponding digital certificate of the first theme bag Signed, generated the 3rd signature file;
If first signature file and the 3rd signature file are differed, it is determined that the first theme bag and/or described Digital certificate is tampered.
6. method according to claim 5, it is characterised in that also include:
Receive the identification information of the signature algorithm that the server sends;
Accordingly, the use and the server identical signature algorithm, to the first theme bag and the first theme bag pair The digital certificate answered is signed, and generates the 3rd signature file, including:
Using signature algorithm corresponding to the identification information, numeral card corresponding to the first theme bag and the first theme bag Book, generates the 3rd signature file.
7. a kind of theme bag processing unit, it is characterised in that including:
First generation module, is configured as signing the first theme bag and the corresponding digital certificate of the first theme bag, Generate the first signature file;
Second generation module, is configured as carrying out the first theme bag, the digital certificate and first signature file Packing, generates theme bag to be downloaded;
Wherein, the theme bag to be downloaded is used to supply terminal downloads.
8. device according to claim 7, it is characterised in that also include:
3rd generation module, is configured as signing the original topic bag that designer makes, and generates the second signature file;
Insertion module, is configured as, by second signature file insertion original topic bag, obtaining first theme Bag.
9. device according to claim 8, it is characterised in that also include:
Encrypting module, the private key for being configured to the first theme bag is encrypted to the first theme bag, is added The first theme bag after close;
Accordingly, first generation module, is specifically configured to the first theme bag after the encryption and first master The corresponding digital certificate of topic bag, generates the first signature file.
10. the device according to claim any one of 7-9, it is characterised in that also include:
Determining module, be configured to determine that carries out signature institute to the first theme bag and the corresponding digital certificate of the first theme bag The signature algorithm of use;
Sending module, is configured as being sent to the terminal identification information of the signature algorithm, the mark of the signature algorithm Information is used to identify the signature algorithm.
A kind of 11. theme bag processing units, it is characterised in that including:
Download module, is configured as downloading theme bag to be downloaded from server, and the theme bag to be downloaded includes:First theme Bag, the corresponding digital certificate of the first theme bag with to the first theme bag and the first theme bag it is corresponding numeral card Book is signed, the first signature file for being generated;
Generation module, be configured as use with the server identical signature algorithm, to the first theme bag and it is described first master The corresponding digital certificate of topic bag is signed, and generates the 3rd signature file;
Determining module, if being configured as first signature file and the 3rd signature file is differed, it is determined that described One theme bag and/or the digital certificate are tampered.
12. devices according to claim 11, it is characterised in that also include:
Receiver module, by with the identification information for being combined into the signature algorithm for receiving the server transmission;
Accordingly, the generation module, is specifically configured to using signature algorithm corresponding to the identification information, to the first theme Bag digital certificate corresponding with the first theme bag, generates the 3rd signature file.
13. a kind of theme bag processing units, it is characterised in that described device includes:
Processor;
Memory for storing the executable instruction of the processor;
Wherein, the processor is configured as:
First theme bag and the corresponding digital certificate of the first theme bag are signed, the first signature file is generated;
The first theme bag, the digital certificate and first signature file are packed, theme bag to be downloaded is generated;
Wherein, the theme bag to be downloaded is used to supply terminal downloads.
14. a kind of theme bag processing units, it is characterised in that described device includes:
Processor;
Memory for storing the executable instruction of the processor;
Wherein, the processor is configured as:
Theme bag to be downloaded is downloaded from server, the theme bag to be downloaded includes:First theme bag, the first theme bag pair The digital certificate answered is signed with to the first theme bag and the corresponding digital certificate of the first theme bag, is generated First signature file;
Using with the server identical signature algorithm, to the first theme bag and the corresponding digital certificate of the first theme bag Signed, generated the 3rd signature file;
If first signature file and the 3rd signature file are differed, it is determined that the first theme bag and/or described Digital certificate is tampered.
CN201611063967.XA 2016-11-28 2016-11-28 Theme packet processing method and device Active CN106778086B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611063967.XA CN106778086B (en) 2016-11-28 2016-11-28 Theme packet processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611063967.XA CN106778086B (en) 2016-11-28 2016-11-28 Theme packet processing method and device

Publications (2)

Publication Number Publication Date
CN106778086A true CN106778086A (en) 2017-05-31
CN106778086B CN106778086B (en) 2019-11-29

Family

ID=58901866

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611063967.XA Active CN106778086B (en) 2016-11-28 2016-11-28 Theme packet processing method and device

Country Status (1)

Country Link
CN (1) CN106778086B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113177900A (en) * 2021-05-26 2021-07-27 广州市百果园网络科技有限公司 Image processing method, device, equipment and storage medium
CN113177900B (en) * 2021-05-26 2024-04-26 广州市百果园网络科技有限公司 Image processing method, device, equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6898707B1 (en) * 1999-11-30 2005-05-24 Accela, Inc. Integrating a digital signature service into a database
CN101895885A (en) * 2010-07-21 2010-11-24 中兴通讯股份有限公司 Method and system for protecting key file
CN102546604A (en) * 2011-12-22 2012-07-04 四川长虹电器股份有限公司 Security control method of intelligent television application program
CN103279569A (en) * 2013-06-19 2013-09-04 北京奇虎科技有限公司 Method and device for changing system theme
CN103501324A (en) * 2013-09-26 2014-01-08 小米科技有限责任公司 Theme packaging method and device as well as server
CN104102538A (en) * 2013-04-09 2014-10-15 联想(北京)有限公司 Information processing method and electronic equipment
CN104298915A (en) * 2014-10-16 2015-01-21 厦门美图之家科技有限公司 Installation package tampering preventing method
CN104424446A (en) * 2013-08-21 2015-03-18 中外建设信息有限责任公司 Safety verification and transmission method and system
CN105743910A (en) * 2016-03-30 2016-07-06 福建联迪商用设备有限公司 Method and system for installing programs through digital signatures
CN105873044A (en) * 2015-01-21 2016-08-17 卓望数码技术(深圳)有限公司 Application program issuance method based on Android platform, developer tracing method and developer tracing device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6898707B1 (en) * 1999-11-30 2005-05-24 Accela, Inc. Integrating a digital signature service into a database
CN101895885A (en) * 2010-07-21 2010-11-24 中兴通讯股份有限公司 Method and system for protecting key file
CN102546604A (en) * 2011-12-22 2012-07-04 四川长虹电器股份有限公司 Security control method of intelligent television application program
CN104102538A (en) * 2013-04-09 2014-10-15 联想(北京)有限公司 Information processing method and electronic equipment
CN103279569A (en) * 2013-06-19 2013-09-04 北京奇虎科技有限公司 Method and device for changing system theme
CN104424446A (en) * 2013-08-21 2015-03-18 中外建设信息有限责任公司 Safety verification and transmission method and system
CN103501324A (en) * 2013-09-26 2014-01-08 小米科技有限责任公司 Theme packaging method and device as well as server
CN104298915A (en) * 2014-10-16 2015-01-21 厦门美图之家科技有限公司 Installation package tampering preventing method
CN105873044A (en) * 2015-01-21 2016-08-17 卓望数码技术(深圳)有限公司 Application program issuance method based on Android platform, developer tracing method and developer tracing device
CN105743910A (en) * 2016-03-30 2016-07-06 福建联迪商用设备有限公司 Method and system for installing programs through digital signatures

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113177900A (en) * 2021-05-26 2021-07-27 广州市百果园网络科技有限公司 Image processing method, device, equipment and storage medium
CN113177900B (en) * 2021-05-26 2024-04-26 广州市百果园网络科技有限公司 Image processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN106778086B (en) 2019-11-29

Similar Documents

Publication Publication Date Title
CN103916233B (en) A kind of information ciphering method and device
CN104852911B (en) Safe verification method, apparatus and system
CN104125067B (en) Account and token secret key binding method and device
CN107241688A (en) Signature, verification method, device and the storage medium of application installation package
CN104462277B (en) Application program installation data statistical method, server and terminal
WO2016045469A1 (en) Information encryption method and mobile terminal
CN104009837B (en) Key updating method, device and terminal
JP6101863B2 (en) Information transmission method, apparatus, program, and recording medium for voice service
CN104484593B (en) terminal verification method and device
CN107766701A (en) Electronic equipment, dynamic library file guard method and device
CN106453052A (en) Message interaction method and apparatus thereof
CN104219053B (en) Method for information display, information concealing method and device
CN104468581B (en) The method and device of login application program
US9667784B2 (en) Methods and devices for providing information in voice service
CN104182697B (en) File encrypting method and device
CN105282162A (en) Processing method and device for account management business
CN106709284A (en) Root package validation method and device
CN106789070A (en) The decryption method of data, device and terminal
CN106383899A (en) Service recommendation method and apparatus, and terminal
CN106534083B (en) Brush machine Tool validation method and device
CN105046127A (en) Encryption and decryption method and apparatus
CN106778198A (en) Perform the safety certifying method and device of operation
CN107506636A (en) The guard method of pre-installed applications program and device
CN104506710B (en) Short message management method, terminal and device
CN104506575B (en) Push the method and device of theme

Legal Events

Date Code Title Description
PB01 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