CN109787985A - Music file method for uploading, sharing method and playback method - Google Patents

Music file method for uploading, sharing method and playback method Download PDF

Info

Publication number
CN109787985A
CN109787985A CN201910074885.2A CN201910074885A CN109787985A CN 109787985 A CN109787985 A CN 109787985A CN 201910074885 A CN201910074885 A CN 201910074885A CN 109787985 A CN109787985 A CN 109787985A
Authority
CN
China
Prior art keywords
music
file
music file
key
information
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
CN201910074885.2A
Other languages
Chinese (zh)
Other versions
CN109787985B (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.)
Guangzhou Fiio Electronics Technology Co Ltd
Original Assignee
Guangzhou Fiio Electronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Fiio Electronics Technology Co Ltd filed Critical Guangzhou Fiio Electronics Technology Co Ltd
Priority to CN201910074885.2A priority Critical patent/CN109787985B/en
Publication of CN109787985A publication Critical patent/CN109787985A/en
Application granted granted Critical
Publication of CN109787985B publication Critical patent/CN109787985B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of music file method for uploading, sharing method and playback methods, wherein method for uploading includes: to be encrypted using symmetric key to music file body, obtains initial encryption music file;According to the public key obtained from book server, symmetric key and fund information are encrypted;Fund information includes the account information of charging related information and music upload side;The file header that encrypted symmetric key and fund information are added to initial encryption music file is obtained finally to encrypt music file, and is uploaded to music and platform is provided.The present invention can prevent other people from maliciously distorting, while final encryption music file is directly uploaded to music convenient for music upload side and provides platform, and make music upload side be based on account information and be directly obtained whole incomes.

Description

Music file method for uploading, sharing method and playback method
Technical field
The present invention relates to multimedia technology, in particular to a kind of music file method for uploading, sharing method and broadcasting side Method.
Background technique
Currently, music platform is the main channel of music making human hair cloth music, but the payment of traditional music platform Although broadcast mode is largely realized in an encrypted form, but encryption strength is not high, and key message is easy to be distorted by other people;Or Open permission, which are easier to lead to link fails because of network or background server problem in such a way that link issues. And be not easy to music making people and collect profit, limitation is larger.
Summary of the invention
It is an object of the invention to for the deficiency in traditional technology, provide a kind of music file method for uploading, sharing side Method and playback method.
The embodiment of the invention provides a kind of music file method for uploading implemented from encryption software angle, comprising:
Music file body is encrypted using symmetric key, obtains initial encryption music file;
According to the public key obtained from book server, symmetric key and fund information are encrypted;Fund information includes The account information of charging related information and music upload side;
The file header that encrypted symmetric key and fund information are added to initial encryption music file is obtained finally adding Close music file, and be uploaded to music and platform is provided.
In a specific embodiment, symmetric key is generated at random based on symmetric encipherment algorithm.
In a specific embodiment, finally encryption music file makes music when reading on music player File header is sent to book server to decrypt to obtain fund information using the corresponding private key of public key by device.
The embodiment of the invention also provides a kind of music file sharing methods implemented from book server angle, comprising:
A pair of secret keys pair is randomly generated;Key pair includes public key and private key;
Public key is sent to music upload side user terminal;Public key is used to encrypt the symmetric key and fund letter of music file body Breath;Fund information includes charging related information and the account information that music uploads;Symmetric key is that encryption software is based on symmetrical add The key that close algorithm generates
When receiving the file header of final encryption music file from the terminal of music purchasing side, using private key by file header Decryption obtains fund information;Final encryption music file is included file header and is encrypted using symmetric key to music file body The initial encryption music file arrived.
File header is decrypted after obtaining fund information and symmetric key using private key in one of the embodiments, also Include:
Receive the payment information that sends according to charging related information of terminal of music purchasing side, and by payment information and fund The corresponding account information associated storage of information.
The embodiment of the invention also provides a kind of music file playback methods implemented from music player angle, comprising:
The file header for providing the final encryption music file that platform obtains from music is sent to book server;It is final to add Close music file includes file header and the initial encryption music file that is encrypted using symmetric key to music file body, file Head includes fund information and symmetric key through public key encryption;Public key is the close of the cipher key pair that book server is randomly generated Key;
Book server is received according to the corresponding private key of public key to the fund information returned after file header decryption;
The payment information arrived according to the fund acquisition of information of return is received, and payment information is sent to book server;
Symmetric key after obtaining the decryption that book server is returned when receiving payment information;
Play the music file body through symmetric key decryption.
The file header that the final encryption music file that platform obtains is provided from music is sent in one of the embodiments, Before book server, comprising:
Read final encryption music file, and detect whether to be stored with music file body it is corresponding decrypted it is symmetrical close Key;
If being stored with, the symmetric key decryption music file body decrypted is utilized;Otherwise, by the text of final music file Part hair gives book server.
The embodiment of the invention also provides a kind of music files implemented from encryption software angle to upload device, comprising:
First encrypting module obtains initial encryption music text for encrypting using symmetric key to music file body Part;
Second encrypting module, for being carried out to symmetric key and fund information according to the public key obtained from book server Encryption;Fund information includes the account information of charging related information and music upload side;
Adding module, for encrypted symmetric key and fund information to be added to the file of initial encryption music file Head obtains finally encrypting music file, and is uploaded to music and provides platform.
The embodiment of the invention also provides a kind of music file sharing apparatus implemented from book server angle, comprising:
Key pair generation module, for a pair of secret keys pair to be randomly generated;Key pair includes public key and private key;
Public key uploading module, for public key to be sent to music upload side user terminal;Public key is for encrypting music file body Symmetric key and fund information;Fund information includes charging related information and the account information that music uploads;
Deciphering module, for when receiving the file header of final encryption music file from the terminal of music purchasing side, benefit File header is decrypted with private key to obtain fund information;Final encryption music file includes file header and utilizes symmetric key to sound The initial encryption music file that music file body encrypts.
The embodiment of the invention also provides a kind of music file playing devices implemented from music player angle, comprising:
File sending module, for the file header for providing the final encryption music file that platform obtains from music to be sent to Book server;Final encryption music file is included file header and is encrypted using symmetric key to music file body initial Music file is encrypted, file header includes fund information and symmetric key through public key encryption;Public key is that book server produces at random The key of raw cipher key pair;
Information receiving module is decrypted, is returned for receiving after book server decrypts file header according to the corresponding private key of public key The fund information returned;
Payment information receiving module, for obtaining pair after the decryption that book server is returned when receiving payment information Claim key;
Playing module, for playing the music file body through symmetric key decryption.
A technical solution in above-mentioned technical proposal is had the following advantages and beneficial effects:
Method for uploading, sharing method and the playback method of music file of the invention can pass through music file symmetrical After key is encrypted, the symmetric key and corresponding fund information are encrypted by the public key of book server, in turn The file header that the encrypted symmetric key and fund information are added in initial encryption music file is obtained finally to encrypt sound Music file.Various embodiments of the present invention can encrypt symmetric key and fund information, and music file body that can be to be uploaded carries out pair The double-encryption for claiming encryption and asymmetric encryption, can prevent other people from maliciously distorting, while directly will be final convenient for music upload side Encryption music file is uploaded to music and provides platform, and makes music upload side be based on account information and be directly obtained whole receipts Benefit.
Detailed description of the invention
Fig. 1 is the music file method for uploading that the slave encryption software angle that an embodiment of the invention provides is implemented Flow diagram;
Fig. 2 is the music file sharing side that the slave book server angle that one embodiment of the present of invention mode provides is implemented The flow diagram of method;
Fig. 3 is the music file playback method that the slave music player angle that one embodiment of the present invention provides is implemented Flow diagram;
Fig. 4 is the upload device for the music file that the slave encryption software angle that an embodiment of the invention provides is implemented Structure chart;
Fig. 5 is the music file sharing apparatus that the slave book server angle that an embodiment of the invention provides is implemented Structure chart;
Fig. 6 is the music file playing device that the slave music player angle that an embodiment of the invention provides is implemented Structure chart.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention more comprehensible, referring to the drawings in conjunction with the embodiments, right The present invention is further described.
Music file method for uploading, sharing method and playback method of the invention, music upload side is from book server Public key is provided on the website platform of offer, and downloads the encryption software for being embedded with encryption method provided by the invention, as a result, music Music file to be uploaded is carried out symmetric cryptography using the encryption software for upload side and asymmetric encryption obtains finally encrypting sound Music file.Further, which is uploaded to music and platform is provided, wherein can be microblogging, forum etc. For listener's downloading.Needing to be loaded into after hearer's downloading in music player provided by the invention can play after payment decryption, Wherein, fee charged is directly taken in by the book server into the account of music upload side.
Referring to Fig. 1, the embodiment of the invention provides a kind of music file method for uploading implemented from encryption software angle, packets It includes:
Step S110: music file body is encrypted using symmetric key, obtains initial encryption music file;
Specifically, symmetric key is the key that encryption software generates at random, music file body is music upload side to upper The music file of biography, wherein including tactic byte stream.
Step S120: according to the public key obtained from book server, symmetric key and fund information are encrypted;Fund Information includes the account information of charging related information and music upload side;
Specifically, public key is the key for the cipher key pair that book server is generated according to rivest, shamir, adelman, music Uploading can obtain on the website platform that book server provides.Wherein, charging related information includes the price of single play The pricing information etc. that information and monthly payment play.The account information of music upload side is the account registered on book server, into And payment is stored in the account when music purchasing side buys music, so that music upload side is directly obtained income.Further Ground can inquire the collection amount information of account when music upload side input account information logs on to book server, to incite somebody to action Collection amount information is shifted.The embodiment of the present invention directly manages personal income convenient for music upload side.
Step S130: the file header that encrypted symmetric key and fund information are added to initial encryption music file is obtained To final encryption music file, and it is uploaded to music and platform is provided.
Specifically, the public key using book server encrypts symmetric key and fund information, corresponding label can be generated Name data, to prevent from being tampered in transmission process.The signed data generated using public key will use corresponding private key could be into Row decryption, that is, needed for file header to be sent to book server and decrypted using corresponding private key.The embodiment of the present invention is from adding as a result, The music file method for uploading that close software respective is implemented carries out asymmetric encryption, therefore, music using the public key of book server Upload can ensure music file information secrecy it is not under attack crack while, can voluntarily upload music provide platform with It is bought for downloading.Wherein, music provide platform can with but be not limited to book server offer website platform or microblogging Or other third party forums etc., the embodiment of the present invention are prevented by the limitation of chained address link official's music platform music libraries Property.Wherein, file header is the byte stream of file beginning location in initial encryption music file, is being read most convenient for music player Symmetric key and fund information can be quickly transferred out when encryption music file eventually, improves operational efficiency.
The music file method for uploading that the embodiment of the present invention is implemented from encryption software angle, by symmetric cryptography and asymmetric The mode of encryption obtains finally encrypting music file, the account of the compatible insertion music upload side of the file header of the final music file Family information and customized fund information eliminate limitation as defined in the publication of official's music platform and improve music file Encryption strength.Meanwhile final music file is obtained based on the symmetric cryptography and asymmetric encryption, it need to be correspondingly embedded in corresponding The music player and book server of decryption mechanisms, which cooperate, to be decrypted, further, can be when guaranteeing that music file plays Sound quality height is restored, while other people being avoided arbitrarily to crack.
The music file method for uploading that the embodiment of the present invention is implemented from encryption software angle can pass through music file symmetrical After key is encrypted, the symmetric key and corresponding fund information are encrypted by the public key of book server, in turn The file header that the encrypted symmetric key and fund information are added in initial encryption music file is obtained finally to encrypt sound Music file.The embodiment of the present invention can encrypt symmetric key and fund information, and music file body that can be to be uploaded carries out symmetrically The double-encryption of encryption and asymmetric encryption, can prevent other people from maliciously distorting, while directly will finally add convenient for music upload side Close music file is uploaded to music and provides platform, and makes music upload side be based on account information and be directly obtained whole receipts Benefit.
In a specific embodiment, symmetric key is generated at random based on symmetric encipherment algorithm.
The music file method for uploading that the embodiment of the present invention is implemented from encryption software angle, symmetric key are based on symmetric cryptography Algorithm generates at random, can be improved the encryption intensity to music file body, and after preventing password from revealing, other people are arbitrarily decoded.
In a specific embodiment, finally encryption music file makes music when reading on music player File header is sent to book server to decrypt to obtain fund information using the corresponding private key of public key by device.
The music file method for uploading that the embodiment of the present invention is implemented from encryption software angle, the final music file that encrypts need It can be decrypted in the music player for being embedded with corresponding decryption mechanisms.Therefore, music file is finally encrypted in music When reading on device, music player can transfer file header therein and be sent to book server, to realize that decryption of paying plays. The final encryption music file of the embodiment of the present invention makes the mutual cooperation of corresponding music player and book server, charges paid The mode of decryption realizes the broadcasting of music file body.
Referring to fig. 2, the present invention provides a kind of music files implemented from book server angle to share forwarding method, packet It includes:
Step S210: a pair of secret keys pair is randomly generated;Key pair includes public key and private key;
Step S220: public key is sent to music upload side user terminal;Public key is for encrypting the symmetrical close of music file body Key and fund information;Fund information includes the account information of charging related information and music upload side;Symmetric key is that encryption is soft The key that part is generated based on symmetric encipherment algorithm;
Step S230: when receiving the file header of final encryption music file from the terminal of music purchasing side, private is utilized Key decrypts file header to obtain fund information and symmetric key;Final encryption music file includes file header and utilizes symmetrical close The initial encryption music file that key encrypts music file body.
Specifically, book server is based on rivest, shamir, adelman generates key pair at random, and by public key publication to right The website platform answered, private key then oneself retain.The account information of music upload side is that music upload side is infused on book server The account of volume, i.e., each music upload can input relevant information on book server and open an account, so as to predetermined clothes The payment information of music purchasing side is associated storage by business device, i.e., income is directly assigned to the account for being used for music upload side In.Wherein, the terminal of music purchasing side is to run the terminal of music player, and the terminal of music purchasing side passes through the music Device sends the file header of final encryption music file further, and the fund information that the file header decrypted through private key obtains is for returning Back to the terminal of music purchasing side, so that music purchasing root is paid according to the fund information.Pair decrypted through private key Key is claimed to be used for after receiving the payment information of music purchasing side, the final encryption music text that decryption music player is read Music file body in part is to play.
The music file sharing method that the embodiment of the present invention is implemented from book server angle, the public key of book server can By symmetric key and fund information realization asymmetric encryption, further realize that the musical works progress to music upload side is dual Encryption, can prevent other people in transmission process from maliciously distorting, while directly will finally encrypt music file convenient for music upload side It is uploaded to music and platform is provided, voluntarily realize the sharing of music file.Further, added based on the corresponding private key of public key to final The file header of close music file decrypts fund information and symmetric key, optimizes the sharing mechanism of music file, can prevent from mentioning When obtaining music file body play right for file on-link mode (OLM), because of the broadcastings such as timeliness failure caused by link fails reason Problem.Further, effectively ensure the finally legitimacy of encryption music file and music upload side and music purchasing side both sides Interests.
In a specific embodiment, file header is decrypted using private key in one of the embodiments, to obtain fund After information and symmetric key, further includes:
Receive the payment information that sends according to charging related information of terminal of music purchasing side, and by payment information and fund The corresponding account information associated storage of information.
For example, book server refers to according to inquiry when music upload side logs on book server and sends inquiry instruction Enable the account information for inquiring corresponding music upload side, and with the associated payment information of account information, that is, collection amount information, and Query result is returned into music upload side, so that music upload side shifts collection amount by book server.
The music file sharing method that the embodiment of the present invention is implemented from book server angle, the terminal of music purchasing side can With but be not limited to personal computer or mobile terminal etc..The embodiment of the present invention can be by the payment information of music purchasing side With corresponding account information associated storage, so that music upload side is directly obtained income, and it is convenient for music upload side Management personal account is to shift the related gathering data of collection amount according to payment information.The embodiment of the present invention can be into one Step ensures the income of music upload side.
Referring to Fig. 3, the embodiment of the invention provides a kind of music file playback method implemented from music player angle, Include:
Step S310: the file header for providing the final encryption music file that platform obtains from music is sent to reservation service Device;The final initial encryption music for encrypting music file and including file header and music file body being encrypted using symmetric key File;File header includes fund information and symmetric key through public key encryption;Public key is the key that book server is randomly generated The key of centering;
Specifically, fund information includes the account information of charging related information and music upload side;Wherein charge is related Information includes the pricing information of single play and the pricing information etc. that monthly payment plays.
Step S320: it receives book server and the fund returned after file header decryption is believed according to public key corresponding private key Breath;
Step S330: receiving the payment information that arrives according to the fund acquisition of information of return, and payment information is sent to pre- Determine server;
Specifically, payment information is the pricing information of single play or the pricing information etc. that monthly payment plays.Specifically, sound Happy player generates payment interface when receiving the fund information decrypted through private key, and the content that payment interface is shown includes Payment Options such as single play pricing information, monthly payment play pricing information etc., so that music purchasing side selects corresponding payment choosing Item is paid.Further, the display content of payment interface further includes payment code, and music purchasing can be swept by intelligent terminal It retouches the payment code and completes payment.
Step S340: the symmetric key after obtaining the decryption that book server is returned when receiving payment information;
Step S350: the music file body through symmetric key decryption is played.
The music file playback method that the embodiment of the present invention is implemented from music player angle, can be mutual with book server Cooperation is reading final music file of the music upload side through symmetric encipherment algorithm encryption and rivest, shamir, adelman encryption When, the decryption that can pay online plays.Further, it can prevent other people from other third party's player plays arbitrarily being used to damage sound The interests of happy upload side, and ensure the play quality of music file body, while effectivelying prevent providing the acquisition of file on-link mode (OLM) When music file body play right, because caused by link fails reason the problem of the broadcastings such as timeliness failure.
In a specific embodiment, the file hair for the final encryption music file that platform obtains will be provided from music Before giving book server, comprising:
Read final encryption music file, and detect whether to be stored with music file body it is corresponding decrypted it is symmetrical close Key;
If being stored with, the symmetric key decryption music file body decrypted is utilized;Otherwise, by the text of final music file Part hair gives book server.
The music file playback method that the embodiment of the present invention is implemented from music player angle, according to paying for music purchasing side Money information, it is after utilizing symmetric key to decrypt music file body if being identified as single play pricing information, this is symmetrical close Key is removed automatically, then interacted again with book server when reading identical final encryption music file next time be decrypted with Symmetric key decryption music file body is obtained, music upload side obtains income again.If being identified as monthly payment and playing pricing information After being decrypted using symmetric key to music file body, then the symmetric key is cached according to preset time, music player can benefit With the music file body in the corresponding final encrypted music file of symmetric key decryption cached in limited time, reached in preset time Then remove symmetric key automatically afterwards.Further, it is permanent broadcasting pricing information, sound that fund information, which can be arranged, in music upload After happy purchaser pays the bill according to the fund information, corresponding symmetric key can not be stored by the time limit, i.e., will not remove automatically can be real It is now offline to play.
It should be understood that although each step in the flow chart of Fig. 1-3 is successively shown according to the instruction of arrow, These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 1-3 Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively It carries out, but can be at least part of the sub-step or stage of other steps or other steps in turn or alternately It executes.
Referring to fig. 4, the music file sharing apparatus that the embodiment of the present invention is implemented from encryption software angle, comprising:
First encrypting module 410 obtains initial encryption music for encrypting using symmetric key to music file body File;
Second encrypting module 420, for according to the public key obtained from book server, to symmetric key and fund information into Row encryption;Fund information includes the account information of charging related information and music upload side;
Adding module 430, for encrypted symmetric key and fund information to be added to initial encryption music file File header obtains finally encrypting music file, and is uploaded to music and provides platform.
The music file sharing apparatus that the embodiment of the present invention is implemented from encryption software angle can pass through music file symmetrical After key is encrypted, the symmetric key and corresponding fund information are encrypted by the public key of book server, in turn The file header that the encrypted symmetric key and fund information are added in initial encryption music file is obtained finally to encrypt sound Music file.The embodiment of the present invention can encrypt symmetric key and fund information, and music file body that can be to be uploaded carries out symmetrically The double-encryption of encryption and asymmetric encryption, can prevent other people from maliciously distorting, while directly will finally add convenient for music upload side Close music file is uploaded to music and provides platform, and makes music upload side be based on account information and be directly obtained whole receipts Benefit.
Referring to Fig. 5, music file sharing apparatus that the embodiment of the present invention is implemented from book server angle, comprising:
Key pair generation module 510, for a pair of secret keys pair to be randomly generated;Key pair includes public key and private key;
Public key uploading module 520, for public key to be sent to music upload side user terminal;Public key is for encrypting music file The symmetric key and fund information of body;Fund information includes charging related information and the account information that music uploads;
Deciphering module 530, for when receiving the file header of final encryption music file from the terminal of music purchasing side, File header is decrypted using private key to obtain fund information and symmetric key;Final encryption music file includes file header and utilization The initial encryption music file that symmetric key encrypts music file body.
The music file sharing apparatus that the embodiment of the present invention is implemented from book server angle, the public key of book server can By symmetric key and fund information realization asymmetric encryption, further realize that the musical works progress to music upload side is dual Encryption, can prevent other people in transmission process from maliciously distorting, while directly will finally encrypt music file convenient for music upload side It is uploaded to music and platform is provided, voluntarily realize the sharing of music file.Further, added based on the corresponding private key of public key to final The file header of close music file decrypts fund information and symmetric key, optimizes the sharing mechanism of music file, can prevent from mentioning When obtaining music file body play right for file on-link mode (OLM), because of the broadcastings such as timeliness failure caused by link fails reason Problem.Further, effectively ensure the finally legitimacy of encryption music file and music upload side and music purchasing side both sides Interests.
In a specific embodiment, deciphering module includes:
Storage unit, the payment information that the terminal for receiving music purchasing side is sent according to charging related information, and will Payment information account information associated storage corresponding with the fund information.
For example, book server refers to according to inquiry when music upload side logs on book server and sends inquiry instruction Enable the account information for inquiring corresponding music upload side, and with the associated payment information of account information, that is, collection amount information, and Query result is returned into music upload side, so that music upload side shifts collection amount by book server.
The music file sharing apparatus that the embodiment of the present invention is implemented from book server angle, the terminal of music purchasing side can With but be not limited to personal computer or mobile terminal etc..The embodiment of the present invention can be by the payment information of music purchasing side With corresponding account information associated storage so that music upload side is directly obtained income, and be convenient for music upload side Management personal account is to shift the related gathering data of collection amount according to payment information.The embodiment of the present invention can be into one Step ensures the income of music upload side.
Referring to Fig. 6, music file sharing apparatus that the embodiment of the present invention is implemented from book server angle, comprising:
File sending module 610, for the file hair for the final encryption music file that platform obtains will to be provided from music Give book server;Final encryption music file is included file header and is encrypted using symmetric key to music file body Initial encryption music file, file header include fund information and symmetric key through public key encryption;Public key be book server with The key for the cipher key pair that machine generates;
Information receiving module 620 is decrypted, file header is decrypted according to public key corresponding private key for receiving book server The fund information returned afterwards;
Payment information receiving module 630, after obtaining the decryption that book server is returned when receiving payment information Symmetric key;
Playing module 640, for playing the music file body through symmetric key decryption.
The music file playing device that the embodiment of the present invention is implemented from music player angle, can be mutual with book server Cooperation is reading final music file of the music upload side through symmetric encipherment algorithm encryption and rivest, shamir, adelman encryption When, the decryption that can pay online plays.Further, it can prevent other people from other third party's player plays arbitrarily being used to damage sound The interests of happy upload side, and ensure the play quality of music file body, while effectivelying prevent providing the acquisition of file on-link mode (OLM) When music file body play right, because caused by link fails reason the problem of the broadcastings such as timeliness failure.
In a specific embodiment, further includes:
Detection module for reading final encryption music file, and detects whether to be stored with music file body corresponding The symmetric key of decryption;
Judgment module, if utilizing the symmetric key decryption music file body decrypted for being stored with;It otherwise, will most The file header of whole music file is sent to book server.
The music file playing device that the embodiment of the present invention is implemented from music player angle, according to paying for music purchasing side Money information, it is after utilizing symmetric key to decrypt music file body if being identified as single play pricing information, this is symmetrical close Key is removed automatically, then interacted again with book server when reading identical final encryption music file next time be decrypted with Symmetric key decryption music file body is obtained, music upload side obtains income again.If being identified as monthly payment and playing pricing information After being decrypted using symmetric key to music file body, then the symmetric key is cached according to preset time, music player can benefit With the music file body in the corresponding final encrypted music file of symmetric key decryption cached in limited time, reached in preset time Then remove symmetric key automatically afterwards.Further, it is permanent broadcasting pricing information, sound that fund information, which can be arranged, in music upload After happy purchaser pays the bill according to the fund information, corresponding symmetric key can not be stored by the time limit, i.e., will not remove automatically can be real It is now offline to play.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, To any reference of memory, storage, database or other media used in each embodiment provided herein, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through Other modes are realized.The apparatus embodiments described above are merely exemplary, for example, flow chart and structure in attached drawing Figure shows the system frame in the cards of the device of multiple embodiments according to the present invention, method and computer program product Structure, function and operation.In this regard, each box in flowchart or block diagram can represent a module, section or code A part, a part of the module, section or code includes one or more for implementing the specified logical function Executable instruction.It should also be noted that function marked in the box can also be to be different from the implementation as replacement The sequence marked in attached drawing occurs.For example, two continuous boxes can actually be basically executed in parallel, they are sometimes It can execute in the opposite order, this depends on the function involved.It is also noted that in structure chart and/or flow chart The combination of each box and the box in structure chart and/or flow chart, can function or movement as defined in executing it is dedicated Hardware based system realize, or can realize using a combination of dedicated hardware and computer instructions.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.

Claims (10)

1. a kind of music file method for uploading characterized by comprising
Music file body is encrypted using symmetric key, obtains initial encryption music file;
According to the public key obtained from book server, the symmetric key and fund information are encrypted;The fund information Account information including charging related information and music upload side;
The file header that encrypted symmetric key and fund information are added to the initial encryption music file is obtained finally adding Close music file, and be uploaded to music and platform is provided.
2. music file method for uploading according to claim 1, which is characterized in that the symmetric key is based on symmetric cryptography Algorithm generates at random.
3. music file method for uploading according to claim 1, which is characterized in that the final encryption music file is in sound When reading on happy player, make the music player that the file header is sent to the book server to utilize the public affairs The corresponding private key of key is decrypted to obtain the fund information.
4. a kind of music file sharing method characterized by comprising
A pair of secret keys pair is randomly generated;The key pair includes public key and private key;
The public key is sent to music upload side user terminal;The public key is used to encrypt the symmetric key and money of music file body Item information;The fund information includes the account information of charging related information and music upload side;The symmetric key is encryption The key that software is generated based on symmetric encipherment algorithm;
When receiving the file header of final encryption music file from the terminal of music purchasing side, using the private key by the text Part head is decrypted to obtain fund information and symmetric key;The final encryption music file includes described in the file header and utilization The initial encryption music file that symmetric key encrypts music file body.
5. music file sharing method according to claim 4, which is characterized in that utilize the private key by the file header Decryption obtains after fund information and symmetric key, further includes:
The payment information that the terminal of the music purchasing side is sent according to the charging related information is received, and the payment is believed Cease the account information associated storage corresponding with the fund information.
6. a kind of music file playback method characterized by comprising
The file header for providing the final encryption music file that platform obtains from music is sent to book server;It is described finally to add Close music file includes file header and the initial encryption music file that is encrypted using symmetric key to music file body, described File header includes fund information and symmetric key through public key encryption;The public key is randomly generated close for the book server The key of key centering;
The book server is received according to the corresponding private key of the public key to the fund information returned after file header decryption;
The payment information arrived according to the fund acquisition of information of return is received, and the payment information is sent to described make a reservation for Server;
Symmetric key after obtaining the decryption that the book server is returned when receiving the payment information;
Play the music file body through the symmetric key decryption.
7. music file playback method according to claim 6, which is characterized in that obtained platform is provided from music most The file header of encryption music file is sent to before book server eventually, comprising:
Read the final encryption music file, and detect whether to be stored with the music file body it is corresponding decrypted it is symmetrical Key;
If being stored with, music file body described in the symmetric key decryption decrypted is utilized;Otherwise, by the final music The file header of file is sent to the book server.
8. a kind of music file uploads device characterized by comprising
First encrypting module obtains initial encryption music file for encrypting using symmetric key to music file body;
Second encrypting module, for being carried out to the symmetric key and fund information according to the public key obtained from book server Encryption;The fund information includes the account information of charging related information and music upload side;
Adding module, for encrypted symmetric key and fund information to be added to the file of the initial encryption music file Head obtains finally encrypting music file, and is uploaded to music and provides platform.
9. a kind of music file sharing apparatus characterized by comprising
Key pair generation module, for a pair of secret keys pair to be randomly generated;The key pair includes public key and private key;
Public key uploading module, for the public key to be sent to music upload side user terminal;The public key is for encrypting the sound The symmetric key and fund information of music file body;The fund information includes charging related information and the account letter that music uploads Breath;
Deciphering module, for utilizing institute when receiving the file header of final encryption music file from the terminal of music purchasing side Private key is stated to decrypt the file header to obtain fund information;The final encryption music file includes the file header and utilization The initial encryption music file that symmetric key encrypts music file body.
10. a kind of music file playing device characterized by comprising
File sending module, it is predetermined for the file header for providing the final encryption music file that platform obtains from music to be sent to Server;The final encryption music file is included file header and is encrypted using symmetric key to music file body initial Music file is encrypted, the file header includes fund information and symmetric key through public key encryption;The public key is described predetermined The key for the cipher key pair that server is randomly generated;
Information receiving module is decrypted, for receiving the book server according to the corresponding private key of the public key to the file header The fund information returned after decryption;
Payment information receiving module, after obtaining the decryption that the book server is returned when receiving the payment information Symmetric key;
Playing module, for playing the music file body through the symmetric key decryption.
CN201910074885.2A 2019-01-25 2019-01-25 Music file uploading method, sharing method and playing method Active CN109787985B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910074885.2A CN109787985B (en) 2019-01-25 2019-01-25 Music file uploading method, sharing method and playing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910074885.2A CN109787985B (en) 2019-01-25 2019-01-25 Music file uploading method, sharing method and playing method

Publications (2)

Publication Number Publication Date
CN109787985A true CN109787985A (en) 2019-05-21
CN109787985B CN109787985B (en) 2021-07-06

Family

ID=66502395

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910074885.2A Active CN109787985B (en) 2019-01-25 2019-01-25 Music file uploading method, sharing method and playing method

Country Status (1)

Country Link
CN (1) CN109787985B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160028550A1 (en) * 2014-07-23 2016-01-28 Ajit Gaddam Systems and methods for secure detokenization
CN105871892A (en) * 2016-05-17 2016-08-17 北京联合大学 File cloud storage security solution method and system
CN107257328A (en) * 2017-05-26 2017-10-17 深圳市金立通信设备有限公司 A kind of safety of payment dispositions method, system, terminal and proof of identity method
CN108933758A (en) * 2017-05-23 2018-12-04 中国电信股份有限公司 Cloud storage encipher-decipher method, device and system can be shared
CN109151507A (en) * 2018-08-08 2019-01-04 武汉市风奥科技股份有限公司 Audio/video player system and method
CN109246448A (en) * 2018-08-21 2019-01-18 姜天鹏 Offline content of copyright distribution system and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160028550A1 (en) * 2014-07-23 2016-01-28 Ajit Gaddam Systems and methods for secure detokenization
CN105871892A (en) * 2016-05-17 2016-08-17 北京联合大学 File cloud storage security solution method and system
CN108933758A (en) * 2017-05-23 2018-12-04 中国电信股份有限公司 Cloud storage encipher-decipher method, device and system can be shared
CN107257328A (en) * 2017-05-26 2017-10-17 深圳市金立通信设备有限公司 A kind of safety of payment dispositions method, system, terminal and proof of identity method
CN109151507A (en) * 2018-08-08 2019-01-04 武汉市风奥科技股份有限公司 Audio/video player system and method
CN109246448A (en) * 2018-08-21 2019-01-18 姜天鹏 Offline content of copyright distribution system and method

Also Published As

Publication number Publication date
CN109787985B (en) 2021-07-06

Similar Documents

Publication Publication Date Title
TWI273808B (en) Integrity protection of streamed content
JP4824309B2 (en) Method for monitoring digital content provided by a content provider via a network
US7599890B2 (en) Content data storage
CA2313407C (en) Data communications
CA2808369C (en) System for protecting an encrypted information unit
CN102215225B (en) Technology for the context of monetizing anonymized
KR100995182B1 (en) Method for managing purchase of broadcast digital contents and means for downloading same
CN109729041B (en) Method and device for issuing and acquiring encrypted content
CN110417750A (en) File based on block chain technology is read and method, terminal device and the storage medium of storage
JP2005057435A (en) Client equipment, content processing method for client equipment, and contents providing system
JP2004517411A (en) System and method for secure distribution of digital content in a shared network
JP2008529044A (en) Secure encryption system, apparatus and method
US20210035090A1 (en) System and method for secure data delivery
US20080162354A1 (en) Method for determining the price of superdistributed recordings
CN101350918B (en) Method for protecting copyright of video content
WO2002044971A1 (en) Electronic content transacting method and system therefor
WO2016034032A1 (en) Payment system
CN101002422A (en) Recording device, content key processing device, recording medium, and recording method
US20060143132A1 (en) Method and apparatus to enable a market in used digital content
CN110445840A (en) A method of file storage and reading based on block chain technology
JP6669609B2 (en) Data trading system and program
CN101174941A (en) Off-line digital copyright protection method and device for mobile terminal document
CN109787985A (en) Music file method for uploading, sharing method and playback method
CN114896616A (en) Policy processing method and system based on block chain
CN111131227A (en) Data processing method and device

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