CN102368850A - Method for carrying out encryption and decryption on video file on mobile phone - Google Patents

Method for carrying out encryption and decryption on video file on mobile phone Download PDF

Info

Publication number
CN102368850A
CN102368850A CN2011103101509A CN201110310150A CN102368850A CN 102368850 A CN102368850 A CN 102368850A CN 2011103101509 A CN2011103101509 A CN 2011103101509A CN 201110310150 A CN201110310150 A CN 201110310150A CN 102368850 A CN102368850 A CN 102368850A
Authority
CN
China
Prior art keywords
mobile phone
video file
encrypted
password
file
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.)
Pending
Application number
CN2011103101509A
Other languages
Chinese (zh)
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.)
FUZHOU BOYUAN WIRELESS NETWORK TECHNOLOGY Co Ltd
Original Assignee
FUZHOU BOYUAN WIRELESS NETWORK 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 FUZHOU BOYUAN WIRELESS NETWORK TECHNOLOGY Co Ltd filed Critical FUZHOU BOYUAN WIRELESS NETWORK TECHNOLOGY Co Ltd
Priority to CN2011103101509A priority Critical patent/CN102368850A/en
Publication of CN102368850A publication Critical patent/CN102368850A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention provides a method for carrying out encryption and decryption on a video file on a mobile phone. The encryption method comprises the following steps that: step one, a cipher I is input and the cipher I is encrypted to form a ciphertext and the ciphertext is stored in a file in a mobile phone; step two, identity identification numbers of the cipher I and a mobile phone I are combined to form a character string; and step three, the character string is utilized to carry out encryption on a video file by an XOR mode. The decryption method comprises the following steps that: step four, a cipher II is input and encryption is carried out on the cipher II to form an encrypted character string; step five, the file is read and the ciphertext in the file is obtained; it is compared whether the ciphertext is the same as the encrypted character string; if so, go to a step six; if not, a decryption flow is closed; step six, identity identification numbers of the cipher II and a mobile phone II are combined to form a decoded character string. and step seven, the decoded character string is utilized to carry out decryption on the encrypted video file by an XOR mode. According to the invention, an encryption method for a video file on a mobile phone is realized; when a video is needed to be watched, watching can be carried out only when authentication is succeeded, so that individual privacy of the user is protected.

Description

On mobile phone, carry out the method for video file encryption and deciphering
[technical field]
The present invention relates to the communication apparatus technical field, relate in particular to a kind of method of on mobile phone, carrying out video file encryption and deciphering.
[background technology]
At present encryption technology has reversible encryption and irreversible encryption, and reversible encryption can have under the situation of decruption key, ciphertext is transferred to expressly, like AES etc.; Irreversible encryption then is that close side can not return expressly, encrypts like md5.
Along with mobile phone is more and more universal, watch video also to become a kind of fashion on the mobile phone, nowadays the memory capacity of mobile phone is also continuing to increase, and watches a critical function that also becomes on the mobile phone when needed at store video on the mobile phone.But mobile phone is as a personal objects, and it is steady private that the video on the mobile phone possibly relate to the individual, the method that does not have clear and definite video-encryption of prior art, and especially the method to video-encryption does not realize yet on mobile phone.How after mobile phone was borrowed other people or mobile phone and lost situation such as being obtained the back by other people, the video on the mobile phone was unlikely to be watched by other people, thereby the steady private target of protection individual becomes the problem that current society need solves.
Provide a kind of in the prior art and realized the static audio/video document encryption method through file content is carried out the code word data matching way; And a kind of decryption method is provided to this encryption method; As open day was on 01 14th, 2009; Publication number is the Chinese patent of CN101345866; Its characteristic point is: the static audio/video document encryption method may further comprise the steps: a. inserts extra-code at the compressed file head, and said extra-code comprises and shows zero-time, shows concluding time, encryption indicator, encryption code word; The compressed file that b. will insert extra-code splits into the raw data packets of regular length; C. after convolution being carried out in each raw data packets segmentation, carry out XOR with the encryption code word again, generate encrypted packets; D. said encryption code word is embedded the fixed position of encrypted packets, generate new data file encryption.The static audio/video document decryption method is corresponding to adopt inverse operation to get final product.Adopt this inventive method, the amount of calculation of encryption is little, is applicable to the master chip of the television set that arithmetic speed is slower; Its encryption method is to be applicable to static audio/video document.
[summary of the invention]
The technical problem that the present invention will solve; Be to provide a kind of method of on mobile phone, video file being carried out encryption and decryption; When the user need watch video, carry out subscriber authentication earlier, checking through after carry out mobile phone again identify label number checking just can watch video file.
The present invention is achieved in that a kind of method of on mobile phone, carrying out video file encryption and deciphering,
Said video file encryption method comprises the steps:
Step 10, this password one is carried out md5 encrypt and generate a ciphertext, and this ciphertext is stored in the file of mobile phone one for the moment when user's input password on hand-held mobile phone one;
Step 11, the identify label of said password one and said mobile phone No. one is combined to form a character string;
Step 12, the video file that said character string is encrypted needs through the XOR mode are encrypted, and generate encrypted video file and also are stored in the mobile phone one;
Said video file decryption method comprises the steps:
Step 20, when the user on hand-held mobile phone two during input password two, this password two is carried out md5 encrypts and generate an encrypted characters string;
Step 21, read said file and obtain the ciphertext described in the file, relatively whether this ciphertext is identical with said encrypted characters string, is, then subscriber authentication is passed through, and gets into step 22; Not, then point out the user to input the password mistake, and finish this deciphering flow process;
Step 22, the identify label of password two and said mobile phone No. two is combined to form a decoding character string;
Step 23, the XOR mode ganged up in said decoding character said encrypted video file was deciphered; If the identify label of the identify label of said mobile phone No. one and said mobile phone is No. two identical; Then mobile phone one is same mobile phones with mobile phone two, the video file after successful decryption generates the video file after the deciphering and plays said deciphering; Inequality, then mobile phone one is different mobile with mobile phone two, and the video file after the deciphering damages and can't play.
Further, the identify label of said mobile phone one and said mobile phone No. two is IMEI or IMSI.
The present invention has following advantage: method of on mobile phone, carrying out video file encryption and deciphering of the present invention; Its encryption method is: the password of earlier user being imported carries out the mode of md5 and encrypts the formation ciphertext; And then the identify label of password and mobile phone number combined to form a character string, utilize character string video file to be encrypted through the XOR mode.Its decryption method is: the clear crytpographic key of when the user need decipher, importing carries out the mode of md5 and encrypts formation one encrypted characters string; This encrypted characters string and ciphertext are compared; Be that identical then subscriber authentication is passed through, and then with clear crytpographic key with this moment mobile phone identify label number combines to form the character string of decoding; The character of will decoding was ganged up the XOR mode encrypted video file was deciphered.Can carry out cipher round results to the video file on the mobile phone through method of the present invention, in the time will deciphering, carry out subscriber authentication earlier, and then carry out the identify label number checking of mobile phone, it could realize the broadcast of video after dual checking; Its video file and mobile phone are bound, and when other people trial is deciphered to another mobile phone through duplicating current encrypted video file, even if the user knows password, also will damage this video file during deciphering, reach protection video file purpose; When in authentication process itself, repeatedly attempting the deciphering failure, also be unlikely to damage the video file of encryption, thus protection user's privacy video.
[description of drawings]
Fig. 1 is the schematic flow sheet of video file encryption method of the present invention.
Fig. 2 is the schematic flow sheet of video file decryption method of the present invention.
[embodiment]
See also illustrated in figures 1 and 2, a kind of method of on mobile phone, carrying out video file encryption and deciphering of the present invention, wherein
Said video file encryption method comprises the steps:
Step 10, this password one is carried out md5 encrypt and generate a ciphertext, and this ciphertext is stored in the file of mobile phone one for the moment when user's input password on hand-held mobile phone one;
Step 11, the identify label of said password one and said mobile phone No. one is combined to form a character string; (full name is International Mobile Equipment Identity for IMEI for the identify label of said mobile phone No.; It is an International Mobile Station Equipment Identification) or IMSI (full name is international mobile subscriber identity, and it is an international mobile subscriber identity).
Step 12, the video file that said character string is encrypted needs through the XOR mode are encrypted, and generate encrypted video file and also are stored in the mobile phone one;
Said video file decryption method comprises the steps:
Step 20, when the user on hand-held mobile phone two during input password two, this password two is carried out md5 encrypts and generate an encrypted characters string;
Step 21, read said file and obtain the ciphertext described in the file, relatively whether this ciphertext is identical with said encrypted characters string, is, then subscriber authentication is passed through, and gets into step 22; Not, then point out the user to input the password mistake, and finish this deciphering flow process;
Step 22, the identify label of password two and said mobile phone No. two is combined to form a decoding character string;
Step 23, the XOR mode ganged up in said decoding character said encrypted video file was deciphered; If the identify label of the identify label of said mobile phone No. one and said mobile phone is No. two identical; Then mobile phone one is same mobile phones with mobile phone two, the video file after successful decryption generates the video file after the deciphering and plays said deciphering; Inequality, then mobile phone one is different mobile with mobile phone two, and the video file after the deciphering damages and can't play.
Below in conjunction with two specific embodiments the present invention is described further.
Embodiment one: Zhang San copies to encrypted video file in Li Si's the mobile phone in oneself the mobile phone and has obtained the password of this encrypted video file.
Said video file encryption method comprises the steps:
1, when Li Si imports password A (like feng123) on hand-held i Phone, this password A is carried out md5 encrypt generation one ciphertext B, and this ciphertext B is stored among the file M of i Phone;
2, said password A is combined to form a character string A3D124 with the identify label IMSI (like 3D124) of said i Phone;
3, the video file X that said character string A3D124 is encrypted needs through the XOR mode encrypts, and generation encrypted video file Y also is stored in the i Phone;
Said video file decryption method comprises the steps:
4, encrypted video file Y after its Zhang San will encrypt and file M copy in the Samsung mobile phone of oneself; And obtained password A (feng123); When Zhang San imports password feng123 on the Samsung mobile phone, this password A is carried out md5 encrypt generation one encrypted characters string C;
5, read said file M and obtain the ciphertext B described in the file M, relatively whether this ciphertext B is identical with said encrypted characters string C, is identical at this moment, and then subscriber authentication is passed through, and gets into step 6;
6, password A is combined to form a decoding character string A6D521 (being feng1236D521) with the identify label IMSI (like 6D521) of said Samsung mobile phone;
7, said decoding character string A6D521 is deciphered said encrypted video file Y through the XOR mode; The identify label of the identify label of its Zhang San's Samsung mobile phone number and Li Si's i Phone is number different, and then the video file after the deciphering damages and can't play.
Embodiment two: encrypted video file in Li Si's the mobile phone, when Li Si wants to open encrypted video file, deciphered.
Said video file encryption method comprises the steps:
1, when Li Si imports password A (like feng123) on hand-held i Phone, this password A is carried out md5 encrypt generation one ciphertext B, and this ciphertext B is stored among the file M of i Phone;
2, said password A is combined to form a character string A3D124 with the identify label IMSI (like 3D124) of said i Phone;
3, the video file X that said character string A3D124 is encrypted needs through the XOR mode encrypts, and generation encrypted video file Y also is stored in the i Phone;
Said video file decryption method comprises the steps:
4, when Li Si wants to open encrypted video file, decipher, when it imports password feng123 on i Phone, this password A is carried out md5 encrypt generation one encrypted characters string C;
5, read said file M and obtain the ciphertext B described in the file M, relatively whether this ciphertext B is identical with said encrypted characters string C, is identical at this moment, and then subscriber authentication is passed through, and gets into step 6;
6, password A is combined to form a decoding character string A3D124 (being feng1233D124) with the identify label IMSI (like 3D124) of said i Phone;
7, said decoding character string A3D124 is deciphered said encrypted video file Y through the XOR mode; What its Li Si used is that same mobile phone carries out encryption and decryption, so the video file of successful decryption after generating the video file after the deciphering and playing said deciphering;
The above is merely preferred embodiment of the present invention, and all equalizations of doing according to claim of the present invention change and modify, and all should belong to covering scope of the present invention.

Claims (2)

1. method of on mobile phone, carrying out video file encryption and deciphering is characterized in that:
Said video file encryption method comprises the steps:
Step 10, this password one is carried out md5 encrypt and generate a ciphertext, and this ciphertext is stored in the file of mobile phone one for the moment when user's input password on hand-held mobile phone one;
Step 11, the identify label of said password one and said mobile phone No. one is combined to form a character string;
Step 12, the video file that said character string is encrypted needs through the XOR mode are encrypted, and generate encrypted video file and also are stored in the mobile phone one;
Said video file decryption method comprises the steps:
Step 20, when the user on hand-held mobile phone two during input password two, this password two is carried out md5 encrypts and generate an encrypted characters string;
Step 21, read said file and obtain the ciphertext described in the file, relatively whether this ciphertext is identical with said encrypted characters string, is, then subscriber authentication is passed through, and gets into step 22; Not, then point out the user to input the password mistake, and finish this deciphering flow process;
Step 22, the identify label of password two and said mobile phone No. two is combined to form a decoding character string;
Step 23, the XOR mode ganged up in said decoding character said encrypted video file was deciphered; If the identify label of the identify label of said mobile phone No. one and said mobile phone is No. two identical; Then mobile phone one is same mobile phones with mobile phone two, the video file after successful decryption generates the video file after the deciphering and plays said deciphering; Inequality, then mobile phone one is different mobile with mobile phone two, and the video file after the deciphering damages and can't play.
2. method of on mobile phone, carrying out video file encryption and deciphering according to claim 1 is characterized in that: the identify label of said mobile phone one and said mobile phone No. two is IMEI or IMSI.
CN2011103101509A 2011-10-13 2011-10-13 Method for carrying out encryption and decryption on video file on mobile phone Pending CN102368850A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011103101509A CN102368850A (en) 2011-10-13 2011-10-13 Method for carrying out encryption and decryption on video file on mobile phone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011103101509A CN102368850A (en) 2011-10-13 2011-10-13 Method for carrying out encryption and decryption on video file on mobile phone

Publications (1)

Publication Number Publication Date
CN102368850A true CN102368850A (en) 2012-03-07

Family

ID=45761398

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011103101509A Pending CN102368850A (en) 2011-10-13 2011-10-13 Method for carrying out encryption and decryption on video file on mobile phone

Country Status (1)

Country Link
CN (1) CN102368850A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102647712A (en) * 2012-04-06 2012-08-22 惠州Tcl移动通信有限公司 Mobile phone data encryption method and decryption method
CN102750495A (en) * 2012-06-07 2012-10-24 北京锐安科技有限公司 System for cracking and restoring iPhone encrypted backup files
CN102867153A (en) * 2012-08-30 2013-01-09 腾讯科技(深圳)有限公司 Methods and devices for encrypting and decrypting video file and mobile terminal
CN104125055A (en) * 2014-06-25 2014-10-29 小米科技有限责任公司 Encryption and decryption method and electronic device
CN106209359A (en) * 2016-07-14 2016-12-07 北京白鹭时代信息技术有限公司 A kind of decoding and the method and device decompressing encrypted lottery bag
CN106791249A (en) * 2016-11-11 2017-05-31 天津光电通信技术有限公司 A kind of LED display display control program
CN107317804A (en) * 2017-06-19 2017-11-03 努比亚技术有限公司 Private clound encryption data access method, terminal and storage medium
CN107682303A (en) * 2016-08-02 2018-02-09 北京宸信征信有限公司 Personal sensitive information encrypted query system and method
CN117196378A (en) * 2023-08-22 2023-12-08 江苏重华数字科技有限公司 Highway engineering full-period integrated quality data transmission and traceability processing method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1564514A (en) * 2004-03-26 2005-01-12 中兴通讯股份有限公司 Self arranged net mode shared key authentication and conversation key consulant method of radio LAN
CN101146261A (en) * 2007-10-19 2008-03-19 吕利勇 A realization method for digital protection of electronic media
CN101727547A (en) * 2008-10-30 2010-06-09 爱思开电讯投资(中国)有限公司 Device and method used for protecting DRM license file
CN102196422A (en) * 2010-03-11 2011-09-21 北京明朝万达科技有限公司 Method for preventing leakage of lost file of handheld communication terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1564514A (en) * 2004-03-26 2005-01-12 中兴通讯股份有限公司 Self arranged net mode shared key authentication and conversation key consulant method of radio LAN
CN101146261A (en) * 2007-10-19 2008-03-19 吕利勇 A realization method for digital protection of electronic media
CN101727547A (en) * 2008-10-30 2010-06-09 爱思开电讯投资(中国)有限公司 Device and method used for protecting DRM license file
CN102196422A (en) * 2010-03-11 2011-09-21 北京明朝万达科技有限公司 Method for preventing leakage of lost file of handheld communication terminal

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102647712A (en) * 2012-04-06 2012-08-22 惠州Tcl移动通信有限公司 Mobile phone data encryption method and decryption method
EP2835997A4 (en) * 2012-04-06 2015-11-25 Huizhou Tcl Mobile Comm Co Ltd Cell phone data encryption method and decryption method
EP2835997A1 (en) * 2012-04-06 2015-02-11 Huizhou TCL Mobile Communication Co., Ltd. Cell phone data encryption method and decryption method
CN102750495A (en) * 2012-06-07 2012-10-24 北京锐安科技有限公司 System for cracking and restoring iPhone encrypted backup files
CN102867153B (en) * 2012-08-30 2014-04-09 腾讯科技(深圳)有限公司 Methods and devices for encrypting and decrypting video file and mobile terminal
WO2014032517A1 (en) * 2012-08-30 2014-03-06 Tencent Technology (Shenzhen) Company Limited A video file encryption and decryption method, device, and mobile terminal
US9014372B2 (en) 2012-08-30 2015-04-21 Tencent Technology (Shenzhen) Company Limited Video file encryption and decryption method, device, and mobile terminal
CN102867153A (en) * 2012-08-30 2013-01-09 腾讯科技(深圳)有限公司 Methods and devices for encrypting and decrypting video file and mobile terminal
CN104125055A (en) * 2014-06-25 2014-10-29 小米科技有限责任公司 Encryption and decryption method and electronic device
CN104125055B (en) * 2014-06-25 2017-11-14 小米科技有限责任公司 Encryption and decryption method and electronic equipment
CN106209359A (en) * 2016-07-14 2016-12-07 北京白鹭时代信息技术有限公司 A kind of decoding and the method and device decompressing encrypted lottery bag
CN107682303A (en) * 2016-08-02 2018-02-09 北京宸信征信有限公司 Personal sensitive information encrypted query system and method
CN107682303B (en) * 2016-08-02 2020-11-10 北京宸信征信有限公司 System and method for encrypting and inquiring personal sensitive information
CN106791249A (en) * 2016-11-11 2017-05-31 天津光电通信技术有限公司 A kind of LED display display control program
CN107317804A (en) * 2017-06-19 2017-11-03 努比亚技术有限公司 Private clound encryption data access method, terminal and storage medium
CN117196378A (en) * 2023-08-22 2023-12-08 江苏重华数字科技有限公司 Highway engineering full-period integrated quality data transmission and traceability processing method

Similar Documents

Publication Publication Date Title
CN102368850A (en) Method for carrying out encryption and decryption on video file on mobile phone
Zhang et al. Cryptanalysis of S-box-only chaotic image ciphers against chosen plaintext attack
US9143317B2 (en) Protecting against white box attacks using column rotation
CN103152362B (en) Based on the large data files encrypted transmission method of cloud computing
CN101969545A (en) Encryption method and device of multimedia file
Kawle et al. Modified advanced encryption standard
CN103338445A (en) File encryption and decryption method and system
GB2520778A (en) Block encryption/decryption and method
CN103237010B (en) The server end of digital content is cryptographically provided
CN102833075A (en) Identity authentication and digital signature method based on three-layered overlapping type key management technology
CN102819702A (en) File encryption operation method and file encryption operation system
CN101646168A (en) Data encryption method, decryption method and mobile terminal
CN103236934A (en) Method for cloud storage security control
CN103237011B (en) Digital content encryption transmission method and server end
CN103237302A (en) Sensing information safety protection method for RFID (radio frequency identification) tags in Internet of Things
CN102647393A (en) Digital signage content piracy prevention method
CN104092680A (en) Coding and decoding method, device and system for audio signal
Kadam et al. Separable reversible encrypted data hiding in encrypted image using AES Algorithm and Lossy technique
CN106533668A (en) Network-based PVR protection method and system
CN105279447A (en) Method and device for data encryption, and method and device for data decryption
CN103501220A (en) Encryption method and device
CN105634729A (en) Mobile phone encryption and decryption method based on bluetooth equipment
CN111988639B (en) Video encryption and decryption method based on cryptographic algorithm and reversible steganography
CN110730366B (en) Bit operation-based lightweight video stream encryption and decryption method and encryption and decryption method
CN103491384B (en) Encrypting method and device of video and decrypting method and device of video

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120307