CN103390120A - Method and device for reading and writing audio file copyright information - Google Patents

Method and device for reading and writing audio file copyright information Download PDF

Info

Publication number
CN103390120A
CN103390120A CN2012101396115A CN201210139611A CN103390120A CN 103390120 A CN103390120 A CN 103390120A CN 2012101396115 A CN2012101396115 A CN 2012101396115A CN 201210139611 A CN201210139611 A CN 201210139611A CN 103390120 A CN103390120 A CN 103390120A
Authority
CN
China
Prior art keywords
copyright information
audio file
audio frame
ciphertext
virtual audio
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
CN2012101396115A
Other languages
Chinese (zh)
Other versions
CN103390120B (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 Kugou Computer Technology Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201210139611.5A priority Critical patent/CN103390120B/en
Publication of CN103390120A publication Critical patent/CN103390120A/en
Application granted granted Critical
Publication of CN103390120B publication Critical patent/CN103390120B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Storage Device Security (AREA)

Abstract

The invention provides a method and a device for reading and writing audio file copyright information. The method for writing the audio file copyright information comprises the following steps: encrypting original copyright information to obtain a copyright ciphertext; adding a copyright index head into the copyright ciphertext, building a virtual audio data frame through the copyright ciphertext added with the copyright index head, and filling mute data in the blank part of the virtual audio data frame; judging whether the mute area of an audio file is searched or not; if yes, inserting the built virtual audio data frame into the mute area; and if not, inserting the built virtual audio data frame into the head or tail area of the audio file. The scheme of the invention can prevent the copyright information written in the audio file from being easily decoded and erased.

Description

Method and the device of read-write audio file copyright information
Technical field
The present invention relates to multimedia technology, relate in particular to method and device into read-write audio file copyright information.
Background technology
The copyright information that writes in audio file is called again the copyright watermark, writes the copyright watermark in audio file, can produce evidence for the ownership of audio file protected by copyright.
The existing method of writing copyright information for audio file comprises following two kinds:
Method one: directly copyright information is write in the data label (tag) of audio file,, such as for the mp3 file, copyright information is write " copyright " field of mp3 tag label.
Method two: under the prerequisite of not changing music content, copyright information is write the position of other more difficult discoveries of audio file, such as writing between tag label and audio data frame.
There is following defect in above-mentioned two kinds of methods:
Method one directly writes copyright information in the tag of audio file, and the method easily is cracked; Because as long as utilize, read the tag instrument, just can read out copyright information, and can at will it be disposed, cause and can't produce evidence to the ownership of audio file.
Method two has had certain improvement, but crack also fairly simple, as long as audio data frame is extracted, with remaining non-audio data full scale clearance, copyright information also can be fallen by full scale clearance so, also will make copyright information ineffective, causes and can't produce evidence to the ownership of audio file.
As seen, the copyright information of taking existing scheme to write audio file easily is cracked and wipes.
Summary of the invention
The invention provides a kind of method of writing the audio file copyright information, the method can prevent that the copyright information that writes audio file from being cracked easily and wiping.
The invention provides a kind of method of pronunciation frequency file copyright information, the method can prevent that the copyright information that writes audio file from being cracked easily and wiping.
The invention provides a kind of device of writing the audio file copyright information, this device can prevent that the copyright information that writes audio file from being cracked easily and wiping.
The present invention also provides a kind of device of pronunciation frequency file copyright information, and this device can prevent that the copyright information that writes audio file from being cracked easily and wiping.
A kind of method of writing the audio file copyright information, the method comprises:
Original copyright information is encrypted, obtains the copyright ciphertext;
For the copyright ciphertext adds the copyright indexing head, build the virtual audio Frame by the copyright ciphertext that adds the copyright indexing head, virtual audio Frame empty part is filled with quiet data;
Judge whether to search out the quiet zone in audio file, if so, the virtual audio Frame that will build inserts quiet zone; Otherwise the virtual audio Frame that will build inserts head or the tail region of audio file.
A kind of method of pronunciation frequency file copyright information, the method comprises:
Read the Frame in audio file, search the copyright indexing head, extract the virtual audio Frame;
Adopt the decipherment algorithm corresponding with the cryptographic algorithm that original copyright information is encrypted, the virtual audio Frame that extracts is decrypted the copyright information after being deciphered.
A kind of device of writing the audio file copyright information, this device comprises ciphering unit, construction unit and plug-in unit;
Described ciphering unit, be used for original copyright information is encrypted, and obtains the copyright ciphertext, sends described construction unit to;
Described construction unit, be used to the copyright ciphertext to add the copyright indexing head, build the virtual audio Frame by the copyright ciphertext that adds the copyright indexing head, virtual audio Frame empty part is filled with quiet data, and send the virtual audio Frame to described plug-in unit;
Described plug-in unit, for the quiet zone that judges whether to search out audio file, if so, the virtual audio Frame that will build inserts quiet zone; Otherwise the virtual audio Frame that will build inserts head or the tail region of audio file.
A kind of device of pronunciation frequency file copyright information is characterized in that this device comprises reading unit and decryption unit;
Described reading unit,, for the Frame that reads audio file, search the copyright indexing head, extracts the virtual audio Frame, sends described decryption unit to;
Described decryption unit, adopt the decipherment algorithm corresponding with the cryptographic algorithm that original copyright information is encrypted, and the virtual audio Frame that extracts is decrypted the copyright information after being deciphered.
Can find out from such scheme, the present invention is encrypted and obtains the copyright ciphertext original copyright information, and by the copyright ciphertext, constructs the virtual audio Frame, inserts quiet zone, head or afterbody in audio file.The mode of taking to encrypt and insert quiet zone, head or afterbody writes copyright information, makes copyright information be difficult for being cracked and wiping, and still can play the effect that the ownership of audio file is produced evidence.
Description of drawings
Fig. 1 is the method indicative flowchart that the present invention writes the audio file copyright information;
Fig. 2 is the method flow diagram example that the present invention builds the virtual audio Frame;
Fig. 3 is the present invention inserts the virtual audio Frame in audio file method flow diagram example;
Fig. 4 is the present invention reads copyright information from audio file method flow diagram example;
Fig. 5 is the apparatus structure schematic diagram that the present invention writes the audio file copyright information;
Fig. 6 is the apparatus structure schematic diagram of pronunciation frequency file copyright information of the present invention.
Embodiment
Clear for the purpose, technical solutions and advantages of the present invention are removed more, below in conjunction with embodiment and accompanying drawing, the present invention is described in more detail.
In order to make copyright information be difficult for being cracked and wiping, the mode that the present invention takes to encrypt and insert quiet zone, head or afterbody writes copyright information.Referring to Fig. 1, write the method indicative flowchart of audio file copyright information for the present invention, it comprises the following steps:
Step 101, be encrypted original copyright information, obtains the copyright ciphertext.
According to cryptographic algorithm, original copyright information is encrypted, cryptographic algorithm can be chosen as required, such as hash mapping algorithm or character string cryptographic algorithm etc.
Step 102,, for the copyright ciphertext adds the copyright indexing head, build the virtual audio Frame by the copyright ciphertext that adds the copyright indexing head, and virtual audio Frame empty part is filled with quiet data.
It is a plurality of that the copyright indexing head can provide, and therefrom selects one while needing.
The length of virtual audio Frame and other audio data frames is identical, and the playing duration of audio data frame is shorter, is generally less than 0.03 second; Construct the virtual audio Frame by the copyright ciphertext that adds the copyright indexing head, with quiet data filling blank parts wherein, its effect that plays back is quiet, like this, has realized with the very short quiet copyright information that carries of a frame duration.
Step 103, judge whether to search out the quiet zone in audio file, and if so, the virtual audio Frame that will build inserts quiet zone; Otherwise the virtual audio Frame that will build inserts head or the tail region of audio file.
Afterwards, can read when needed the copyright information in audio file, specifically comprise:
Read the Frame in audio file, search the copyright indexing head, extract the virtual audio Frame;
With the decipherment algorithm corresponding with the described cryptographic algorithm of step 101, the virtual audio Frame that extracts is decrypted the copyright information after being deciphered.
After copyright information after being deciphered, can also further authenticate copyright information, comprise: the copyright information after deciphering and original copyright information compare, if consistent, by authentication; Otherwise, authentification failure.
Be that the method that audio file is write copyright information is illustrated below by Fig. 2,3 and 4 flow process to the present invention.
Referring to Fig. 2, build the method flow diagram example of virtual audio Frame for the present invention, it comprises the following steps:
Step 201, be encrypted original copyright information according to cryptographic algorithm, obtains the copyright ciphertext.
Copyright information is encrypted, and cryptographic algorithm can be selected voluntarily, makes the ciphertext after encryption be not easy to be resolved out.
Step 202, for the copyright ciphertext adds the copyright indexing head.
, for convenience of later reading, add the copyright indexing head, in order to indicate copyright information.
Step 203,, according to the organization definition of different audio formats, build the virtual audio Frame by the copyright ciphertext that adds the copyright indexing head, and virtual audio Frame empty part is filled with quiet data.
According to the organization definition of different audio formats, build audio data frame, with fixing algorithm, copyright ciphertext character string is filled with quiet data, be written to together in audio data frame, so just completed the structure of virtual audio Frame.Generally, the length of an audio data frame is in hundreds of byte left and right, and playing duration was less than 0.03 second.
Referring to Fig. 3, insert the method flow diagram example of virtual audio Frame in audio file for the present invention, it comprises the following steps:
Step 301, the quiet zone in the search audio file,, if search for successfully, perform step 302, otherwise perform step 303.
Step 302, insert quiet zone with the virtual audio Frame that builds.
Step 303, with head or the tail region of the virtual audio Frame of structure insertion audio file.
After building the virtual audio Frame, this frame need to be inserted into the correct position in audio file.The method of inserting is the quiet zone of first finding in audio file, in general one first song, certain quiet zone is arranged; , if can not find, it directly can be inserted into head or the tail region of audio file.
Referring to Fig. 4, read the method flow diagram example of copyright information from audio file for the present invention, it comprises the following steps:
Step 401, read the Frame in audio file.
Step 402, search the copyright indexing head,, if search successfully, performs step 403; Otherwise perform step 405.
Step 403, extract the virtual audio Frame, uses the decipherment algorithm corresponding with described cryptographic algorithm to be decrypted the virtual audio Frame that extracts, the copyright information after being deciphered.
Step 404, compare copyright information and original copyright information after deciphering, if consistent, by authentication, process ends; Otherwise authentication failed, process ends.
Step 405, judge whether current data frame is last frame, if so, and process ends; Otherwise return to step 401.
While reading copyright information, at first in order read the audio data frame in audio file, content search copyright indexing head at frame, if find, press the Frame construction method reduction copyright information of Fig. 2 flow process, compare with the original copyright information that originally write after decrypting ciphertext, if be identical content, by authentication, if not identical content, authentification failure.
The present invention is encrypted and obtains the copyright ciphertext original copyright information, and by the copyright ciphertext, constructs the virtual audio Frame, inserts quiet zone, head or afterbody in audio file.The mode of taking to encrypt copyright information and fill quiet data builds audio data frame, improved the security of copyright information, and, adopt the mode of inserting quiet zone to write copyright information, the method that non-audio data is removed in existing employing can not have been removed copyright information wherein, make copyright information be difficult for being cracked and wiping, still can play the effect that the ownership of audio file is produced evidence.Simultaneously, be one section very short quiet on music presents due to the virtual audio Frame, can not affect original music content, have good practicality.
Referring to Fig. 5, write the apparatus structure schematic diagram of audio file copyright information for the present invention, this device comprises ciphering unit, construction unit and plug-in unit;
Described ciphering unit, be used for original copyright information is encrypted, and obtains the copyright ciphertext, sends described construction unit to;
Described construction unit, be used to the copyright ciphertext to add the copyright indexing head, build the virtual audio Frame by the copyright ciphertext that adds the copyright indexing head, virtual audio Frame empty part is filled with quiet data, and send the virtual audio Frame to described plug-in unit;
Described plug-in unit, for the quiet zone that judges whether to search out audio file, if so, the virtual audio Frame that will build inserts quiet zone; Otherwise the virtual audio Frame that will build inserts head or the tail region of audio file.
Referring to Fig. 6, be the device of pronunciation frequency file copyright information of the present invention, this device comprises reading unit and decryption unit;
Described reading unit,, for the Frame that reads audio file, search the copyright indexing head, extracts the virtual audio Frame, sends described decryption unit to;
Described decryption unit, adopt the decipherment algorithm corresponding with the cryptographic algorithm that original copyright information is encrypted, and the virtual audio Frame that extracts is decrypted the copyright information after being deciphered.
Alternatively, this device also comprises authentication ' unit, is used for obtaining copyright information after deciphering from described decryption unit, copyright information and original copyright information after deciphering are compared, if consistent, by would authenticating.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of making, be equal to replacement, improvement etc., within all should being included in the scope of protection of the invention.

Claims (10)

1. a method of writing the audio file copyright information, is characterized in that, the method comprises:
Original copyright information is encrypted, obtains the copyright ciphertext;
For the copyright ciphertext adds the copyright indexing head, build the virtual audio Frame by the copyright ciphertext that adds the copyright indexing head, virtual audio Frame empty part is filled with quiet data;
Judge whether to search out the quiet zone in audio file, if so, the virtual audio Frame that will build inserts quiet zone; Otherwise the virtual audio Frame that will build inserts head or the tail region of audio file.
2. the method for claim 1, is characterized in that, for the copyright indexing head that the copyright ciphertext adds is selected from a plurality of copyright indexing heads.
3. method as claimed in claim 1 or 2, is characterized in that, described original copyright information is encrypted and comprises: adopt hash mapping algorithm or character string cryptographic algorithm to be encrypted the beginning copyright information.
4. the method for the frequency file of the pronunciation based on claim 1 a method copyright information, is characterized in that, the method comprises:
Read the Frame in audio file, search the copyright indexing head, extract the virtual audio Frame;
Adopt the decipherment algorithm corresponding with the cryptographic algorithm that original copyright information is encrypted, the virtual audio Frame that extracts is decrypted the copyright information after being deciphered.
5. method as claimed in claim 4, is characterized in that, after the copyright information after described the deciphering, the method also comprises:
Copyright information and original copyright information after deciphering are compared, if consistent, by authentication.
6. a device of writing the audio file copyright information, is characterized in that, this device comprises ciphering unit, construction unit and plug-in unit;
Described ciphering unit, be used for original copyright information is encrypted, and obtains the copyright ciphertext, sends described construction unit to;
Described construction unit, be used to the copyright ciphertext to add the copyright indexing head, build the virtual audio Frame by the copyright ciphertext that adds the copyright indexing head, virtual audio Frame empty part is filled with quiet data, and send the virtual audio Frame to described plug-in unit;
Described plug-in unit, for the quiet zone that judges whether to search out audio file, if so, the virtual audio Frame that will build inserts quiet zone; Otherwise the virtual audio Frame that will build inserts head or the tail region of audio file.
7. device as claimed in claim 6, is characterized in that, for the copyright indexing head that the copyright ciphertext adds is selected from a plurality of copyright indexing heads.
8. device as described in claim 6 or 7, is characterized in that, described original copyright information is encrypted and comprises: adopt hash mapping algorithm or character string cryptographic algorithm to be encrypted the beginning copyright information.
9. the device based on the pronunciation frequency file copyright information of claim 6 device, is characterized in that, this device comprises reading unit and decryption unit;
Described reading unit,, for the Frame that reads audio file, search the copyright indexing head, extracts the virtual audio Frame, sends described decryption unit to;
Described decryption unit, adopt the decipherment algorithm corresponding with the cryptographic algorithm that original copyright information is encrypted, and the virtual audio Frame that extracts is decrypted the copyright information after being deciphered.
10. device as claimed in claim 9, is characterized in that, this device also comprises authentication ' unit, is used for obtaining copyright information after deciphering from described decryption unit, copyright information and original copyright information after deciphering are compared, if consistent, by would authenticating.
CN201210139611.5A 2012-05-08 2012-05-08 Method and device for reading and writing audio file copyright information Active CN103390120B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210139611.5A CN103390120B (en) 2012-05-08 2012-05-08 Method and device for reading and writing audio file copyright information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210139611.5A CN103390120B (en) 2012-05-08 2012-05-08 Method and device for reading and writing audio file copyright information

Publications (2)

Publication Number Publication Date
CN103390120A true CN103390120A (en) 2013-11-13
CN103390120B CN103390120B (en) 2015-07-15

Family

ID=49534389

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210139611.5A Active CN103390120B (en) 2012-05-08 2012-05-08 Method and device for reading and writing audio file copyright information

Country Status (1)

Country Link
CN (1) CN103390120B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107371090A (en) * 2016-05-13 2017-11-21 矽统科技股份有限公司 Audio frequency process encodes locking means and audio signal reception device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101345866A (en) * 2008-08-15 2009-01-14 四川长虹电器股份有限公司 Encryption and decryption method for static audio/video document
CN101431578A (en) * 2008-10-30 2009-05-13 南京大学 Information concealing method based on G.723.1 silence detection technology

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101345866A (en) * 2008-08-15 2009-01-14 四川长虹电器股份有限公司 Encryption and decryption method for static audio/video document
CN101431578A (en) * 2008-10-30 2009-05-13 南京大学 Information concealing method based on G.723.1 silence detection technology

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107371090A (en) * 2016-05-13 2017-11-21 矽统科技股份有限公司 Audio frequency process encodes locking means and audio signal reception device
CN107371090B (en) * 2016-05-13 2020-09-04 矽统科技股份有限公司 Audio processing code locking method and radio receiving device

Also Published As

Publication number Publication date
CN103390120B (en) 2015-07-15

Similar Documents

Publication Publication Date Title
US7492894B2 (en) Information-processing apparatus, control method, program and recording medium
EP1855281B1 (en) Apparatus for writing data to a medium
CN101281468B (en) Method and apparatus for generating firmware update file and updating firmware by using the firmware update file
US9270673B2 (en) Terminal device, verification device, key distribution device, content playback method, key distribution method, and computer program
EP2330533B1 (en) Recording/reproducing system, recording medium device, and recording/reproducing device
US8238554B2 (en) Method for transmission/reception of contents usage right information in encrypted form, and device thereof
US8600064B2 (en) Apparatus, method, and computer program product for processing information
KR101954215B1 (en) Method and apparatus for using non volatile storage device
US20080031109A1 (en) Method and apparatus for processing information, method and apparatus for manufacturing information recording medium, information recording medium, and computer program
JP5154830B2 (en) Content distribution system
WO2008063877A3 (en) Card authentication system
JP2006197540A (en) Method of generating alteration detecting data, alteration detecting method and apparatus thereof
CN104680077A (en) Picture encryption method and picture checking method, system and terminal
JPWO2010116618A1 (en) Key implementation system
CN106557707A (en) A kind of method and system for processing document data
CN106096334B (en) Method and device for encrypting hypermedia data, method and device for decrypting hypermedia data
US20090119514A1 (en) Content data structure and memory card
CN101171636B (en) Authoring device
US20100229069A1 (en) Drive device, content reproduction device, recording device, data readout method, program, recording medium, and integrated circuit
JP2000286839A (en) Information recorder, method for verifying authenticity and computer-readable recording medium storing program to allow computer to execute the method
CN102289607A (en) Universal serial bus (USB) device verification system and method
CN109145639A (en) File encrypting method, decryption method and device
CN103390120B (en) Method and device for reading and writing audio file copyright information
KR101775971B1 (en) A storage device, method and apparatus for authenticating the storage device
CN109189333B (en) Hard disk adaptation method, device and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20161221

Address after: 510000 B1, building, No. 16, rhyme Road, Guangzhou, Guangdong, China 13F

Patentee after: Guangzhou Kugou Inc.

Address before: Shenzhen Futian District City, Guangdong province 518044 Zhenxing Road, SEG Science Park 2 East Room 403

Patentee before: Tencent Technology (Shenzhen) Co., Ltd.

CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: No. 315, Huangpu Avenue middle, Tianhe District, Guangzhou City, Guangdong Province

Patentee after: GUANGZHOU KUGOU COMPUTER TECHNOLOGY Co.,Ltd.

Address before: 510000 13F, building B1, 16 Keyun Road, Tianhe District, Guangzhou City, Guangdong Province

Patentee before: GUANGZHOU KUGOU COMPUTER TECHNOLOGY Co.,Ltd.