CN100385422C - MP3 file encryption and decryption method - Google Patents

MP3 file encryption and decryption method Download PDF

Info

Publication number
CN100385422C
CN100385422C CNB2005100776155A CN200510077615A CN100385422C CN 100385422 C CN100385422 C CN 100385422C CN B2005100776155 A CNB2005100776155 A CN B2005100776155A CN 200510077615 A CN200510077615 A CN 200510077615A CN 100385422 C CN100385422 C CN 100385422C
Authority
CN
China
Prior art keywords
file
encryption
mobile phone
tool
mark
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.)
Expired - Fee Related
Application number
CNB2005100776155A
Other languages
Chinese (zh)
Other versions
CN1885279A (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.)
Darts Technologies Corp
Original Assignee
Darts Technologies Corp
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 Darts Technologies Corp filed Critical Darts Technologies Corp
Priority to CNB2005100776155A priority Critical patent/CN100385422C/en
Publication of CN1885279A publication Critical patent/CN1885279A/en
Application granted granted Critical
Publication of CN100385422C publication Critical patent/CN100385422C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The present invention discloses an MP3 file encryption and decryption method. Before the MP3 file is downloaded to a mobile phone having the function of playing the MP3 file, an encryption tool at a computer terminal is adopted to encrypt the MP3 file in the computer. When the MP3 file is downloaded to the mobile phone from the computer and is played simultaneously, a decryption tool in the mobile phone is adopted to decrypt the MP3 file. Therefore, a user can be prevented from copying the MP3 file to other mobile phones having the function of playing the MP3 file so as to achieve the purpose of protecting the copyright of the MP3 file.

Description

The encryption of mp3 file and decryption method
Technical field
The present invention relates to a kind of encryption and decryption method of mp3 file, relate in particular to a kind of encryption and decryption method that adopts the mp3 file that mobile phone plays.
Background technology
MP3 is the abbreviation of MPEG Audio Layer 3, i.e. the 3rd layer of international standard compress technique.MP3 has high performance ratio of compression, is fit to narrower Network Transmission environment at present, day by day becomes the transmission standard of online digital music.
For convenience of the user, at present increasing cell phone manufacturer successfully is integrated in the mp3 file playing function in the mobile phone, thereby makes the cellphone subscriber not need to buy in addition the special mobile phone with mp3 file playing function, can enjoy the MP3 music.Now become the main mode that the cellphone subscriber with mp3 file playing function obtains the MP3 music by network download, the mobile phone with mp3 file playing function becomes the first-selection of people's enjoy music just day by day.
Yet, because mobile phone has the transmission interface of USB or other form, and make the user mp3 file that is stored in the mobile phone can be copied to other mobile phone or upward use of device, and then invade the digital publishing rights of described mp3 file.
Summary of the invention
The objective of the invention is to provide a kind of encryption and decryption method of mp3 file, avoid the user that mp3 file is copied on other mobile phone with mp3 file playing function and use at the defective that above-mentioned prior art exists, thus the copyright of protection mp3 file.
For achieving the above object, the encryption of mp3 file of the present invention and decryption method adopt an Encryption Tool that is positioned at computer terminal that the mp3 file of computing machine is encrypted, and adopt a decoding tool that is positioned at mobile phone to by the mp3 file deciphering of downloaded to this mobile phone with mp3 file playing function, comprise the steps:
(1) Encryption Tool of computer terminal is judged the length value of mp3 file mark, if the length value of mp3 file mark>0 is then revised the mp3 file mark so that the decoding tool in the mobile phone is discerned, and made new mp3 file mark and mp3 file frame synchronization; If this length value≤0, represent not add in this mp3 file the telegram end that mp3 file mark or mp3 file mark are written into mp3 file, write the header that new mp3 file is marked on mp3 file this moment, so that decoding tool is discerned, and make described new mp3 file mark and mp3 file frame synchronization;
(2) Encryption Tool is encrypted frame by frame to the mp3 file content then, and cryptographic keys is the intrinsic identification code of mobile phone itself;
(3) in ciphering process, mp3 file produces the frame synchronization skew, after encryption finishes, the frame synchronization side-play amount is write in the described mp3 file;
(4) the interior decoding tool of mobile phone with mp3 file playing function reads and obtains the length value and the mp3 file frame synchronization side-play amount of the new mp3 file mark after Encryption Tool is encrypted, and then returns the reference position of mp3 file frame;
(5) the player buffer zone of mobile phone reads the mp3 file content, and decoding tool is deciphered frame by frame to the mp3 file content simultaneously, and decryption key is the intrinsic identification code of this mobile phone itself.
As mentioned above; the encryption of mp3 file of the present invention and decryption method are by the encryption of above-mentioned Encryption Tool and the deciphering of decoding tool; avoid the user that mp3 file is copied on other mobile phone with mp3 file playing function and used, thereby reached the purpose of protecting the mp3 file copyright.
Description of drawings
The present invention will be further described below in conjunction with drawings and Examples.
Fig. 1 is the encryption of mp3 file of the present invention and the encryption flow figure of decryption method;
Fig. 2 is the encryption of mp3 file of the present invention and the deciphering process flow diagram of decryption method.
Embodiment
The encryption and the decryption method of mp3 file of the present invention comprise the steps: (1) in download to one have the mobile phone of mp3 file playing function before, adopt an Encryption Tool that is positioned at computer terminal that the mp3 file of computing machine is encrypted; (2) encrypt and to this mobile phone and when playing, adopt the decoding tool that is positioned at mobile phone that this mp3 file is deciphered through described Encryption Tool when this mp3 file by downloaded.
See also Fig. 1, ciphering process comprises the steps:
(1) described Encryption Tool is chosen mp3 file, and then learn the length value of mp3 file mark, described mp3 file mark is used for indicating related data messages such as the author, singer, days, affiliated special edition of every first song correspondence, during broadcast, these data informations can be read and show to the mp3 file player that is positioned at mobile phone;
(2), and make new mp3 file mark and mp3 file frame synchronization if the mp3 file mark is then revised so that decoding tool is discerned in the length value of mp3 file mark>0; If this length value≤0, represent not add in this mp3 file the telegram end that mp3 file mark or mp3 file mark are written into mp3 file, write the header that new mp3 file is marked on mp3 file this moment, so that decoding tool is discerned, and make described new mp3 file mark and mp3 file frame synchronization;
(3) then, Encryption Tool reads the mp3 file content and uses TEA (Tiny EncryptionAlgorithm) algorithm that the mp3 file content is encrypted frame by frame, cryptographic keys is that manufacturer is the fixing identification code that this mobile phone with mp3 file playing function is provided with, in present embodiment, be the intrinsic IMEI of this mobile phone (IMEI);
(4) mp3 file can produce the frame synchronization skew in ciphering process, after the mp3 file content-encrypt is finished, the frame synchronization side-play amount is write in the described mp3 file, so far encrypts and finishes.
After encrypting end, the mp3 file in the computing machine is downloaded to by the USB transmission interface in the mobile phone with mp3 file playing function, and during broadcast, mp3 file is deciphered the limit frame by frame by the limit and play in this mobile phone.
See also Fig. 2, decrypting process comprises the steps:
(1) decoding tool at first reads mp3 file, check whether mp3 file is encrypted through above-mentioned Encryption Tool, if do not pass through the encryption of above-mentioned Encryption Tool, decoding tool can't be discerned this mp3 file, if encryption through above-mentioned Encryption Tool, then obtain the length value and the mp3 file frame synchronization side-play amount of the new mp3 file mark after this Encryption Tool is encrypted simultaneously, and then return the reference position of mp3 file frame;
(2) then, the player buffer zone of mobile phone begins to read the mp3 file content, decoding tool uses the TEA algorithm that the mp3 file content is deciphered frame by frame afterwards, decryption key is that manufacturer is the fixing identification code that this mobile phone with mp3 file playing function is provided with, in this embodiment, be the intrinsic IMEI of this mobile phone (IMEI);
(3) decrypted mp3 file frame is to be played in player buffer zone etc., and player is play the mp3 file frame of deciphering in the buffer zone, all finishes up to the mp3 file content, and so far the decrypting process of whole M P3 file finishes.
It is to be noted this mp3 file encryption and decryption method is particularly useful for without permission or pirate mp3 file, to reach the purpose of protection MP3 copyright.

Claims (5)

1. the encryption of a mp3 file and decryption method, it is characterized in that, adopt an Encryption Tool that is positioned at computer terminal that the mp3 file of computing machine is encrypted, and adopt a decoding tool that is positioned at mobile phone to by the mp3 file deciphering of downloaded to this mobile phone with mp3 file playing function, comprise the steps:
(1) Encryption Tool of computer terminal is judged the length value of mp3 file mark, if the length value of mp3 file mark>0 is then revised the mp3 file mark so that the decoding tool in the mobile phone is discerned, and made new mp3 file mark and mp3 file frame synchronization; If this length value≤0, represent not add in this mp3 file the telegram end that mp3 file mark or mp3 file mark are written into mp3 file, write the header that new mp3 file is marked on mp3 file this moment, so that decoding tool is discerned, and make described new mp3 file mark and mp3 file frame synchronization;
(2) Encryption Tool is encrypted frame by frame to the mp3 file content then, and cryptographic keys is the intrinsic identification code of mobile phone itself;
(3) in ciphering process, mp3 file produces the frame synchronization skew, after encryption finishes, the frame synchronization side-play amount is write in the described mp3 file;
(4) the interior decoding tool of mobile phone with mp3 file playing function reads and obtains the length value and the mp3 file frame synchronization side-play amount of the new mp3 file mark after Encryption Tool is encrypted, and then returns the reference position of mp3 file frame;
(5) the player buffer zone of mobile phone reads the mp3 file content, and decoding tool is deciphered frame by frame to the mp3 file content simultaneously, and decryption key is the intrinsic identification code of this mobile phone itself.
2. the encryption of mp3 file as claimed in claim 1 and decryption method is characterized in that, adopt the TEA algorithm as encrypting and decipherment algorithm.
3. the encryption of mp3 file as claimed in claim 1 and decryption method is characterized in that, described encryption and decryption key are the intrinsic IMEI of this mobile phone itself.
4. the encryption of mp3 file as claimed in claim 1 and decryption method, it is characterized in that, described mp3 file mark is used for indicating the related data message of every first song correspondence, and during broadcast, these data informations can be read and show to the mp3 file player that is positioned at mobile phone.
5. the encryption of mp3 file as claimed in claim 1 and decryption method, it is characterized in that, described step (4) also comprises: whether as calculated the decoding tool in the mobile phone at first reads and checks the mp3 file interior Encryption Tool encryption of machine, if do not encrypt, then decoding tool can't be discerned this mp3 file, if, then read the length value and the mp3 file frame synchronization side-play amount of mp3 file mark through encrypting.
CNB2005100776155A 2005-06-21 2005-06-21 MP3 file encryption and decryption method Expired - Fee Related CN100385422C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100776155A CN100385422C (en) 2005-06-21 2005-06-21 MP3 file encryption and decryption method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100776155A CN100385422C (en) 2005-06-21 2005-06-21 MP3 file encryption and decryption method

Publications (2)

Publication Number Publication Date
CN1885279A CN1885279A (en) 2006-12-27
CN100385422C true CN100385422C (en) 2008-04-30

Family

ID=37583435

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100776155A Expired - Fee Related CN100385422C (en) 2005-06-21 2005-06-21 MP3 file encryption and decryption method

Country Status (1)

Country Link
CN (1) CN100385422C (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127878B (en) * 2007-09-13 2013-07-03 深圳市融创天下科技股份有限公司 An encryption and decryption method for video stream media programs
CN101980237A (en) * 2010-10-13 2011-02-23 中兴通讯股份有限公司 Data encryption method and mobile terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1383056A (en) * 2001-04-24 2002-12-04 Lg电子株式会社 Conversion and reproduction method for audio data of portable device
CN1477523A (en) * 2002-08-19 2004-02-25 乐金电子(惠州)有限公司 Method for recording and reproducing compacted voice file by using decryption key
WO2004092931A2 (en) * 2003-04-17 2004-10-28 Koninklijke Philips Electronics N.V. Method and system for managing digital rights
US20040236945A1 (en) * 2003-05-21 2004-11-25 Hank Risan Method and system for controlled media sharing in a network
WO2005031593A1 (en) * 2003-09-30 2005-04-07 Inka Entworks, Inc. A method of synchronizing data between contents providers and a portable device via network and a system thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1383056A (en) * 2001-04-24 2002-12-04 Lg电子株式会社 Conversion and reproduction method for audio data of portable device
CN1477523A (en) * 2002-08-19 2004-02-25 乐金电子(惠州)有限公司 Method for recording and reproducing compacted voice file by using decryption key
WO2004092931A2 (en) * 2003-04-17 2004-10-28 Koninklijke Philips Electronics N.V. Method and system for managing digital rights
US20040236945A1 (en) * 2003-05-21 2004-11-25 Hank Risan Method and system for controlled media sharing in a network
WO2005031593A1 (en) * 2003-09-30 2005-04-07 Inka Entworks, Inc. A method of synchronizing data between contents providers and a portable device via network and a system thereof

Also Published As

Publication number Publication date
CN1885279A (en) 2006-12-27

Similar Documents

Publication Publication Date Title
CN101902333B (en) The application process of digital copyright management and terminal equipment
CN101903889B (en) Device and method for digital right management
US7685071B2 (en) Mobile communication terminal
KR100582859B1 (en) Copyright protection system and method thereof
JP2002330126A5 (en)
KR20030007075A (en) Digital work protection system, recording medium apparatus, transmission apparatus, and playback apparatus
US8997216B2 (en) Recording medium apparatus and control method for authenticating a device based on a revocation list
EP2979392B1 (en) A challenge-response method and associated client device
CN101312398A (en) Method and apparatus for encryption and sending content and method and apparatus for decrypting content
CN105049941B (en) A kind of processing method and processing device of multimedia file
JP6146476B2 (en) Information processing apparatus and information processing method
CN101174941B (en) Off-line digital copyright protection method and device for mobile terminal document
US20060218646A1 (en) Method and system for managing digital rights
CN100385422C (en) MP3 file encryption and decryption method
KR101032551B1 (en) Method for serving contents
CN101340653B (en) Copyright protection method and system for downloading data by portable terminal
CN105320852A (en) MP3 file protection method
JP5110942B2 (en) Information protection system
KR100321934B1 (en) Copy protection system for portable storge media
CN102387399B (en) Method for protecting timeliness of video resources and preventing copying
CN102012983A (en) Method and device for playing digital rights encryption protection technical file and mobile terminal
CN116506207A (en) Early education equipment resource encryption and decryption protection method
KR100767423B1 (en) Copyright protection method and apparatus for multimedia transmission system
JP4947616B2 (en) Decoding processing device, terminal device, decoding processing method, and decoding processing program
JP2004208174A (en) Electronic device and contents receiver

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
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080430

Termination date: 20100621