CN110365629A - A method and system for safe storage of real-time monitoring video data - Google Patents
A method and system for safe storage of real-time monitoring video data Download PDFInfo
- Publication number
- CN110365629A CN110365629A CN201810320580.0A CN201810320580A CN110365629A CN 110365629 A CN110365629 A CN 110365629A CN 201810320580 A CN201810320580 A CN 201810320580A CN 110365629 A CN110365629 A CN 110365629A
- Authority
- CN
- China
- Prior art keywords
- data
- video
- hash value
- video data
- cloud server
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 32
- 238000012544 monitoring process Methods 0.000 title claims abstract description 26
- 238000012545 processing Methods 0.000 claims description 12
- 238000013500 data storage Methods 0.000 claims description 6
- 238000012795 verification Methods 0.000 abstract description 11
- 238000013524 data verification Methods 0.000 description 4
- 238000011161 development Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 238000013481 data capture Methods 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013480 data collection Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000001737 promoting effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/06—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
- H04L9/0618—Block ciphers, i.e. encrypting groups of characters of a plain text message using fixed encryption transformation
- H04L9/0625—Block ciphers, i.e. encrypting groups of characters of a plain text message using fixed encryption transformation with splitting of the data block into left and right halves, e.g. Feistel based algorithms, DES, FEAL, IDEA or KASUMI
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/06—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
- H04L9/0618—Block ciphers, i.e. encrypting groups of characters of a plain text message using fixed encryption transformation
- H04L9/0631—Substitution permutation network [SPN], i.e. cipher composed of a number of stages or rounds each involving linear and nonlinear transformations, e.g. AES algorithms
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/06—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
- H04L9/0643—Hash functions, e.g. MD5, SHA, HMAC or f9 MAC
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/18—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
- H04N7/181—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast for receiving images from a plurality of remote sources
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Power Engineering (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
本发明涉及一种实时监控视频数据安全存储的方法及系统,首先定时采集缓存在视频采集终端上的数据,然后对其进行数据分块、MD5编码、hash校验和数据加密处理后上传到云端服务器,在云端服务器上根据视频采集终端的IP创建数据库并对数据以“时间+hash值”和“hash值+数据块”的方式进行存储,设计的客户端能够让用户根据IP和时间进行快速定位并下载数据到本地,解密下载数据形成文件后用户可以快速回放。本发明通过定时采集数据提高了视频采集终端存储空间的利用率;通过二次校验的方式保证了同一视频数据在云端服务器上只会存储一次;通过数据加解密的方式保证了视频数据的安全;以“时间+hash值”和“hash值+时间”的方式进行存储提高了检索效率。
The invention relates to a method and system for the safe storage of real-time monitoring video data. First, the data buffered on the video collection terminal is collected regularly, and then the data is divided into blocks, MD5 encoded, hash checked, and encrypted, and then uploaded to the cloud. Server, create a database on the cloud server according to the IP of the video capture terminal and store the data in the form of "time + hash value" and "hash value + data block". The designed client allows users to quickly Locate and download the data to the local, after decrypting the downloaded data to form a file, the user can quickly play it back. The invention improves the utilization rate of the storage space of the video collection terminal by regularly collecting data; ensures that the same video data will only be stored once on the cloud server by means of secondary verification; and ensures the security of the video data by means of data encryption and decryption ;Storing in the form of "time + hash value" and "hash value + time" improves retrieval efficiency.
Description
技术领域technical field
本发明涉及监控视频安全存储领域,特别是一种实时监控视频数据安全存储的方法及系统。The invention relates to the field of safe storage of monitoring video, in particular to a method and system for safe storage of real-time monitoring video data.
背景技术Background technique
科技革新推动了社会的发展,人民生活水平不断提高,人们越来越重视使用高科技来保护自己的生命及财产安全,从而推动监控行业的发展。在视频监控领域,从发展角度来看,无数终端时刻产生的高清视频数据以TB甚至更大的基数增长,且人们对监控视频画质的要求越来越高;从使用角度来看,监控数据一般用于事后查证方面,因此要求存储时间较长,以至于直接导致存储成本增加;加之现在的系统存在数据检索性能差和视频回放慢等问题越来越受到人们的关注,因此这将推动监控领域空前发展。分析目前监控系统所解决问题的同时,总结可能存在但没有受到研究者关注的其他问题,例如:如果出现网络拥堵或断开,目前的监控系统可能会造成数据上传失败,转而将数据存储在本地,等网络恢复在上传,这种做法在一定程度上可行,但如果网络不能快速恢复,由于设置的本地存储空间有限,将不能维持较长时间的数据存储,出现了数据丢失的现象;目前大部分监控系统的视频数据都以明文信息进行存储,科技的发展给人们带来便利的同时也给恶意者创造了工具,而明文存储数据给其创造了机会,因此现在的监控数据存在严重安全隐患,如果数据泄露将导致用户隐私暴露的几率增加等众多问题亟需解决。Technological innovation has promoted the development of society, people's living standards have been continuously improved, and people have paid more and more attention to the use of high technology to protect their lives and property, thus promoting the development of the surveillance industry. In the field of video surveillance, from the perspective of development, the high-definition video data generated by countless terminals at any time is increasing by TB or even larger, and people have higher and higher requirements for the quality of surveillance video; from the perspective of use, surveillance data It is generally used for post-mortem verification, so it requires a long storage time, which directly leads to an increase in storage costs; in addition, the problems of poor data retrieval performance and slow video playback in the current system have attracted more and more attention, so this will promote Surveillance field has developed unprecedentedly. While analyzing the problems solved by the current monitoring system, summarize other problems that may exist but have not been paid attention to by researchers. For example, if the network is congested or disconnected, the current monitoring system may cause data upload failure, and instead store data in Locally, when the network is restored and uploading, this approach is feasible to a certain extent, but if the network cannot be restored quickly, due to the limited local storage space set, it will not be able to maintain data storage for a long time, and data loss occurs. Most of the video data of surveillance systems are stored in plaintext information. The development of technology brings convenience to people and creates tools for malicious people. The storage of data in plaintext creates opportunities for them. Therefore, the current surveillance data has serious security risks. Hidden dangers, if data leakage will increase the probability of user privacy exposure, and many other problems need to be solved urgently.
目前的视频监控系统(集中式存储和分布式云存储等)适用于大型监控场所,而对中小场所来说不太适用,且大部分都是针对视频数据流做处理。The current video surveillance systems (centralized storage and distributed cloud storage, etc.) are suitable for large-scale monitoring sites, but not suitable for small and medium-sized sites, and most of them are for processing video data streams.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本发明的目的是提出一种实时监控视频数据安全存储的方法及系统,既能够提高存储空间的使用率,又能在保证数据安全的同时间接保护用户隐私,还能方便事后快速查证。In view of this, the purpose of the present invention is to propose a method and system for the safe storage of real-time monitoring video data, which can not only improve the utilization rate of storage space, but also indirectly protect the privacy of users while ensuring data security, and also facilitate quick and easy after-the-fact. Verify.
本发明采用以下方案实现:一种实时监控视频数据安全存储的方法,包括数据采集处理阶段、数据校验存储阶段和数据下载回放阶段;The present invention adopts the following scheme to realize: a method for real-time monitoring video data safe storage, including a data acquisition and processing stage, a data verification storage stage and a data download and playback stage;
其中,所述数据采集处理阶段包括以下步骤:Wherein, the data acquisition and processing stage includes the following steps:
步骤S1:定时采集缓存在视频采集终端上的数据;Step S1: regularly collect data buffered on the video capture terminal;
步骤S2:对步骤S1采集到的数据根据其大小匹配合适的块大小,用以进行数据分块,得到数据块;Step S2: match the data collected in step S1 with a suitable block size according to its size, so as to divide the data into blocks to obtain data blocks;
步骤S3:对步骤S2得到的数据块进行MD5编码,得到hash值;Step S3: MD5 encoding is performed on the data block obtained in step S2 to obtain a hash value;
步骤S4:将步骤S3得到的hash值在hash库里做校验,如果当前hash值不存在原有的hash库中,则将该hash值插入hash库;Step S4: verify the hash value obtained in step S3 in the hash library, if the current hash value does not exist in the original hash library, insert the hash value into the hash library;
步骤S5:使用步骤S3得到的hash值作为密钥,对步骤S2的数据块进行AES加密,得到密文块;Step S5: use the hash value obtained in step S3 as a key to perform AES encryption on the data block in step S2 to obtain a ciphertext block;
步骤S6:将hash值和与其对应密文块上传到云端服务器;Step S6: upload the hash value and its corresponding ciphertext block to the cloud server;
其中,所述数据校验存储阶段包括以下步骤:Wherein, the data verification storage stage includes the following steps:
步骤S7:所述云端服务器接收步骤S6中视频采集终端上传的数据并进行缓存;Step S7: the cloud server receives and caches the data uploaded by the video capture terminal in step S6;
步骤S8:云端服务器获取当前时间,以时间和hash值、hash值和密文块的方式进行存储;Step S8: the cloud server obtains the current time and stores it in the form of time, hash value, hash value and ciphertext block;
其中,所述数据下载回放阶段包括以下步骤:Wherein, the data download and playback stage includes the following steps:
步骤S9:用户登录后,根据IP和起止时间在云端服务器上检索并下载数据;Step S9: after the user logs in, the data is retrieved and downloaded from the cloud server according to the IP and the start and end time;
步骤S10:对步骤S9下载的数据进行解密并写入文件;Step S10: decrypt the data downloaded in step S9 and write into a file;
步骤S11:通过本地查询的方式,获取步骤S10解密后的数据,在客户端进行视频回放。Step S11: Obtain the data decrypted in Step S10 by means of local query, and perform video playback on the client.
进一步地,步骤S1中,所述定时采集为用户根据视频采集终端实际产生的视频文件的时长进行采集时间的指定;所述视频采集终端包括视频终端摄像头、网络摄像头、或本地服务器。Further, in step S1, the timing collection is that the user specifies the collection time according to the duration of the video file actually generated by the video collection terminal; the video collection terminal includes a video terminal camera, a web camera, or a local server.
进一步地,步骤S2中所述数据分块为根据采集到的视频数据本身的大小选择合适的数据块大小对数据进行分块,其中,块大小包括8M、16M、或32M。Further, the data block in step S2 is to select an appropriate data block size to block the data according to the size of the collected video data itself, wherein the block size includes 8M, 16M, or 32M.
进一步地,步骤S5中的加密与步骤S10中的解密均采用对称加密方式,其算法包括AES、或DES,密钥为hash值。Further, the encryption in step S5 and the decryption in step S10 both use a symmetric encryption method, the algorithm includes AES or DES, and the key is a hash value.
进一步地,步骤S8具体为:首先获取当前时间,然后将时间和hash值作为第一对<key、value>进行存储,将hash值和密文块作为第二对<key、value>进行存储。Further, step S8 is specifically: first obtain the current time, then store the time and the hash value as the first pair of <key, value>, and store the hash value and the ciphertext block as the second pair of <key, value>.
进一步地,步骤S9中,所述检索并下载具体为:通过选择起止时间和IP在云端服务器上检索指定视频采集终端在指定时间段内的视频数据并下载到客户端。Further, in step S9, the retrieving and downloading specifically includes: retrieving the video data of the specified video capture terminal within the specified time period on the cloud server by selecting the start and end time and IP, and downloading to the client.
本发明还提供了一种上文所述的实时监控视频数据安全存储的方法的系统,包括视频采集终端、云端服务器、以及客户端;所述视频采集终端进行视频数据采集、处理及上传;所述云端服务器进行视频数据存储;所述客户端进行数据检索下载与视频回放;所述视频采集终端、云端服务器、以及客户端能够配合执行上文的方法。The present invention also provides a system for the above-mentioned method for real-time monitoring of video data safe storage, including a video capture terminal, a cloud server, and a client; the video capture terminal performs video data capture, processing and uploading; The cloud server performs video data storage; the client performs data retrieval and download and video playback; the video capture terminal, the cloud server, and the client can cooperate to execute the above method.
本发明针对缓存在本地的视频数据,定时采集它们然后经过一系列处理,最后以最少的空间来缓存并处理本地视频,缓解本地空间的压力,同时可以避免网络拥堵造成本地压力较大而出现数据丢失的问题。针对视频存储在本地做了一次校验,在云端服务器上做二次校验,确保同一视频只会存储一次,并采用以“时间+hash值”和“hash值+数据块”的递归方式对视频数据进行存储,在一定程度上解决检索问题。针对安全问题,采用数据加密的方式在一定程度上保证了视频数据的安全。人性化的查询界面将给用户最好的体验,最后完成的系统将给中小场所的用户带来极大便利,以弥补目前系统所存在的不足。The present invention aims at the video data cached locally, collects them regularly and then undergoes a series of processing, and finally caches and processes the local video with the least space, so as to relieve the pressure of the local space, and at the same time, it can avoid the occurrence of data due to the large local pressure caused by network congestion. Missing question. A verification is performed locally for the video storage, and a second verification is performed on the cloud server to ensure that the same video will only be stored once, and the recursive method of "time + hash value" and "hash value + data block" Video data is stored to solve the retrieval problem to a certain extent. For security issues, the data encryption method is used to ensure the security of video data to a certain extent. The user-friendly query interface will give users the best experience, and the finalized system will bring great convenience to users in small and medium-sized places to make up for the shortcomings of the current system.
与现有技术相比,本发明有以下有益效果:本发明不但能够解决存储空间利用率低、数据不安全问题,并且能够快速检索并下载监控视频以方便事后快速查证,达到了快速、安全存储的设计目标,适用于大规模推广使用,能应用到实际生产生活过程中。Compared with the prior art, the present invention has the following beneficial effects: the present invention can not only solve the problems of low utilization rate of storage space and insecure data, but also can quickly retrieve and download monitoring videos to facilitate quick verification afterwards, and achieve fast and safe storage. The design goal is suitable for large-scale promotion and use, and can be applied to the actual production and life process.
附图说明Description of drawings
图1为本发明实施例的方法示意图。FIG. 1 is a schematic diagram of a method according to an embodiment of the present invention.
具体实施方式Detailed ways
下面结合附图及实施例对本发明做进一步说明。The present invention will be further described below with reference to the accompanying drawings and embodiments.
如图1所示,本实施例提供了一种实时监控视频数据安全存储的方法,包括数据采集处理阶段、数据校验存储阶段和数据下载回放阶段;As shown in FIG. 1 , the present embodiment provides a method for real-time monitoring of video data safe storage, including a data acquisition and processing stage, a data verification storage stage, and a data download and playback stage;
其中,所述数据采集处理阶段包括以下步骤:Wherein, the data acquisition and processing stage includes the following steps:
步骤S1:定时采集缓存在视频采集终端上的数据;Step S1: regularly collect data buffered on the video capture terminal;
步骤S2:对步骤S1采集到的数据根据其大小匹配合适的块大小,用以进行数据分块,得到数据块;Step S2: match the data collected in step S1 with a suitable block size according to its size, so as to divide the data into blocks to obtain data blocks;
步骤S3:对步骤S2得到的数据块进行MD5编码,得到hash值;Step S3: MD5 encoding is performed on the data block obtained in step S2 to obtain a hash value;
步骤S4:将步骤S3得到的hash值在hash库里做校验,如果当前hash值不存在原有的hash库中,则将该hash值插入hash库;Step S4: verify the hash value obtained in step S3 in the hash library, if the current hash value does not exist in the original hash library, insert the hash value into the hash library;
步骤S5:使用步骤S3得到的hash值作为密钥,对步骤S2的数据块进行AES加密,得到密文块;Step S5: use the hash value obtained in step S3 as a key to perform AES encryption on the data block in step S2 to obtain a ciphertext block;
步骤S6:将hash值和与其对应密文块上传到云端服务器;Step S6: upload the hash value and its corresponding ciphertext block to the cloud server;
其中,所述数据校验存储阶段包括以下步骤:Wherein, the data verification storage stage includes the following steps:
步骤S7:所述云端服务器接收步骤S6中视频采集终端上传的数据并进行缓存;Step S7: the cloud server receives and caches the data uploaded by the video capture terminal in step S6;
步骤S8:云端服务器获取当前时间,以时间和hash值、hash值和密文块的方式进行存储;Step S8: the cloud server obtains the current time and stores it in the form of time, hash value, hash value and ciphertext block;
其中,所述数据下载回放阶段包括以下步骤:Wherein, the data download and playback stage includes the following steps:
步骤S9:用户登录后,根据IP和起止时间在云端服务器上检索并下载数据;Step S9: after the user logs in, the data is retrieved and downloaded from the cloud server according to the IP and the start and end time;
步骤S10:对步骤S9下载的数据进行解密并写入文件;Step S10: decrypt the data downloaded in step S9 and write into a file;
步骤S11:通过本地查询的方式,获取步骤S10解密后的数据,在客户端进行视频回放。Step S11: Obtain the data decrypted in Step S10 by means of local query, and perform video playback on the client.
在本实施例中,步骤S1中,所述定时采集为用户根据视频采集终端实际产生的视频文件的时长进行采集时间的指定;所述视频采集终端包括视频终端摄像头、网络摄像头、或本地服务器。In this embodiment, in step S1, the timing collection is that the user specifies the collection time according to the duration of the video file actually generated by the video collection terminal; the video collection terminal includes a video terminal camera, a web camera, or a local server.
在本实施例中,步骤S2中所述数据分块为根据采集到的视频数据本身的大小选择合适的数据块大小对数据进行分块,其中,块大小包括8M、16M、或32M。In this embodiment, the data block in step S2 is to select an appropriate data block size to block the data according to the size of the collected video data itself, wherein the block size includes 8M, 16M, or 32M.
在本实施例中,步骤S5中的加密与步骤S10中的解密均采用对称加密方式,其算法包括AES、或DES,密钥为hash值。In this embodiment, the encryption in step S5 and the decryption in step S10 both use a symmetric encryption method, the algorithm includes AES or DES, and the key is a hash value.
在本实施例中,步骤S8具体为:首先获取当前时间,然后将时间和hash值作为第一对<key、value>进行存储,将hash值和密文块作为第二对<key、value>进行存储。In this embodiment, step S8 is specifically as follows: first obtain the current time, then store the time and the hash value as the first pair of <key, value>, and use the hash value and the ciphertext block as the second pair of <key, value> to store.
在本实施例中,步骤S9中,所述检索并下载具体为:通过选择起止时间和IP在云端服务器上检索指定视频采集终端在指定时间段内的视频数据并下载到客户端。In this embodiment, in step S9, the retrieval and download is specifically: by selecting the start and end time and IP, retrieving the video data of the designated video capture terminal in the designated time period on the cloud server and downloading to the client.
本实施例还提供了一种上文所述的实时监控视频数据安全存储的方法的系统,包括视频采集终端、云端服务器、以及客户端;所述视频采集终端进行视频数据采集、处理及上传;所述云端服务器进行视频数据存储;所述客户端进行数据检索下载与视频回放;所述视频采集终端、云端服务器、以及客户端能够配合执行上文的方法。This embodiment also provides a system for the above-mentioned method for securely storing real-time monitoring video data, including a video capture terminal, a cloud server, and a client; the video capture terminal performs video data capture, processing, and uploading; The cloud server performs video data storage; the client performs data retrieval and download and video playback; the video capture terminal, the cloud server, and the client can cooperate to execute the above method.
较佳的,本实施例具体按照程序功能概括了实时监控视频数据安全存储系统的功能模块,具体为:Preferably, this embodiment specifically summarizes the functional modules of the real-time monitoring video data security storage system according to the program functions, specifically:
采集端:数据采集模块、数据处理模块、数据上传模块;Acquisition terminal: data acquisition module, data processing module, data upload module;
云端服务器端:数据接收校验模块、数据存储模块;Cloud server side: data receiving verification module, data storage module;
客户端:用户登录模块、数据检索下载模块、数据解密模块和数据回放模块;Client: user login module, data retrieval and download module, data decryption module and data playback module;
所述数据采集模块,用于定时采集指定监控终端缓存视频的目录,用户根据实际终端产生视频的周期设置采集时长;The data collection module is used to periodically collect the directory of the video cached by the designated monitoring terminal, and the user sets the collection duration according to the period of the actual terminal generating the video;
所述数据处理模块,用于处理采集模块所采集到的数据,具体为:所述的数据分块为根据采集到数据的大小选择合适的数据块大小进行分块,获得数据块;所述的MD5编码是对前面的数据块进行MD5编码得到hash值;所述的第一次校验是将hash值在本地hash库里做校验,不存在则将hash值插入以扩充hash库;所述的数据加密是对数据块进行加密操作,使用hash值作为加密密钥通过加密算法对数据块进行加密得到密文块;The data processing module is used to process the data collected by the collection module, specifically: the data division is to select an appropriate data block size according to the size of the collected data to perform division into blocks to obtain data blocks; MD5 encoding is to perform MD5 encoding on the previous data block to obtain the hash value; the first verification is to verify the hash value in the local hash library, and if it does not exist, insert the hash value to expand the hash library; the The data encryption is to encrypt the data block, and use the hash value as the encryption key to encrypt the data block through the encryption algorithm to obtain the ciphertext block;
所述数据上传模块,用于上传处理模块所得到的hash值和密文块到云端服务器;The data uploading module is used to upload the hash value and the ciphertext block obtained by the processing module to the cloud server;
所述数据接收校验模块,用于对视频采集终端上传的数据进行接收并校验,以进行下一步工作;The data receiving and verifying module is used to receive and verify the data uploaded by the video capture terminal, so as to carry out the next step;
所述数据存储模块,用于存储hash值和密文块;The data storage module is used to store the hash value and the ciphertext block;
所述用户登录模块,用于验证用户信息是否存在;The user login module is used to verify whether user information exists;
所述数据检索下载模块,用于用户检索下载数据,方便事后查证。具体为:用户根据IP(数据库名称)和具体起止时间可以检索并下载指定数据库中具体时间段内的数据;The data retrieval and download module is used for the user to retrieve and download data, which is convenient for subsequent verification. Specifically: the user can retrieve and download the data in the specified time period in the specified database according to the IP (database name) and the specific start and end time;
所述数据解密模块,用于对下载的视频数据进行解密操作,获得原数据。The data decryption module is used for decrypting the downloaded video data to obtain original data.
所述数据回放模块,对本地存储视频数据的文件夹进行查询,可以获取下载的监控数据,然后在客户端播放界面进行播放;The data playback module can query the folder where the video data is stored locally, and can obtain the downloaded monitoring data, and then play it on the client-side playing interface;
在本实施例中,采集端和云端服务器端、客户端和云端服务器之间通过消息指令来进行每一步操作。In this embodiment, each step of operations is performed between the collection end and the cloud server, and between the client and the cloud server through message instructions.
综上所述,本实例结合定时采集缓存视频、二次校验、加解密技术、以“时间+hash值”和“hash值+数据块”新的存储方式等技术,提供一种针对实时监控视频数据的安全存储方法及系统,既能提高存储空间的使用率,也能保证监控视频数据的安全,同时还能在事后快速查证,具体为:采集端定时采集本地服务器上指定监控终端所缓存视频数据的目录;采集到数据后,根据数据本身的大小选择合适的块大进行数据分块得到数据块;对数据块进行MD5编码得到信息摘要(hash值将在采集端进行第一次校验,并且作为加解密密钥);将hash值在hash库里面做校验,不存在则将hash值插入hash库;使用hash值对其对应的数据块进行加密操作,得到密文块;将hash值和密文块上传到云端服务器端进行存储;云端服务器对上传的hash值进行第二次校验,不存在则返回消息给采集端允许上传密文块;云端服务器获取密文块后,先获取当前时间,然后将“时间和hash值”、“hash值和密文块”进行先后存储;用户使用客户端登录到本系统,根据IP(数据库名称)和起止时间检索并下载指定监控终端具体时间段所产生的监控视频数据,解密后在播放界面进行视频回放。通过定时采集和二次校验提高了存储空间的利用率,通过数据加解密在一定程度上保证数据安全的同时保护了用户的隐私,针对存储设计的“时间+hash值”和“hash值+数据块”的存储方式提高了检索效率,方便事后快速查证。To sum up, this example combines the technologies of timed acquisition and cache video, secondary verification, encryption and decryption technology, and new storage methods of "time + hash value" and "hash value + data block" to provide a real-time monitoring system. The method and system for safe storage of video data can not only improve the utilization rate of storage space, but also ensure the safety of monitoring video data, and at the same time can quickly verify after the event. Directory of video data; after the data is collected, select the appropriate block size according to the size of the data itself to divide the data into blocks to obtain data blocks; perform MD5 encoding on the data blocks to obtain the information summary (the hash value will be checked for the first time at the collection end , and as the encryption and decryption key); check the hash value in the hash library, if it does not exist, insert the hash value into the hash library; use the hash value to encrypt the corresponding data block to obtain the ciphertext block; The value and the ciphertext block are uploaded to the cloud server for storage; the cloud server verifies the uploaded hash value for the second time, and if it does not exist, it returns a message to the collection terminal to allow uploading of the ciphertext block; after the cloud server obtains the ciphertext block, it first Obtain the current time, and then store the "time and hash value", "hash value and ciphertext block" successively; the user logs in to the system using the client, retrieves and downloads the specified monitoring terminal according to the IP (database name) and start and end time. The surveillance video data generated in the time period is decrypted and played back on the playback interface. The utilization rate of storage space is improved through timing collection and secondary verification, and data security is ensured to a certain extent through data encryption and decryption, while the privacy of users is protected. The "data block" storage method improves retrieval efficiency and facilitates quick verification afterwards.
以上所述仅为本发明的较佳实施例,凡依本发明申请专利范围所做的均等变化与修饰,皆应属本发明的涵盖范围。The above descriptions are only preferred embodiments of the present invention, and all equivalent changes and modifications made according to the scope of the patent application of the present invention shall fall within the scope of the present invention.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810320580.0A CN110365629A (en) | 2018-04-11 | 2018-04-11 | A method and system for safe storage of real-time monitoring video data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810320580.0A CN110365629A (en) | 2018-04-11 | 2018-04-11 | A method and system for safe storage of real-time monitoring video data |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110365629A true CN110365629A (en) | 2019-10-22 |
Family
ID=68214207
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810320580.0A Pending CN110365629A (en) | 2018-04-11 | 2018-04-11 | A method and system for safe storage of real-time monitoring video data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110365629A (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110969552A (en) * | 2019-12-09 | 2020-04-07 | 广州长鹏光电科技有限公司 | System and method for checking and examining video authenticity |
CN111008227A (en) * | 2019-12-27 | 2020-04-14 | 广西民族师范学院 | A data analysis and processing platform |
CN111901566A (en) * | 2020-07-29 | 2020-11-06 | 浪潮云信息技术股份公司 | Monitoring data storage system and storage method |
CN112243100A (en) * | 2020-09-30 | 2021-01-19 | 重庆兴创巢科技发展有限责任公司 | Video recording method for real-time recovery of mobile terminal |
CN112328701A (en) * | 2020-11-27 | 2021-02-05 | 广东睿住智能科技有限公司 | Data synchronization method, terminal device and computer readable storage medium |
CN112702314A (en) * | 2020-12-04 | 2021-04-23 | 珠海格力电器股份有限公司 | Method and device for processing video file of camera equipment |
CN113507631A (en) * | 2021-09-07 | 2021-10-15 | 深圳佳力拓科技有限公司 | Digital television signal sending method and device for improving information security |
CN113660202A (en) * | 2021-07-08 | 2021-11-16 | 武汉光庭信息技术股份有限公司 | Method and system for checking driving data consistency |
CN114567629A (en) * | 2022-03-03 | 2022-05-31 | 上海电气风电集团股份有限公司 | Wind field data processing method, processing device, electronic equipment and medium |
CN115243340A (en) * | 2021-04-06 | 2022-10-25 | 杭州海康威视数字技术股份有限公司 | Equipment linkage method, system and device and electronic equipment |
CN115865899A (en) * | 2022-11-30 | 2023-03-28 | 武汉大千信息技术有限公司 | FTP distributed video file processing method and system based on RAID disk |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103152423A (en) * | 2013-03-15 | 2013-06-12 | 安科智慧城市技术(中国)有限公司 | Cloud storage system and data access method thereof |
CN105491395A (en) * | 2015-12-09 | 2016-04-13 | 福建天晴数码有限公司 | Server video management method and system |
CN106326235A (en) * | 2015-06-18 | 2017-01-11 | 天脉聚源(北京)科技有限公司 | Method and system for sorting and paging information records of Wechat public accounts |
CN107318000A (en) * | 2017-06-22 | 2017-11-03 | 重庆邮电大学 | A kind of wireless video monitoring system based on cloud platform |
US20180034790A1 (en) * | 2010-07-08 | 2018-02-01 | Texas Instruments Incorporated | Security processing engines, circuits and systems and adaptive processes and other processes |
-
2018
- 2018-04-11 CN CN201810320580.0A patent/CN110365629A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180034790A1 (en) * | 2010-07-08 | 2018-02-01 | Texas Instruments Incorporated | Security processing engines, circuits and systems and adaptive processes and other processes |
CN103152423A (en) * | 2013-03-15 | 2013-06-12 | 安科智慧城市技术(中国)有限公司 | Cloud storage system and data access method thereof |
CN106326235A (en) * | 2015-06-18 | 2017-01-11 | 天脉聚源(北京)科技有限公司 | Method and system for sorting and paging information records of Wechat public accounts |
CN105491395A (en) * | 2015-12-09 | 2016-04-13 | 福建天晴数码有限公司 | Server video management method and system |
CN107318000A (en) * | 2017-06-22 | 2017-11-03 | 重庆邮电大学 | A kind of wireless video monitoring system based on cloud platform |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110969552A (en) * | 2019-12-09 | 2020-04-07 | 广州长鹏光电科技有限公司 | System and method for checking and examining video authenticity |
CN110969552B (en) * | 2019-12-09 | 2023-12-08 | 广州长鹏光电科技有限公司 | System and method for checking and checking video authenticity |
CN111008227A (en) * | 2019-12-27 | 2020-04-14 | 广西民族师范学院 | A data analysis and processing platform |
CN111901566A (en) * | 2020-07-29 | 2020-11-06 | 浪潮云信息技术股份公司 | Monitoring data storage system and storage method |
CN112243100A (en) * | 2020-09-30 | 2021-01-19 | 重庆兴创巢科技发展有限责任公司 | Video recording method for real-time recovery of mobile terminal |
CN112328701A (en) * | 2020-11-27 | 2021-02-05 | 广东睿住智能科技有限公司 | Data synchronization method, terminal device and computer readable storage medium |
CN112328701B (en) * | 2020-11-27 | 2023-11-10 | 广东睿住智能科技有限公司 | Data synchronization method, terminal device and computer readable storage medium |
CN112702314A (en) * | 2020-12-04 | 2021-04-23 | 珠海格力电器股份有限公司 | Method and device for processing video file of camera equipment |
CN115243340A (en) * | 2021-04-06 | 2022-10-25 | 杭州海康威视数字技术股份有限公司 | Equipment linkage method, system and device and electronic equipment |
CN113660202A (en) * | 2021-07-08 | 2021-11-16 | 武汉光庭信息技术股份有限公司 | Method and system for checking driving data consistency |
CN113507631A (en) * | 2021-09-07 | 2021-10-15 | 深圳佳力拓科技有限公司 | Digital television signal sending method and device for improving information security |
CN113507631B (en) * | 2021-09-07 | 2021-11-12 | 深圳佳力拓科技有限公司 | Digital television signal sending method and device for improving information security |
CN114567629A (en) * | 2022-03-03 | 2022-05-31 | 上海电气风电集团股份有限公司 | Wind field data processing method, processing device, electronic equipment and medium |
CN115865899A (en) * | 2022-11-30 | 2023-03-28 | 武汉大千信息技术有限公司 | FTP distributed video file processing method and system based on RAID disk |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110365629A (en) | A method and system for safe storage of real-time monitoring video data | |
US10721058B2 (en) | Ultra-secure blockchain enabled analytics | |
EP3659311B1 (en) | Data stream integrity | |
CN103530201A (en) | Safety data repetition removing method and system applicable to backup system | |
US11652642B2 (en) | Digital data locker system providing enhanced security and protection for data storage and retrieval | |
EP3497875B1 (en) | A method of generating a secure record of a conversation | |
CN112417466A (en) | Block chain-based electronic archive file evidence storage and verification method and system | |
CN115248940A (en) | Blockchain-based video certificate storage method, verification method and device | |
CN107124385B (en) | Mirror flow-based SSL/TLS protocol plaintext data acquisition method | |
CN119011917A (en) | Method and system for reading video data based on server | |
CN104486441B (en) | Long-range control method based on FTP | |
CN103685473B (en) | Client, proxy server, retrieval method and retrieval system | |
CN113014956B (en) | Video playing method and device | |
CN115086033A (en) | Transmission processing system of video cloud command system data | |
CN120238676B (en) | Video encryption method, video encryption device and computer storage medium | |
CN116915501B (en) | Internet of things information security management method and system | |
CN113420305A (en) | Block chain-based big data processing system and method | |
CN119311642A (en) | Data security archiving service system and method based on digital envelope | |
CN116015940A (en) | Method and system for storing, storing and uploading logs | |
CN114448712A (en) | A method and device for realizing a security gateway of an interplanetary file system | |
CN116668766A (en) | An Encrypted Video Recognition Method Based on HTTP/3 Transmission Characteristics | |
HK1258686B (en) | Digital data locker system providing enhanced security and protection for data storage and retrieval |
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: 20191022 |