CN108418826A - Video file processing method, device, server and storage medium - Google Patents

Video file processing method, device, server and storage medium Download PDF

Info

Publication number
CN108418826A
CN108418826A CN201810217774.8A CN201810217774A CN108418826A CN 108418826 A CN108418826 A CN 108418826A CN 201810217774 A CN201810217774 A CN 201810217774A CN 108418826 A CN108418826 A CN 108418826A
Authority
CN
China
Prior art keywords
video
information
encryption
video file
network address
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
CN201810217774.8A
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.)
Digital Film Giant Screen (beijing) Co Ltd
Original Assignee
Digital Film Giant Screen (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 Digital Film Giant Screen (beijing) Co Ltd filed Critical Digital Film Giant Screen (beijing) Co Ltd
Priority to CN201810217774.8A priority Critical patent/CN108418826A/en
Publication of CN108418826A publication Critical patent/CN108418826A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0861Network architectures or network communication protocols for network security for authentication of entities using biometrical features, e.g. fingerprint, retina-scan
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Abstract

The present invention provides a kind of video file processing method, device, server and storage mediums, are related to video technique field.The video file processing method includes:Receive the video acquisition request that user terminal is sent depending on the user's operation;Whether it is default network operator in network operator information, network address information is default network address, and when location information is within the scope of predeterminated position, sends finger print information to user terminal and obtains request;It receives the finger print information that user terminal is sent and judges whether the corresponding video file of video name can obtain based on the corresponding authority information of account information when finger print information is matched with user fingerprints;When the corresponding video file of video name can obtain, the corresponding video file of video name is encrypted, encrypted encrypted video file is obtained;Encrypted video file is sent to the user terminal.Video file processing method, device, server and the storage medium can promote the safety of transmission of video.

Description

Video file processing method, device, server and storage medium
Technical field
The present invention relates to video technique fields, in particular to a kind of video file processing method, device, server And storage medium.
Background technology
With the rapid development of network technology, demand of the people to Internet video is also higher and higher.Currently, for video text The processing of part and transmission are generally only simple encryption, judge without information such as identity to user, file is caused to pass Defeated safety is not high.
Invention content
In view of this, an embodiment of the present invention provides a kind of video file processing method, device, server and storages to be situated between Matter.
To achieve the goals above, the technical solution adopted by the present invention is as follows:
In a first aspect, an embodiment of the present invention provides a kind of video file processing method, it is applied to video file processing Server, the method includes:Receive the video acquisition request that user terminal is sent depending on the user's operation, the video acquisition Request includes network address information, network operator information, location information, account information, the terminal number of the user terminal And video name;The video acquisition request is responded, judges whether the network operator information is default network operator, Judge whether the network address information is default network address, and judges the location information whether in predeterminated position range It is interior;Whether it is default network operator in the network operator information, the network address information is default network address, and When the location information is within the scope of predeterminated position, sends finger print information to the user terminal and obtain request;Receive the use The finger print information that family terminal is sent, and judge finger print information user fingerprints corresponding with the pre-stored account information Whether match;When the finger print information is matched with the user fingerprints, sentenced based on the corresponding authority information of the account information Whether the corresponding video file of the video name of breaking can obtain;It can be obtained in the corresponding video file of the video name When, it is based on the network address information, the terminal number, the corresponding video type of the video name and current time, The corresponding video file of the video name is encrypted using the pre-stored video type corresponding Encryption Algorithm, Obtain encrypted encrypted video file;The encrypted video file is sent to the user terminal.
Second aspect, an embodiment of the present invention provides a kind of video file processing unit, the clothes for video file processing Business device, described device include:Request receiving module, the first judgment module, request sending module, the second judgment module, third are sentenced Disconnected module, video-encryption module and video sending module, wherein the request receiving module for receive user terminal according to The video acquisition request that the operation of user is sent, video acquisition request include the user terminal network address information, Network operator information, location information, account information, terminal number and video name;First judgment module is for ringing It answers the video acquisition to ask, judges whether the network operator information is default network operator, with judging the network Whether whether location information is default network address, and judge the location information within the scope of predeterminated position;The request hair Send module for whether being default network operator in the network operator information, the network address information is default network Address, and when the location information is within the scope of predeterminated position, sends finger print information to the user terminal and obtain request;It is described Second judgment module is used to receive the finger print information that the user terminal is sent, and judge the finger print information with it is pre-stored Whether the corresponding user fingerprints of the account information match;The third judgment module is used in the finger print information and the use When the fingerprint matching of family, whether the corresponding video file of the video name is judged based on the corresponding authority information of the account information It can obtain;The video-encryption module is used for when the corresponding video file of the video name can obtain, based on described Network address information, the terminal number, the corresponding video type of the video name and current time, using prestoring The video type corresponding Encryption Algorithm the corresponding video file of the video name is encrypted, obtain encrypted Encrypted video file;The video sending module is used to the encrypted video file being sent to the user terminal.
The third aspect, an embodiment of the present invention provides a kind of server, the server includes memory and processor, institute It states memory and is stored with computer instruction, when the computer instruction is read and executed by the processor, make the processing Device executes the video file processing method that above-mentioned first aspect provides.
Fourth aspect is stored with computer an embodiment of the present invention provides a kind of storage medium, in the storage medium and refers to It enables, wherein the computer instruction executes the video file processing method that above-mentioned first aspect provides when being read and running.
Video file processing method, device, server and storage medium provided in an embodiment of the present invention, by receiving user The request of video acquisition that terminal is sent depending on the user's operation, the video acquisition request include the network of the user terminal Location information, network operator information, location information, account information, terminal number and video name;It is then responding to the video Request is obtained, judges whether the network operator information is default network operator, whether judges the network address information To preset network address, and judge the location information whether within the scope of predeterminated position;In the network operator information Whether it is default network operator, the network address information is default network address, and the location information is in predeterminated position When in range, sends finger print information to the user terminal and obtain request;The finger print information that the user terminal is sent is received again, And judge whether finger print information user fingerprints corresponding with the pre-stored account information match;Believe in the fingerprint When breath is matched with the user fingerprints, judges that the video name is corresponding based on the corresponding authority information of the account information and regard Whether frequency file can obtain;When the corresponding video file of the video name can obtain, believed based on the network address Breath, the terminal number, the corresponding video type of the video name and current time, utilize the pre-stored video The corresponding video file of the video name is encrypted in the corresponding Encryption Algorithm of type, obtains encrypted encrypted video text Part;The encrypted video file is finally sent to the user terminal.The video file processing method, device, server and Storage medium verifies the multiple information of user, and is encrypted to video file according to multiple information, to increase The safety of video file transfer is added.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment cited below particularly, and coordinate Appended attached drawing, is described in detail below.
Description of the drawings
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art The every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Fig. 1 shows the interaction figure of server and user terminal provided in an embodiment of the present invention;
Fig. 2 shows the block diagrams of server provided in an embodiment of the present invention;
Fig. 3 shows the flow chart of video file processing method provided in an embodiment of the present invention;
Fig. 4 shows the module map of video file processing unit provided in an embodiment of the present invention.
Specific implementation mode
Below in conjunction with attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete Ground describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Usually exist The component of the embodiment of the present invention described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause This, the detailed description of the embodiment of the present invention to providing in the accompanying drawings is not intended to limit claimed invention below Range, but it is merely representative of the selected embodiment of the present invention.Based on the embodiment of the present invention, those skilled in the art are not doing The every other embodiment obtained under the premise of going out creative work, shall fall within the protection scope of the present invention.
It should be noted that:Similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined, then it further need not be defined and explained in subsequent attached drawing in a attached drawing.Meanwhile the present invention's In description, term " first ", " second " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
Fig. 1 shows that literary server 100 and multiple user terminals 200 provided in an embodiment of the present invention interacted shows It is intended to.The server 100 is communicatively coupled by network and one or more user terminals 200, with into row data communication Or interaction.The server 100 can be network server, database server etc..The user terminal 200 can be personal Computer (personal computer, PC), tablet computer, smart mobile phone, personal digital assistant (personal digital Assistant, PDA) etc..Server 100 and user terminal 200 in Fig. 1 are only to illustrate, and are not intended as specifically limiting.
Fig. 2 shows a kind of structure diagrams can be applied to the server in the embodiment of the present invention.As shown in Fig. 2, service Device 100 includes memory 102, storage control 104, one or more (one is only shown in figure) processors 106, Peripheral Interface 108, radio-frequency module 110, audio-frequency module 112, display unit 114 etc..These components pass through one or more communication bus/signal Line 116 mutually communicates.
Memory 102 can be used for storing software program and module, such as the video file processing side in the embodiment of the present invention Method and the corresponding program instruction/module of device, processor 106 by operation be stored in software program in memory 102 and Module, to perform various functions application and data processing, such as video file processing method provided in an embodiment of the present invention.
Memory 102 may include high speed random access memory, may also include nonvolatile memory, such as one or more magnetic Property storage device, flash memory or other non-volatile solid state memories.Processor 106 and other possible components are to storage The access of device 102 can carry out under the control of storage control 104.
Peripheral Interface 108 couples various input/output devices to processor 106 and memory 102.In some implementations In example, Peripheral Interface 108, processor 106 and storage control 104 can be realized in one single chip.In some other reality In example, they can be realized by independent chip respectively.
Radio-frequency module 110 is used to receive and transmit electromagnetic wave, realizes the mutual conversion of electromagnetic wave and electric signal, thus with Communication network or other equipment are communicated.
Audio-frequency module 112 provides a user audio interface, may include that one or more microphones, one or more raises Sound device and voicefrequency circuit.
Display unit 114 provides a display interface between server 100 and user.Specifically, display unit 114 to User shows that video output, the content of these videos output may include word, figure, video and its arbitrary combination.
It is appreciated that structure shown in Fig. 2 is only to illustrate, server 100 may also include than shown in Fig. 2 more or more Few component, or with the configuration different from shown in Fig. 2.Hardware, software or its group may be used in each component shown in Fig. 2 It closes and realizes.
First embodiment
As Fig. 3 shows a kind of flow chart of video file processing method provided in an embodiment of the present invention.Fig. 3 is referred to, The video file processing method includes:
Step S110:The video acquisition request that user terminal is sent depending on the user's operation is received, the video acquisition is asked Ask network address information including the user terminal, network operator information, location information, account information, terminal number with And video name.
User, can be by sending video acquisition request when needing the video file of acquisition demand to user terminal.It is right It answers, server receives the video acquisition request of user terminal transmission.
In embodiments of the present invention, video acquisition request may include the device address information of the user terminal, positioning Information, account information, terminal number and video name.Wherein, network address information can be that the IP address of user terminal is believed Breath.Network operator information can be the operator for the network that user uses, such as China Telecom etc..Location information can be warp Latitude information.Account information can be the id information of user.Terminal number can be that the ID of equipment is numbered.Video name can be The file name of video.Certainly, in embodiments of the present invention the device address information, location information, account information of user terminal, The concrete type and content of terminal number and video name are not intended as limiting.
Step S120:The video acquisition request is responded, judges whether the network operator information is default network fortune Quotient is sought, judges whether the network address information is default network address, and judge the location information whether in default position It sets in range.
It is obtaining video acquisition request and then video acquisition request is being responded.Since server can be solely spy The user for determining network operator carries out server, it is therefore desirable to judge the network operator information of user terminal.And Can also be that user binds the operator's informaiton of register account number and account, so as to test in this step user Card enhances safety.
The case where due to presence server being only specific user service, can be stored in server it is multiple can be with The preset address information of service.Multiple preset address information that can be serviced can form preset address range of information.
In addition, the case where being only specific regional service there is also server, therefore server can be stored with and can take The default network address of business.
Specifically, may determine that whether network address information matches with any default network address.For example, preset address is believed Breath includes 222.209.28.21,222.209.28.22,222.209.28.23,222.209.28.24,222.209.28.25 etc. Multiple preset address, device address information 222.209.28.25 are then determined as that network address information is default network address; If the address information obtained is 222.209.28.2, it is default network address to be determined as network address information not.It needs to illustrate , the above default network address and network address information be only for example, do not represent actual preset address information and Device address information.
In addition, when judging that location information is whether within the scope of predeterminated position, it can be determined that whether location information is default Any position in position range.
Step S130:Whether it is default network operator in the network operator information, the network address information is Default network address, and when the location information is within the scope of predeterminated position, sends finger print information to the user terminal and obtain Request.
Judge that network operator information is default network operator in the step s 120, the device address information with it is pre- If address information matches, and when the location information is within the scope of predeterminated position, it may be considered that the user terminal meets service The conditions of service of device.
In embodiments of the present invention, after determining that the user terminal meets conditions of service, it is also necessary to the body of user Part is confirmed.
In embodiments of the present invention, finger print information acquisition request can be sent to user terminal, gathered around in order to obtain user There is the finger print information of verification.
Step S140:The finger print information that the user terminal is sent is received, and judges the finger print information and prestores The corresponding user fingerprints of the account information whether match.
User terminal is sent to clothes after receiving finger print information acquisition request after can acquiring the finger print information of user Business device.Corresponding, server receives the finger print information of user terminal transmission.
Then, then judge finger print information user fingerprints corresponding with the pre-stored account information whether Match.Specifically the user fingerprints of the corresponding user of above-mentioned account information can be first searched, and be read out.Then above-mentioned finger is identified again The similarity of line information and user fingerprints judges above-mentioned finger print information and user fingerprints when similarity is more than predetermined threshold value Match.For judging that finger print information and the whether matched method of preset fingerprint information can be calculated based on the micro- positive fingerprint recognition in Guangzhou Method MZFinger5.0 is realized.Certainly, the algorithm of specific fingerprint recognition is not intended as limiting in embodiments of the present invention.
Step S150:When the finger print information is matched with the user fingerprints, it is based on the corresponding power of the account information Limit information judges whether the corresponding video file of the video name can obtain.
It is understood that the video file that each user can get is different, it is therefore desirable to whether can be with to user Desired file is obtained to be judged.
Specifically, step S150 may include:
The account grade of the user is searched based on the account information;Obtain the user's according to the account grade Authority information;According to the authority information, file download list corresponding with the authority information is searched;Judge the video name Corresponding video file is claimed to whether there is in the file download list;If the video file is present in the file download row Table then judges that the corresponding video file of the video name can be downloaded.
It is understood that different accounts is corresponding with different account grades, the corresponding grade of each account is stored in In server, the corresponding permission of each grade is also stored in server.In addition, the file download of the corresponding permission of each grade List is also stored in server, so as to judge that the corresponding video file of video name that user wants to download whether may be used To download.
Step S160:When the corresponding video file of the video name can obtain, based on the network address information, The terminal number, the corresponding video type of the video name and current time, utilize the pre-stored video class The corresponding video file of the video name is encrypted in the corresponding Encryption Algorithm of type, obtains encrypted encrypted video text Part.
Judge that video file can be downloaded and then corresponding video file is encrypted in step S150.
Specifically, step S150 may include:
Based on the network address information, the terminal number, the corresponding video type of the video name and current Time generates encryption key;Read the corresponding video file of the video name;Based on the encryption key, using prestoring Encryption Algorithm the video file is encrypted, obtain encrypted encrypted video file.
In embodiments of the present invention, it is corresponding that the network address information, the terminal number, the video name are based on Video type and current time generate encryption key, may include:
It converts the network address information to the first encryption factor by the first algorithm;By the second algorithm by the end End number is converted into the second encryption factor;The corresponding video type of the video name is converted to third by third algorithm to add The close factor;It converts the current time to the 4th encryption factor by the 4th algorithm;Using the 5th algorithm according to described first Encryption factor, second encryption factor, the third encryption factor and the 4th encryption factor generate encryption key.
In embodiments of the present invention, network address information is converted by the first encryption factor by the first algorithm, can wrapped It includes:
Convert network address information to numerical data;The numerical data is obtained by the first default formula model calculating Much bit values;Each position of the multidigit numerical value is subjected to addition summation, obtains first and value;If described first and value position Number is more than one, then is summed up to each position of described first and value, obtains second and value;If described second and value digit It is summed up more than one, then to each position of described second and value, whether judge adduction is one digit number value with value;Until adding It is one digit number value with obtain and value, using the one digit number value as the first encryption factor.
Specifically, when network address information is IP address, then it can be directly as numerical data.The numerical data is led to It crosses the first default formula model and calculates acquisition multidigit numerical value.The first default formula model does not limit in the present embodiment, can Be arbitrarily can be to the formula model that numerical data is calculated, such as unitary polynomial equation or other more complicated calculating Formula obtains the multidigit numerical value with long number by the first default formula.
Each position of the multidigit numerical value is subjected to addition summation again, obtains first and value.That is, multidigit numerical value packet Multidigit is included, if five-digit number value includes 10,010,000,000 five-digit numbers, then the number in each numerical digit can be summed up, obtain first And value.
If described first and the digit of value be more than one, then each position of described first and value is summed up, acquisition the Two and value;If described second is more than one with the digit being worth, then sums up each position of described second and value, judge to sum it up And value whether be one digit number value;If second and value be one, using this second and value as the first encryption factor, if this Two and value be not one, continue to this second and each numerical digit of value sum up, what is obtained until adduction is one digit number with value Value, using the one digit number value as the first encryption factor.That is, constantly being summed up to obtain and value, in adduction When being as a result one digit number value, using the one digit number value as the first encryption factor.Certainly, in the present embodiment, adduction number also may be used To be preset, after the adduction of preset adduction number, obtained value is used as the first encryption factor, no It is the value for including how many a numerical digits to manage first encryption factor.
It is similar, the terminal number is converted by the second encryption factor by the second algorithm, above-mentioned the can also be used One algorithm converts terminal number to the second encryption factor.Terminal number, can be directly as due to for decimal data Numerical data.Video type is usually letter, can be converted to decimal data according to the number of the corresponding alphabet of letter.When The preceding time, can also be directly as numerical data due to being also decimal data.Then above-mentioned processing procedure is pressed again to convert For the second encryption factor.
Video type is usually letter, can be converted to decimal data according to the number of the corresponding alphabet of letter.So Afterwards, then by the above-mentioned method for converting network address information to the first encryption factor, the corresponding numerical data of video type is turned Turn to third encryption factor.
It converts current time to the 4th encryption factor by the 4th algorithm, may include:
The current time can be the time for including date number, such as on March 9th, 2018, then its number for including is 20180309.It converts current time to dead encryption factor by the 4th algorithm, can also be to be similar to through the first algorithm Convert network address information to the first encryption factor, specifically, can be, the corresponding number of current time is pre- by second Imputation formula model, which calculates, obtains multidigit numerical value, and the second formula model and the first formula model can be the same or different, or Which kind of formula model parameter difference in person's formula model, the first formula model and the second formula model are specially in this reality It is not limited in applying.
Each position of the multidigit numerical value is subjected to addition summation again, obtains third and value;If the position of the third and value Number is more than one, then is summed up to each position of the third and value, obtains the 4th and value;If the described 4th and value digit Summed up more than one, then to each position of the described 4th and value, until adduction obtain and value be one digit number value, with this one Bit value is as the 4th encryption factor.Likewise, in the present embodiment, the adduction number of corresponding current time can also be to set in advance Fixed, after the adduction of the preset adduction number, obtained value is used as the 4th encryption factor, no matter the 4th Encryption factor is the value for including how many a numerical digits.
In addition, either divide in this embodiment, when current time can also be accurate to or the second, no matter current time is accurate to When or every minute and second, the time can be indicated by number, such as the March in 2018 of afternoon four on the 9th when, corresponding number can To be 2018030916, then pass through the 4th encryption factor of time corresponding numerical calculation acquisition.
To obtain device address information, the terminal number, the corresponding video type of the video name and current Time corresponding first encryption factor, the second encryption factor, third encryption factor and the 4th encryption factor.
Then, using the 5th algorithm according to first encryption factor, second encryption factor, the third encryption because Sub and described 4th encryption factor generates encryption key.
Specific 5th algorithm is not intended as limiting, and can be polynomial equation or other more complicated algorithms, effect A value conduct is obtained to calculate the first encryption factor, the second encryption factor, third encryption factor and the 4th encryption factor Encryption key.
In embodiments of the present invention, by the first encryption factor, the second encryption factor, third encryption factor and the 4th encryption The algorithm that the factor generates encryption key is not intended as limiting, or customized algorithm, and can be to a certain extent Its complexity is improved, to promote safety.
After obtaining encryption key, the corresponding Encryption Algorithm of video type for the video that user to be obtained can be searched. It is understood that different video type uses different Encryption Algorithm, further to promote the safety of transmission of video.Example Such as, the first video type uses DES (Data Encryption Standard) Encryption Algorithm, the second video type to use AES (Advanced Encryption Standard) Encryption Algorithm, third video type use RSA (Rivest Shamir Adleman) Encryption Algorithm etc..
Then, then it is based on above-mentioned encryption key, and using the corresponding Encryption Algorithm of above-mentioned video type, to user demand The corresponding video file of video name is encrypted, and obtains encrypted encrypted video file.
Step S170:The encrypted video file is sent to the user terminal.
Finally, then by encrypted encrypted video file it is sent to the user terminal.
In embodiments of the present invention, which can also include:
Receive the decryption of video request that the user terminal is sent, wherein the decryption of video request includes:Network address Information, terminal number, video type and current time;According to the network address information, the terminal number, the video Type and the current time generate decruption key;The decruption key is sent to the user terminal, so that the use Family terminal solves the encrypted video file according to the decruption key and the corresponding decipherment algorithm of the video type It is close decrypted after video file, the decipherment algorithm is corresponding with the Encryption Algorithm.
It is understood that can be according to the information of generation encryption key when encryption, then user is verified, further Ensure the safety of video, the case where preventing video file from being usurped by other people.
In addition, the particular content for generating decruption key is corresponding with the content of encryption key is generated, particular content may refer to Above-mentioned steps S160, this is no longer going to repeat them.
Second embodiment
Second embodiment of the invention provides a kind of video file processing unit 300, is applied to video file and handles Server, refer to Fig. 4, which includes:Request receiving module 310, the first judgment module 320, Request sending module 330, the second judgment module 340, third judgment module 350, video-encryption module 360 and video send mould Block 370.Wherein, the request receiving module 310 is asked for receiving the video acquisition that user terminal is sent depending on the user's operation It asks, the video acquisition request includes network address information, network operator information, location information, the account of the user terminal Number information, terminal number and video name;First judgment module, in responding the video acquisition request, is judged with 320 Whether the network operator information is default network operator, judges whether the network address information is with presetting network Location, and judge the location information whether within the scope of predeterminated position;The request sending module 330 is used in the network Whether operator's informaiton is default network operator, and the network address information is default network address, and the location information When within the scope of predeterminated position, sends finger print information to the user terminal and obtain request;Second judgment module 340 is used for The finger print information that the user terminal is sent is received, and judges that the finger print information is corresponding with the pre-stored account information User fingerprints whether match;The third judgment module 350 is used for when the finger print information is matched with the user fingerprints, Judge whether the corresponding video file of the video name can obtain based on the corresponding authority information of the account information;It is described Video-encryption module 360 is used for when the corresponding video file of the video name can obtain, and is believed based on the network address Breath, the terminal number, the corresponding video type of the video name and current time, utilize the pre-stored video The corresponding video file of the video name is encrypted in the corresponding Encryption Algorithm of type, obtains encrypted encrypted video text Part;The video sending module 370 is used to the encrypted video file being sent to the user terminal.
In embodiments of the present invention, the video-encryption module 360 includes:Key generating unit, document reading unit with And encryption execution unit.Wherein, the Key generating unit is used for based on the network address information, the terminal number, institute It states the corresponding video type of video name and current time generates encryption key;The document reading unit is described for reading The corresponding video file of video name;The encryption execution unit is used to be based on the encryption key, is added using pre-stored The video file is encrypted in close algorithm, obtains encrypted encrypted video file.
In embodiments of the present invention, the Key generating unit is specifically used for:By the first algorithm by the network address Information is converted into the first encryption factor;It converts the terminal number to the second encryption factor by the second algorithm;Pass through third Algorithm converts the corresponding video type of the video name to third encryption factor;By the 4th algorithm by the current time It is converted into the 4th encryption factor;Using the 5th algorithm according to first encryption factor, second encryption factor, the third Encryption factor and the 4th encryption factor generate encryption key.
It should be noted that the video file processing unit that second embodiment of the invention provides is first embodiment of the invention The corresponding device of video file processing method of offer, other particular contents may refer to regarding for first embodiment of the invention offer Frequency file processing method, this is no longer going to repeat them.
3rd embodiment
Third embodiment of the invention provides a kind of server 100, refers to Fig. 1, which includes memory 102 and processor 106, the memory 102 be stored with computer instruction, when the computer instruction is by the processor 106 When reading and executing, the processor 106 is made to execute the implementation method for the approval process that first embodiment of the invention provides.
Fourth embodiment
Fourth embodiment of the invention provides a kind of storage medium, and computer instruction is stored in the storage medium, In, the computer instruction executes the realization side of the approval process of first embodiment of the invention offer when being read and running Method.
In conclusion video file processing method, device, server and storage medium provided in an embodiment of the present invention, lead to It crosses and receives the video acquisition request that user terminal is sent depending on the user's operation, the video acquisition request includes that the user is whole Network address information, network operator information, location information, account information, terminal number and the video name at end;Then it rings It answers the video acquisition to ask, judges whether the network operator information is default network operator, with judging the network Whether whether location information is default network address, and judge the location information within the scope of predeterminated position;In the network Whether operator's informaiton is default network operator, and the network address information is default network address, and the location information When within the scope of predeterminated position, sends finger print information to the user terminal and obtain request;The user terminal is received again to send Finger print information, and judge whether finger print information user fingerprints corresponding with the pre-stored account information match; When the finger print information is matched with the user fingerprints, the video is judged based on the corresponding authority information of the account information Whether the corresponding video file of title can obtain;When the corresponding video file of the video name can obtain, it is based on institute Network address information, the terminal number, the corresponding video type of the video name and current time are stated, using depositing in advance The corresponding video file of the video name is encrypted in the corresponding Encryption Algorithm of the video type of storage, after obtaining encryption Encrypted video file;The encrypted video file is finally sent to the user terminal.The video file processing method, dress It sets, server and storage medium are verified the multiple information of user, and carried out to video file according to multiple information Encryption, to increase the safety of video file transfer.
It should be noted that each embodiment in this specification is described in a progressive manner, each embodiment weight Point explanation is all difference from other examples, and the same or similar parts between the embodiments can be referred to each other. For device class embodiment, since it is basically similar to the method embodiment, so fairly simple, the related place ginseng of description See the part explanation of embodiment of the method.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through it Its mode is realized.The apparatus embodiments described above are merely exemplary, for example, the flow chart and block diagram in attached drawing are aobvious The device of multiple embodiments according to the present invention, architectural framework in the cards, the work(of method and computer program product are shown It can and operate.In this regard, each box in flowchart or block diagram can represent one of a module, section or code Point, a part for the module, section or code includes one or more for implementing the specified logical function executable Instruction.It should also be noted that at some as in the realization method replaced, the function of being marked in box can also be attached to be different from The sequence marked in figure occurs.For example, two continuous boxes can essentially be basically executed in parallel, they also may be used sometimes To execute in the opposite order, this is depended on the functions involved.It is also noted that each of block diagram and or flow chart The combination of box in box and block diagram and or flow chart, function or the dedicated of action are based on as defined in execution The system of hardware is realized, or can be realized using a combination of dedicated hardware and computer instructions.
In addition, each function module in each embodiment of the present invention can integrate to form an independent portion Point, can also be modules individualism, can also two or more modules be integrated to form an independent part.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module It is stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be expressed in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic disc or CD.It needs Illustrate, herein, relational terms such as first and second and the like be used merely to by an entity or operation with Another entity or operation distinguish, and without necessarily requiring or implying between these entities or operation, there are any this realities The relationship or sequence on border.Moreover, the terms "include", "comprise" or its any other variant are intended to the packet of nonexcludability Contain, so that the process, method, article or equipment including a series of elements includes not only those elements, but also includes Other elements that are not explicitly listed, or further include for elements inherent to such a process, method, article, or device. In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including the element Process, method, article or equipment in there is also other identical elements.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, any made by repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.It should be noted that:Similar label and letter exist Similar terms are indicated in following attached drawing, therefore, once being defined in a certain Xiang Yi attached drawing, are then not required in subsequent attached drawing It is further defined and is explained.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. a kind of video file processing method, which is characterized in that be applied to the server of video file processing, the method packet It includes:
The video acquisition request that user terminal is sent depending on the user's operation is received, the video acquisition request includes the user Network address information, network operator information, location information, account information, terminal number and the video name of terminal;
The video acquisition request is responded, judges whether the network operator information is to preset network operator, described in judgement Whether whether network address information is default network address, and judge the location information within the scope of predeterminated position;
Whether it is default network operator in the network operator information, the network address information is default network address, And the location information within the scope of predeterminated position when, to the user terminal send finger print information obtain request;
The finger print information that the user terminal is sent is received, and judges the finger print information and the pre-stored account information Whether corresponding user fingerprints match;
When the finger print information is matched with the user fingerprints, described in the corresponding authority information judgement of the account information Whether the corresponding video file of video name can obtain;
When the corresponding video file of the video name can obtain, based on the network address information, the terminal number, The corresponding video type of the video name and current time are calculated using the corresponding encryption of the pre-stored video type The corresponding video file of the video name is encrypted in method, obtains encrypted encrypted video file;
The encrypted video file is sent to the user terminal.
2. according to the method described in claim 1, it is characterized in that, based on the network address information, the terminal number, institute The corresponding video type of video name and current time are stated, the corresponding Encryption Algorithm of the pre-stored video type is utilized The corresponding video file of the video name is encrypted, encrypted encrypted video file is obtained, including:
Based on the network address information, the terminal number, the corresponding video type of the video name and current time Generate encryption key;
Read the corresponding video file of the video name;
Based on the encryption key, the video file is encrypted using pre-stored Encryption Algorithm, after obtaining encryption Encrypted video file.
3. according to the method described in claim 2, it is characterized in that, based on the network address information, the terminal number, institute It states the corresponding video type of video name and current time generates encryption key, including:
It converts the network address information to the first encryption factor by the first algorithm;
It converts the terminal number to the second encryption factor by the second algorithm;
It converts the corresponding video type of the video name to third encryption factor by third algorithm;
It converts the current time to the 4th encryption factor by the 4th algorithm;
Using the 5th algorithm according to first encryption factor, second encryption factor, the third encryption factor and institute It states the 4th encryption factor and generates encryption key.
4. according to the method described in claim 2, it is characterized in that, the method further includes:
Receive the decryption of video request that the user terminal is sent, wherein the decryption of video request includes:Network address is believed Breath, terminal number, video type and current time;
It is close that decryption is generated according to the network address information, the terminal number, the video type and the current time Key;
The decruption key is sent to the user terminal, so that the user terminal is according to the decruption key and described The video file after being decrypted, the decryption is decrypted to the encrypted video file in the corresponding decipherment algorithm of video type Algorithm is corresponding with the Encryption Algorithm.
5. according to the method described in claim 1, it is characterized in that, judging institute based on the corresponding authority information of the account information State whether the corresponding video file of video name can be downloaded, including:
The account grade of the user is searched based on the account information;
The authority information of the user is obtained according to the account grade;
According to the authority information, file download list corresponding with the authority information is searched;
Judge that the corresponding video file of the video name whether there is in the file download list;
If the video file is present in the file download list, judge that the corresponding video file of the video name can be with It downloads.
6. a kind of video file processing unit, which is characterized in that be applied to the server of video file processing, described device packet It includes:Request receiving module, the first judgment module, request sending module, the second judgment module, third judgment module, video-encryption Module and video sending module, wherein
The request receiving module is used to receive the video acquisition request that user terminal is sent depending on the user's operation, the video Obtain network address information, network operator information, location information, account information, the terminal that request includes the user terminal Number and video name;
First judgment module judges whether the network operator information is default for responding the video acquisition request Network operator judges whether the network address information is default network address, and judge the location information whether Within the scope of predeterminated position;
Whether the request sending module is used in the network operator information be default network operator, the network address Information is default network address, and when the location information is within the scope of predeterminated position, and fingerprint letter is sent to the user terminal Breath obtains request;
Second judgment module is used to receive the finger print information that the user terminal is sent, and judge the finger print information with it is pre- Whether the corresponding user fingerprints of the account information first stored match;
The third judgment module is used for when the finger print information is matched with the user fingerprints, is based on the account information pair The authority information answered judges whether the corresponding video file of the video name can obtain;
The video-encryption module is used for when the corresponding video file of the video name can obtain, based on the network Location information, the terminal number, the corresponding video type of the video name and current time, using pre-stored described The corresponding video file of the video name is encrypted in the corresponding Encryption Algorithm of video type, obtains encrypted encryption and regards Frequency file;
The video sending module is used to the encrypted video file being sent to the user terminal.
7. device according to claim 6, which is characterized in that the video-encryption module includes:Key generating unit, text Part reading unit and encryption execution unit, wherein
The Key generating unit is used for corresponding based on the network address information, the terminal number, the video name Video type and current time generate encryption key;
The document reading unit is for reading the corresponding video file of the video name;
The encryption execution unit is used to be based on the encryption key, using pre-stored Encryption Algorithm to the video file It is encrypted, obtains encrypted encrypted video file.
8. device according to claim 7, which is characterized in that the Key generating unit is specifically used for:
It converts the network address information to the first encryption factor by the first algorithm;
It converts the terminal number to the second encryption factor by the second algorithm;
It converts the corresponding video type of the video name to third encryption factor by third algorithm;
It converts the current time to the 4th encryption factor by the 4th algorithm;
Using the 5th algorithm according to first encryption factor, second encryption factor, the third encryption factor and institute It states the 4th encryption factor and generates encryption key.
9. a kind of server, which is characterized in that the server includes memory and processor, and the memory is stored with calculating Machine instructs, and when the computer instruction is read and executed by the processor, the processor is made to execute such as claim 1-5 In method described in any claim.
10. a kind of storage medium, which is characterized in that be stored with computer instruction in the storage medium, wherein the computer Instruct the method executed when being read and running as described in any claim in claim 1-4.
CN201810217774.8A 2018-03-16 2018-03-16 Video file processing method, device, server and storage medium Pending CN108418826A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810217774.8A CN108418826A (en) 2018-03-16 2018-03-16 Video file processing method, device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810217774.8A CN108418826A (en) 2018-03-16 2018-03-16 Video file processing method, device, server and storage medium

Publications (1)

Publication Number Publication Date
CN108418826A true CN108418826A (en) 2018-08-17

Family

ID=63131744

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810217774.8A Pending CN108418826A (en) 2018-03-16 2018-03-16 Video file processing method, device, server and storage medium

Country Status (1)

Country Link
CN (1) CN108418826A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111464499A (en) * 2020-03-06 2020-07-28 深圳壹账通智能科技有限公司 Electronic warehouse receipt tracing method and device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050033985A1 (en) * 2003-07-26 2005-02-10 Innomedia Pte Ltd. Firewall penetration system and method for real time media communications
US20120096538A1 (en) * 2010-10-15 2012-04-19 Verizon Patent And Licensing Inc. Dynamic mobile streaming application suppression
CN105611073A (en) * 2016-02-25 2016-05-25 努比亚技术有限公司 Information processing device and method
CN106375326A (en) * 2016-09-12 2017-02-01 山西特信环宇信息技术有限公司 Mobile phone two-way verification terminal and method
CN107241364A (en) * 2017-08-10 2017-10-10 广州杰之良软件有限公司 Document down loading method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050033985A1 (en) * 2003-07-26 2005-02-10 Innomedia Pte Ltd. Firewall penetration system and method for real time media communications
US20120096538A1 (en) * 2010-10-15 2012-04-19 Verizon Patent And Licensing Inc. Dynamic mobile streaming application suppression
CN105611073A (en) * 2016-02-25 2016-05-25 努比亚技术有限公司 Information processing device and method
CN106375326A (en) * 2016-09-12 2017-02-01 山西特信环宇信息技术有限公司 Mobile phone two-way verification terminal and method
CN107241364A (en) * 2017-08-10 2017-10-10 广州杰之良软件有限公司 Document down loading method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111464499A (en) * 2020-03-06 2020-07-28 深圳壹账通智能科技有限公司 Electronic warehouse receipt tracing method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN102572314B (en) Image sensor and payment authentication method
CN107077670B (en) Method and apparatus for transmitting and processing transaction message, computer readable storage medium
CN107241364B (en) File downloading method and device
CN107409002A (en) Method and apparatus of the repeatable encryption key of general certainty to expression are provided for all SKU, canister and article
EP3220573B1 (en) Method and system for controlling encryption of information and analyzing information as well as terminal
CN108370314A (en) Use the secure storage of data and the device of retrieval
CN108197891A (en) A kind of electronic signature device and method based on block chain
CN104011760A (en) Method for generating one-time card number
CN107707347A (en) The backup method and device of user key, the introduction method and device of user key
CN102782694A (en) Transaction auditing for data security devices
CN109922084A (en) Key management method, device and electronic equipment
CN108399521A (en) Logistics Distribution Method, device, server and storage medium
CN109583215A (en) It is a kind of to handle the method and device of collage-credit data, block chain data-sharing systems
CN108681676A (en) Data managing method and device, system, electronic equipment, program and storage medium
CN108347629A (en) Video file processing method, device, server and storage medium
CN110909383A (en) Electronic invoice management method and device, electronic equipment and storage medium
CN111914279B (en) Efficient and accurate privacy intersection system, method and device
CN110659899B (en) Offline payment method, device and equipment
CN110266653B (en) Authentication method, system and terminal equipment
CN108183889A (en) Identity identifying method and identification authentication system
CN111401916B (en) Transaction risk identification method and device
CN108418826A (en) Video file processing method, device, server and storage medium
CN107911220B (en) Signature method, signature device and terminal equipment
CN110598427A (en) Data processing method, system and storage medium
CN110766487A (en) Kitchen equipment leasing method and device, storage medium and electronic equipment

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180817