CN108156479B - Encryption and decryption method for video playing uri of video cloud platform - Google Patents

Encryption and decryption method for video playing uri of video cloud platform Download PDF

Info

Publication number
CN108156479B
CN108156479B CN201611108846.2A CN201611108846A CN108156479B CN 108156479 B CN108156479 B CN 108156479B CN 201611108846 A CN201611108846 A CN 201611108846A CN 108156479 B CN108156479 B CN 108156479B
Authority
CN
China
Prior art keywords
uri
video
base
encryption
algorithm
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
CN201611108846.2A
Other languages
Chinese (zh)
Other versions
CN108156479A (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.)
Chuangsheng Shilian Digital Technology Beijing Co Ltd
Original Assignee
Chuangsheng Shilian Digital Technology Beijing 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 Chuangsheng Shilian Digital Technology Beijing Co Ltd filed Critical Chuangsheng Shilian Digital Technology Beijing Co Ltd
Priority to CN201611108846.2A priority Critical patent/CN108156479B/en
Publication of CN108156479A publication Critical patent/CN108156479A/en
Application granted granted Critical
Publication of CN108156479B publication Critical patent/CN108156479B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
    • H04N21/2347Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving video stream encryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4405Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving video stream decryption

Abstract

The invention provides a video cloud platform video playing uri encryption and decryption method, which comprises the following steps: step one, binary conversion, step two, disorder of the order of the binary base numbers, step three, playing uri of the video, converting all physical storage paths into standard formats, and step four, converting yyy-mm-dd base encryption algorithm in uri into yyyymmdd by adopting base62 algorithm and base62 binary base number expression method; and step five, carrying out uri base encryption algorithm on the flv video type file and the like. The method can keep the video smooth, is suitable for the uri encryption method, defines the video type pcf of the user, encrypts the content through the DRM, carries out encryption operation aiming at the pcf video file type uri, and protects the data security of the cloud platform.

Description

Encryption and decryption method for video playing uri of video cloud platform
Technical Field
The invention relates to a video playing uri encryption and decryption method, in particular to a video cloud platform video playing uri encryption and decryption method.
Background
In the existing solution, the situation that the same video is played when a client watches a plurality of different videos often occurs, the last N-bit character of the uri (uniform resource identifier) which is the common point of the videos is found to be the same through investigation, and it is guessed that the operator where the client is located uses a cache strategy on our video files, so that video hijacking is caused. Meanwhile, the technical research on youtube (the largest video website in the world) and youku video websites has found that they use a technology called ShortUrl (a website shortening technology) which makes video id (video identification) short and disordered. And the existing video playing uri form: the first, flv (FLASH video) video file types uri, two, mp4 (video player) video file types uri, the uri of the flv type and mp4 type files are consistent with their physical storage paths.
Disclosure of Invention
Aiming at the defects in the prior art, the technical problem to be solved by the invention is to provide a video cloud platform video playing uri encryption and decryption method, which can keep a video smooth, is simultaneously suitable for a uri encryption method, defines the video type pcf of the video cloud platform, carries out encryption operation on the content through DRM encryption aiming at the pcf video file type uri, and protects the data security of the cloud platform.
According to one aspect of the invention, a video cloud platform video playing uri encryption and decryption method is provided, which comprises the following steps:
step one, binary conversion, wherein binary system is composed of 0 and 1, octal system is composed of 0, 1, 2, 3, 4, 5, 6 and 7, decimal system is composed of 0-9, hexadecimal system is composed of 0-9 and AF, the numbers and letters of 0-1, 0-7 and 0-9 are called basic numbers of the binary system, and then 0-9, A-Z, a-z and some punctuation marks are organized into a 3-ary, 19-ary, 36-ary, 62-ary and 64-ary binary system counting method;
step two, the sequence of the base numbers of the decimal system is disturbed, so that the situation that others deduce that the 62 system of the decimal system 123456 corresponds to W7E, and the 62 system of 123457 is deduced to be: W7F, the base number of base62 is disturbed, and the corresponding base62 number of 123457 cannot be estimated;
step three, video playing uri, namely converting all physical storage paths into standard formats, so that operation is convenient;
step four, in the uri, yyy-mm-dd base encryption algorithm, adopting a base62 algorithm and a base62 system base number expression method to convert yyy-mm-dd into yyyymmdd;
fifthly, conducting uri base encryption and decryption algorithm on the flv video type file;
step six, conducting uri base encryption and decryption algorithm on the pcf video type file;
and step seven, conducting uri base encryption and decryption algorithm on the mp4 video type file.
Preferably, the first step is a base x algorithm, which is also called uri base encryption algorithm.
Preferably, the second step is an encrypted baseX algorithm.
Preferably, the uri base encryption and decryption algorithm in the fifth step, the sixth step and the seventh step includes the following steps:
analyzing information of version, base _ time, part1, part2 and qid from uri;
step nine, judging whether the version number is correct or not;
step ten, converting base _ time into a time character string;
step eleven, converting part1 into base11 numbers, and reducing the vid and the uid;
step twelve, reducing the vid, and arranging in a reverse order;
thirteen, encrypting the vid and the uid;
and fourteen, reducing the uri.
Compared with the prior art, the invention has the following beneficial effects: the method can solve the problem that the same video is played when a client watches a plurality of different videos, the videos are kept smooth, meanwhile, the method is suitable for the uri encryption method, the self-owned video type pcf is defined, the content is encrypted through DRM, the encryption operation is carried out on the pcf video file type uri, and the data security of the cloud platform is protected.
Detailed Description
The present invention will be described in detail with reference to specific examples. The following examples will assist those skilled in the art in further understanding the invention, but are not intended to limit the invention in any way. It should be noted that variations and modifications can be made by persons skilled in the art without departing from the spirit of the invention. All falling within the scope of the present invention.
The video cloud platform video playing uri encryption and decryption method comprises the following steps:
step one, binary conversion, wherein binary system is composed of 0 and 1, octal system is composed of 0, 1, 2, 3, 4, 5, 6 and 7, decimal system is composed of 0-9, hexadecimal system is composed of 0-9 and AF, the numbers and letters of 0-1, 0-7 and 0-9 are called basic numbers of the binary system, and then 0-9, A-Z, a-z and some punctuation marks are organized into a 3-ary, 19-ary, 36-ary, 62-ary and 64-ary binary system counting method;
step two, the sequence of the base numbers of the decimal system is disturbed, so that the situation that others deduce that the 62 system of the decimal system 123456 corresponds to W7E, and the 62 system of 123457 is deduced to be: W7F, the base number of base62 is disturbed, and the corresponding base62 number of 123457 cannot be estimated;
step three, video playing uri, namely converting all physical storage paths into standard formats, so that operation is convenient;
step four, in the uri, yyy-mm-dd base encryption algorithm, adopting a base62 algorithm and a base62 system base number expression method to convert yyy-mm-dd into yyyymmdd;
step five, carrying out uri base encryption and decryption algorithm on the flv video type file, wherein the version number of the algorithm is as follows: "ca";
step six, conducting uri base encryption and decryption algorithm on the pcf video type file, wherein the version number of the algorithm is as follows: "cb";
and step seven, conducting uri base encryption and decryption algorithm on the mp4 video type file.
The first step is a base X algorithm, which is also called uri base encryption algorithm, wherein X is a number of binary systems.
And the second step is an encrypted baseX algorithm.
The uri base encryption and decryption algorithm in the fifth step, the sixth step and the seventh step comprises the following steps:
analyzing information of version, base _ time, part1, part2 and qid from uri;
step nine, judging whether the version number is correct, wherein only the version number is supported at present: "ca";
step ten, converting base _ time into a time character string;
step eleven, converting part1 into base11 numbers, and reducing the vid and the uid;
step twelve, reducing the vid, and arranging in a reverse order;
thirteen, encrypting the vid and the uid;
and fourteen, reducing the uri.
The working principle of the invention is as follows: the method comprises the steps of enabling an original url website to correspond to a unique integer i, then conducting encryption operation on the integer to obtain a short character string, splicing the short character string and a domain name together to form a short url, when the short url is visited, firstly conducting decryption on the short character string to obtain the integer i, then searching the original url website corresponding to the i and returning the integer i to a user in a redirection mode, storing the corresponding relation of the original url website and the integer i in a database mode, and replacing the i with a database table ID in order to guarantee the uniqueness of the integer i.
The foregoing description of specific embodiments of the present invention has been presented. It is to be understood that the present invention is not limited to the specific embodiments described above, and that various changes or modifications may be made by those skilled in the art within the scope of the appended claims without departing from the spirit of the invention.

Claims (3)

1. A video cloud platform video playing uri encryption and decryption method is characterized by comprising the following steps:
step one, converting a binary system, wherein the binary system is composed of 0 and 1, the octal system is composed of 0, 1, 2, 3, 4, 5, 6 and 7, the decimal system is composed of 0-9, the hexadecimal system is composed of 0-9 and AF, the numbers and letters of 0-1, 0-7 and 0-9 are called a basic number of the binary system, and then the binary system counting method of the 3 system, the 19 system, the 36 system, the 62 system and the 64 system is organized by using 0-9, A-Z, a-z and certain punctuation marks;
step two, the sequence of the base numbers of the decimal system is disturbed, so that the situation that others deduce that the 62 system of the decimal system 123456 corresponds to W7E, and the 62 system of 123457 is deduced to be: W7F, the base number of base62 is disturbed, and the corresponding base62 number of 123457 cannot be estimated;
step three, video playing uri, namely converting all physical storage paths into standard formats, so that operation is convenient;
step four, in the uri, yyy-mm-dd base encryption algorithm, adopting a base62 algorithm and a base62 system base number representation method to convert yyy-mm-dd into yyyymmdd;
fifthly, conducting uri base encryption and decryption algorithm on the flv video type file;
step six, conducting uri base encryption and decryption algorithm on the pcf video type file;
step seven, conducting uri base encryption and decryption algorithm on the mp4 video type file;
the uri base encryption and decryption algorithm in the fifth step, the sixth step and the seventh step comprises the following steps:
analyzing information of version, base _ time, part1, part2 and qid from uri;
step nine, judging whether the version number is correct or not;
step ten, converting base _ time into a time character string;
step eleven, converting part1 into base11 numbers, and reducing the vid and the uid;
step twelve, reducing the vid, and arranging in a reverse order;
thirteen, encrypting the vid and the uid;
and fourteen, reducing the uri.
2. The method for encrypting and decrypting the uri of the video cloud platform video playing according to claim 1, wherein the first step is a base x algorithm, which is also called uri base encryption algorithm.
3. The video cloud platform video playback uri encryption and decryption method according to claim 1, wherein the second step is an encrypted baseX algorithm.
CN201611108846.2A 2016-12-06 2016-12-06 Encryption and decryption method for video playing uri of video cloud platform Active CN108156479B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611108846.2A CN108156479B (en) 2016-12-06 2016-12-06 Encryption and decryption method for video playing uri of video cloud platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611108846.2A CN108156479B (en) 2016-12-06 2016-12-06 Encryption and decryption method for video playing uri of video cloud platform

Publications (2)

Publication Number Publication Date
CN108156479A CN108156479A (en) 2018-06-12
CN108156479B true CN108156479B (en) 2021-04-02

Family

ID=62469834

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611108846.2A Active CN108156479B (en) 2016-12-06 2016-12-06 Encryption and decryption method for video playing uri of video cloud platform

Country Status (1)

Country Link
CN (1) CN108156479B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111050213B (en) * 2020-01-17 2022-08-26 北京达佳互联信息技术有限公司 Video playing method and device, electronic equipment and storage medium
CN111698576B (en) * 2020-06-23 2022-04-01 网易有道信息技术(杭州)有限公司 Information encryption method, decryption method, server, client, and medium
CN112492352A (en) * 2020-11-17 2021-03-12 北京慕华信息科技有限公司 Video encryption and decryption method and device, electronic equipment and storage medium
CN114039801B (en) * 2022-01-11 2022-04-29 深圳魔方网络科技有限公司 Short link generation method, short link analysis system, short link analysis equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100842623B1 (en) * 2005-04-19 2008-06-30 삼성전자주식회사 System and method for processing encryption in mobile communication system
US8560843B1 (en) * 2010-09-24 2013-10-15 Symantec Corporation Encrypted universal resource identifier (URI) based messaging
US9785787B2 (en) * 2013-09-30 2017-10-10 Juniper Networks, Inc. Encrypting images on a client device for secure transmission and storage on a storage device
US9577989B2 (en) * 2014-03-15 2017-02-21 Virtru Corporation Methods and systems for decrypting an encrypted portion of a uniform resource identifier

Also Published As

Publication number Publication date
CN108156479A (en) 2018-06-12

Similar Documents

Publication Publication Date Title
CN108156479B (en) Encryption and decryption method for video playing uri of video cloud platform
CN101271501B (en) Encryption and decryption method and device of digital media file
US9021259B2 (en) Encrypted database system, client terminal, encrypted database server, natural joining method, and program
US10374807B2 (en) Storing and retrieving ciphertext in data storage
KR101371608B1 (en) Database Management System and Encrypting Method thereof
WO2018122287A1 (en) Method and system for search pattern oblivious dynamic symmetric searchable encryption
US9639708B2 (en) Methods and systems of encrypting file system directories
US9641328B1 (en) Generation of public-private key pairs
WO2016045641A2 (en) Data block storage method, data query method and data modification method
US20130247228A1 (en) Method, system and server for digital right management
US11373009B2 (en) Content playlist integrity
CN107567625A (en) Group license encryption and decryption
US10742401B2 (en) Half-pyramid data encryption
CN102480353A (en) Method of password authentication and secret key protection
US9559840B2 (en) Low-bandwidth time-embargoed content disclosure
US10726102B2 (en) Method of and system for providing access to access restricted content to a user
EP2784973A1 (en) Method, system, and device for digital content transmission
CN104283930B (en) The keyword search system of Security Index and the method for setting up the system
Sun et al. Research of data security model in cloud computing platform for SMEs
Kumar et al. Secure query processing over encrypted database through cryptdb
CN109218009A (en) It is a kind of to improve the method for device id safety, client and server
Gupta et al. Miscegenation of scalable and DEP3K performance evaluation of nosql-cassandra for bigdata applications deployed in cloud
CN102231854A (en) Multimedia broadcasting program recording method and data card equipment
US10547876B2 (en) Video cache rule generation system and method
CN108920131B (en) Data processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant