CN103390120B - 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
CN103390120B
CN103390120B CN201210139611.5A CN201210139611A CN103390120B CN 103390120 B CN103390120 B CN 103390120B CN 201210139611 A CN201210139611 A CN 201210139611A CN 103390120 B CN103390120 B CN 103390120B
Authority
CN
China
Prior art keywords
copyright information
audio file
ciphertext
audio frame
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210139611.5A
Other languages
Chinese (zh)
Other versions
CN103390120A (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

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

The method of read-write audio file copyright information and device
Technical field
The present invention relates to multimedia technology, particularly relating to the method into reading and writing audio file copyright information and device.
Background technology
The copyright information write in audio file is also called copyright watermark, in audio file, write copyright watermark, can produce evidence for the ownership of audio file protected by copyright.
The existing method 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 mp3 file, copyright information is write " copyright " field of mp3 tag label.
Method two: under the prerequisite of not changing music content, writes the position of other more difficult discoveries of audio file by copyright information, such as write between tag label and audio data frame.
There is following defect in above-mentioned two kinds of methods:
Copyright information directly writes in the tag of audio file by method one, and the method is easily cracked; As long as read tag instrument because utilize, just copyright information can be read out, and can at will be disposed, cause to produce evidence to the ownership of audio file.
Method two has had certain improvement, but cracks also fairly simple, as long as extracted by audio data frame, by remaining non-audio data full scale clearance, so copyright information also can be fallen by full scale clearance, and copyright information also will be made ineffective, causes to produce evidence to the ownership of audio file.
Visible, the copyright information taking existing scheme to write audio file is easily cracked and wipes.
Summary of the invention
The invention provides a kind of method writing audio file copyright information, the method can prevent the copyright information writing audio file from being cracked easily and wiping.
The invention provides a kind of method reading audio file copyright information, the method can prevent the copyright information writing audio file from being cracked easily and wiping.
The invention provides a kind of device writing audio file copyright information, this device can prevent the copyright information writing audio file from being cracked easily and wiping.
Present invention also offers a kind of device reading audio file copyright information, this device can prevent the copyright information writing audio file from being cracked easily and wiping.
Write a method for audio file copyright information, the method comprises:
Original copyright information is encrypted, obtains copyright ciphertext;
For copyright ciphertext adds copyright indexing head, build virtual audio Frame by the copyright ciphertext adding copyright indexing head, virtual audio Frame empty part quiet data is filled;
Judge whether the quiet region searched out in audio file, if so, then the virtual audio Frame of structure is inserted quiet region; Otherwise the virtual audio Frame built is inserted head or the tail region of audio file.
Read a method for audio file copyright information, the method comprises:
Read the Frame in audio file, search copyright indexing head, extract virtual audio Frame;
Adopt the decipherment algorithm corresponding with the cryptographic algorithm be encrypted original copyright information, the virtual audio Frame extracted is decrypted, obtain the copyright information after deciphering.
Write a device for audio file copyright information, this device comprises ciphering unit, construction unit and plug-in unit;
Described ciphering unit, for being encrypted original copyright information, obtaining copyright ciphertext, sending described construction unit to;
Described construction unit, for adding copyright indexing head for copyright ciphertext, build virtual audio Frame by the copyright ciphertext adding copyright indexing head, virtual audio Frame empty part quiet data is filled, and sends virtual audio Frame to described plug-in unit;
Described plug-in unit, for judging whether the quiet region searched out in audio file, if so, then inserts quiet region by the virtual audio Frame of structure; Otherwise the virtual audio Frame built is inserted head or the tail region of audio file.
Read a device for audio file copyright information, it is characterized in that, this device comprises reading unit and decryption unit;
Described reading unit, for reading the Frame in audio file, searches copyright indexing head, extracts virtual audio Frame, sends described decryption unit to;
Described decryption unit, adopts the decipherment algorithm corresponding with the cryptographic algorithm be encrypted original copyright information, is decrypted the virtual audio Frame extracted, and obtains the copyright information after deciphering.
As can be seen from such scheme, the present invention is encrypted original copyright information and obtains copyright ciphertext, and constructs virtual audio Frame by copyright ciphertext, inserts the quiet region in audio file, head or afterbody.Take to encrypt and insert quiet region, the mode of head or afterbody writes copyright information, make copyright information not easily be cracked and wipe, still can play the effect that the ownership of audio file is produced evidence.
Accompanying drawing explanation
Fig. 1 is the method indicative flowchart that the present invention writes audio file copyright information;
Fig. 2 is the method flow diagram example that the present invention builds virtual audio Frame;
Fig. 3 is the method flow diagram example that the present invention inserts virtual audio Frame in audio file;
Fig. 4 is the method flow diagram example that the present invention reads copyright information from audio file;
Fig. 5 is the apparatus structure schematic diagram that the present invention writes audio file copyright information;
Fig. 6 is the apparatus structure schematic diagram that the present invention reads audio file copyright information.
Embodiment
Clear for making the object, technical solutions and advantages of the present invention more remove, below in conjunction with embodiment and accompanying drawing, the present invention is described in more detail.
In order to make copyright information not easily be cracked and wipe, the present invention takes to encrypt and insert quiet region, the mode of head or afterbody writes copyright information.See Fig. 1, for the present invention writes the method indicative flowchart of audio file copyright information, it comprises the following steps:
Step 101, is encrypted original copyright information, obtains copyright ciphertext.
Be encrypted original copyright information according to cryptographic algorithm, cryptographic algorithm can be chosen as required, such as hash mapping algorithm or character string cryptographic algorithm etc.
Step 102, for copyright ciphertext adds copyright indexing head, builds virtual audio Frame by the copyright ciphertext adding copyright indexing head, fills virtual audio Frame empty part quiet data.
Copyright indexing head can provide multiple, therefrom selects one when needing.
Virtual audio Frame is identical with the length of other audio data frames, and the playing duration of audio data frame is shorter, is generally less than 0.03 second; Construct virtual audio Frame by the copyright ciphertext adding copyright indexing head, fill blank parts wherein by quiet data, its effect played back is quiet, like this, achieves and carries copyright information with very short quiet of a frame duration.
Step 103, judges whether the quiet region searched out in audio file, if so, then the virtual audio Frame of structure is inserted quiet region; Otherwise the virtual audio Frame built is inserted head or the tail region of audio file.
Afterwards, can read the copyright information in audio file when needed, specifically comprise:
Read the Frame in audio file, search copyright indexing head, extract virtual audio Frame;
With the decipherment algorithm corresponding with cryptographic algorithm described in step 101, the virtual audio Frame extracted is decrypted, obtains the copyright information after deciphering.
After obtaining the copyright information after deciphering, further certification can also be carried out to copyright information, comprise: the copyright information after deciphering and original copyright information be compared, if unanimously, then passes through certification; Otherwise, authentification failure.
Below by Fig. 2,3 and 4 flow process be that the method that audio file writes copyright information is illustrated to the present invention.
See Fig. 2, for the present invention builds the method flow diagram example of virtual audio Frame, it comprises the following steps:
Step 201, is encrypted original copyright information according to cryptographic algorithm, obtains copyright ciphertext.
Be encrypted copyright information, cryptographic algorithm can be selected voluntarily, makes the ciphertext after encrypting be not easy to be resolved out.
Step 202, for copyright ciphertext adds copyright indexing head.
For convenience of later reading, add copyright indexing head, in order to indicate copyright information.
Step 203, the structure according to different audio format defines, and builds virtual audio Frame, fill virtual audio Frame empty part quiet data by the copyright ciphertext adding copyright indexing head.
Structure according to different audio format defines, and builds audio data frame, with fixing algorithm, copyright ciphertext character string quiet data is filled, is written in audio data frame together, this completes the structure of virtual audio Frame.Generally, the length of an audio data frame is about hundreds of byte, and playing duration is less than 0.03 second.
See Fig. 3, for the present invention inserts the method flow diagram example of virtual audio Frame in audio file, it comprises the following steps:
Step 301, the quiet region in search audio file, if search for successfully, then performs step 302, otherwise performs step 303.
Step 302, inserts quiet region by the virtual audio Frame of structure.
Step 303, inserts head or the tail region of audio file by the virtual audio Frame built.
After building virtual audio Frame, need the correct position be inserted into by this frame in audio file.The method inserted is the quiet region first found in audio file, has certain quiet region in general one first song; If can not find, then it directly can be inserted into head or the tail region of audio file.
See Fig. 4, for the present invention reads the method flow diagram example of copyright information from audio file, it comprises the following steps:
Step 401, reads the Frame in audio file.
Step 402, searches copyright indexing head, if search successfully, then performs step 403; Otherwise perform step 405.
Step 403, extracts virtual audio Frame, is decrypted with the decipherment algorithm corresponding with described cryptographic algorithm to the virtual audio Frame extracted, and obtains the copyright information after deciphering.
Step 404, compares the copyright information after deciphering and original copyright information, if unanimously, then by certification, and process ends; Otherwise authentication failed, process ends.
Step 405, judges whether current data frame is last frame, if so, then and process ends; Otherwise return step 401.
When reading copyright information, first the audio data frame in audio file is read in order, at the content search copyright indexing head of frame, if found, then press the Frame construction method reduction copyright information of Fig. 2 flow process, compare with the original copyright information originally write after decrypting ciphertext, if be identical content, then by certification, if not identical content, then authentification failure.
The present invention is encrypted original copyright information and obtains copyright ciphertext, and constructs virtual audio Frame by copyright ciphertext, inserts the quiet region in audio file, head or afterbody.The mode of encrypting copyright information and filling quiet data is taked to build audio data frame, improve the security of copyright information, and, the mode inserting quiet region is adopted to write copyright information, the method that non-audio data is removed in existing employing can not remove copyright information wherein, make copyright information not easily be cracked and wipe, still can play the effect that the ownership of audio file is produced evidence.Meanwhile, because virtual audio Frame is one section very short quiet on music presents, original music content can not be affected, there is good practicality.
See Fig. 5, for the present invention writes the apparatus structure schematic diagram of audio file copyright information, this device comprises ciphering unit, construction unit and plug-in unit;
Described ciphering unit, for being encrypted original copyright information, obtaining copyright ciphertext, sending described construction unit to;
Described construction unit, for adding copyright indexing head for copyright ciphertext, build virtual audio Frame by the copyright ciphertext adding copyright indexing head, virtual audio Frame empty part quiet data is filled, and sends virtual audio Frame to described plug-in unit;
Described plug-in unit, for judging whether the quiet region searched out in audio file, if so, then inserts quiet region by the virtual audio Frame of structure; Otherwise the virtual audio Frame built is inserted head or the tail region of audio file.
See Fig. 6, for the present invention reads the device of audio file copyright information, this device comprises reading unit and decryption unit;
Described reading unit, for reading the Frame in audio file, searches copyright indexing head, extracts virtual audio Frame, sends described decryption unit to;
Described decryption unit, adopts the decipherment algorithm corresponding with the cryptographic algorithm be encrypted original copyright information, is decrypted the virtual audio Frame extracted, and obtains the copyright information after deciphering.
Alternatively, this device also comprises authentication ' unit, for obtaining the copyright information after deciphering from described decryption unit, the copyright information after deciphering and original copyright information being compared, if unanimously, then passing through certification.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (10)

1. write a method for audio file copyright information, it is characterized in that, the method comprises:
Original copyright information is encrypted, obtains copyright ciphertext;
For copyright ciphertext adds copyright indexing head, build virtual audio Frame by the copyright ciphertext adding copyright indexing head, the virtual audio Frame empty part quiet data built is filled;
Judge whether the quiet region searched out in audio file, if so, then the virtual audio Frame of structure is inserted quiet region; Otherwise the virtual audio Frame built is inserted head or the tail region of audio file.
2. the method for claim 1, is characterized in that, the copyright indexing head added for copyright ciphertext is selected from multiple copyright indexing head.
3. method as claimed in claim 1 or 2, it is characterized in that, described being encrypted original copyright information comprises: adopt hash mapping algorithm or character string cryptographic algorithm to be encrypted beginning copyright information.
4., based on the method reading audio file copyright information of claim 1 method, it is characterized in that, the method comprises:
Read the Frame in audio file, search copyright indexing head, extract virtual audio Frame;
Adopt the decipherment algorithm corresponding with the cryptographic algorithm be encrypted original copyright information, the virtual audio Frame extracted is decrypted, obtain the copyright information after deciphering.
5. method as claimed in claim 4, is characterized in that, described in obtain the copyright information after deciphering after, the method also comprises:
Copyright information after deciphering and original copyright information are compared, if unanimously, then passes through certification.
6. write a device for audio file copyright information, it is characterized in that, this device comprises ciphering unit, construction unit and plug-in unit;
Described ciphering unit, for being encrypted original copyright information, obtaining copyright ciphertext, sending described construction unit to;
Described construction unit, for adding copyright indexing head for copyright ciphertext, build virtual audio Frame by the copyright ciphertext adding copyright indexing head, the virtual audio Frame empty part quiet data built is filled, and sends virtual audio Frame to described plug-in unit;
Described plug-in unit, for judging whether the quiet region searched out in audio file, if so, then inserts quiet region by the virtual audio Frame of structure; Otherwise the virtual audio Frame built is inserted head or the tail region of audio file.
7. device as claimed in claim 6, it is characterized in that, the copyright indexing head added for copyright ciphertext is selected from multiple copyright indexing head.
8. device as claimed in claims 6 or 7, it is characterized in that, described being encrypted original copyright information comprises: adopt hash mapping algorithm or character string cryptographic algorithm to be encrypted beginning copyright information.
9. based on the device reading audio file copyright information of claim 6 device, it is characterized in that, this device comprises reading unit and decryption unit;
Described reading unit, for reading the Frame in audio file, searches copyright indexing head, extracts virtual audio Frame, sends described decryption unit to;
Described decryption unit, adopts the decipherment algorithm corresponding with the cryptographic algorithm be encrypted original copyright information, is decrypted the virtual audio Frame extracted, and obtains the copyright information after deciphering.
10. device as claimed in claim 9, it is characterized in that, this device also comprises authentication ' unit, for obtaining the copyright information after deciphering from described decryption unit, the copyright information after deciphering and original copyright information being compared, if unanimously, then passing through certification.
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 CN103390120A (en) 2013-11-13
CN103390120B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107371090B (en) * 2016-05-13 2020-09-04 矽统科技股份有限公司 Audio processing code locking method and radio receiving 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

Also Published As

Publication number Publication date
CN103390120A (en) 2013-11-13

Similar Documents

Publication Publication Date Title
US7492894B2 (en) Information-processing apparatus, control method, program and recording medium
JP3810425B2 (en) Falsification detection data generation method, and falsification detection method and apparatus
CN101261865B (en) Making method, device, playing device and method for media electronic file
US8238554B2 (en) Method for transmission/reception of contents usage right information in encrypted form, and device thereof
EP2330533A1 (en) Recording/reproducing system, recording medium device, and recording/reproducing device
CN107153794A (en) File encrypting method and device, file decryption method and apparatus
CN104680077A (en) Picture encryption method and picture checking method, system and terminal
KR100713044B1 (en) Encryption/recording device, reproduction device, and computer-readable recording medium
CN103635911A (en) Storage device and host device for protecting content and method thereof
US8363835B2 (en) Method for transmission/reception of contents usage right information in encrypted form, and device thereof
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
CN104168435B (en) The method and system that a kind of audio file batch merges and played
CN101171636B (en) Authoring device
CN104539424B (en) A kind of anti-tamper examinee's data transmission method
US20100229069A1 (en) Drive device, content reproduction device, recording device, data readout method, program, recording medium, and integrated circuit
CN112261444A (en) Media stream encryption method based on high-performance virtual gateway
JP2006005736A (en) Content protection method, device, and program
CN102203793B (en) Storage device and method for dynamic content tracing
CN103390120B (en) Method and device for reading and writing audio file copyright information
HU229542B1 (en) Copy method avoiding bit-to-bit duplication of digital data and reading device for implementing same, as well as storage medium for digital data
CN109145639A (en) File encrypting method, decryption method and device
CN101169953B (en) MP3 content encryption method
CN101399669B (en) Authentication method for realizing data reality of recorded sound or video
JP2016122933A (en) Method and device using data

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.