CN113641849A - Audio and video data storage method and system - Google Patents

Audio and video data storage method and system Download PDF

Info

Publication number
CN113641849A
CN113641849A CN202110950788.2A CN202110950788A CN113641849A CN 113641849 A CN113641849 A CN 113641849A CN 202110950788 A CN202110950788 A CN 202110950788A CN 113641849 A CN113641849 A CN 113641849A
Authority
CN
China
Prior art keywords
audio
preset
video
extraction module
acquisition time
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
CN202110950788.2A
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.)
Guangzhou Bairui Network Technology Co ltd
Original Assignee
Guangzhou Bairui Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Bairui Network Technology Co ltd filed Critical Guangzhou Bairui Network Technology Co ltd
Priority to CN202110950788.2A priority Critical patent/CN113641849A/en
Publication of CN113641849A publication Critical patent/CN113641849A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/71Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/61Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/68Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/683Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/68Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/686Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, title or artist information, time, location or usage information, user ratings
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/78Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/783Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
    • G06F16/7847Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content using low-level visual features of the video content
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/78Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/7867Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, title and artist information, manually generated time, location and usage information, user ratings
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10527Audio or video recording; Data buffering arrangements
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10527Audio or video recording; Data buffering arrangements
    • G11B2020/10537Audio or video recording

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Library & Information Science (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Signal Processing (AREA)
  • Storage Device Security (AREA)

Abstract

The invention relates to an audio and video data storage method and system, and relates to the technical field of data processing, wherein the system comprises an extraction module and an encryption module; the extraction module sets secondary verification keys a-b-c, wherein a represents a first preset key code, b represents a second preset key code, c represents a third preset key code, the extraction module takes the average frequency of audio and video in an audio and video acquisition time period as the first preset key code a, the extraction module takes the average color depth value of a preset rectangular area as the second preset key code b, the extraction module takes the average gray value of the preset rectangular area as the third preset key code c, the encryption module randomly generates a primary user authentication key m-n, and the encryption module generates the secondary verification keys a-b-c according to the preset key codes set by the extraction module. The invention effectively improves the safety of audio and video storage.

Description

Audio and video data storage method and system
Technical Field
The invention relates to the technical field of data processing, in particular to an audio and video data storage method and system.
Background
With the development of network technology, people realize online meetings, one party plays videos for the other party to watch and the like by means of a video software tool, and great convenience is brought to the life of people. At present, users usually store audio and video files in a network, the audio and video files are often maliciously tampered after the users store the audio and video files in the network, and after the audio and video files stored by the users are tampered, the audio and video files are downloaded again to be used, so that great inconvenience is brought to the users, and even economic loss is caused.
Disclosure of Invention
Therefore, the invention provides an audio and video data storage method and system, which are used for solving the problem of low audio and video file storage safety caused by the fact that audio and video files cannot be encrypted and verified respectively in the prior art.
In order to achieve the above object, the present invention provides an audio/video data storage system, including:
the extraction module is used for extracting an independent audio and video file and a video file from the imported audio and video file;
the encryption module is used for encrypting the extracted audio and video files and the extracted video files to generate a security key;
when the audio and video file is imported into the system, the extraction module extracts the imported audio and video file into an independent audio and video file, the extraction module selects an audio and video acquisition time period of the audio and video file and an image acquisition time of the video file according to the duration of the audio and video file, when the audio and video acquisition time period and the image acquisition time are selected, the extraction module sets a secondary verification key a-b-c, wherein a represents a first preset key code, b represents a second preset key code, c represents a third preset key code, the extraction module encodes an average frequency value of the audio and video in the audio and video acquisition time period, and takes an encoded character combination as a first preset key code a, and the extraction module forms an image acquisition area at the image acquisition time, the extraction module presets a rectangular area in the image acquisition area, encodes the average color depth value of the preset rectangular area, and uses the encoded character combination as a second preset key code b, the extraction module encodes the average gray value of the preset rectangular area, and uses the encoded character combination as a third preset key code c, the encryption module randomly generates a primary user authentication key m-n, and the encryption module generates a secondary verification key a-b-c according to each preset key code set by the extraction module.
Further, a preset audio/video file duration matrix T0 and a preset image acquisition time matrix Ta0 are set in the extraction module, and for the preset audio/video file duration matrix T0, T0 (T1, T2, T3, T4) is set, where T1 is a first preset audio/video file duration, T2 is a second preset audio/video file duration, T3 is a third preset audio/video file duration, and T4 is a fourth preset audio/video file duration, and the preset audio/video file durations gradually increase in sequence, where T1 is greater than T2 and greater than T3 is less than T4; setting Ta0 (Ta 1, Ta2, Ta3 and Ta 4) for the preset image acquisition time matrix Ta0, wherein Ta1 is a first preset image acquisition time, Ta2 is a second preset image acquisition time, Ta3 is a third preset image acquisition time, Ta4 is a fourth preset image acquisition time, and the preset image acquisition times are arranged in time sequence;
when the extraction module selects the image acquisition time, the extraction module compares the time length T of the imported audio and video file with the parameters in the preset audio and video file time length matrix T0, and selects the corresponding image acquisition time according to the comparison result:
when T is less than T1, the extraction module selects Ta1 as the image acquisition time;
when T1 is more than or equal to T < T2, the extraction module selects Ta2 as the image acquisition time;
when T2 is more than or equal to T < T3, the extraction module selects Ta3 as the image acquisition time;
when T3 is more than or equal to T < T4, the extraction module selects Ta4 as the image acquisition time.
Further, a preset audio/video acquisition time period matrix Tb0 is further provided in the extraction module, and Tb0 (Tb 1, Tb2, Tb3, Tb 4) is set, where Tb1 is a first preset audio/video acquisition time period, Tb2 is a second preset audio/video acquisition time period, Tb3 is a third preset audio/video acquisition time period, Tb4 is a fourth preset audio/video acquisition time period, and the preset audio/video acquisition time periods are arranged in time sequence;
when the extraction module selects the audio and video acquisition time period, the extraction module compares the time length T of the imported audio and video file with the parameters in the preset audio and video file time length matrix T0, and selects the corresponding audio and video acquisition time period according to the comparison result:
when T is less than T1, the extraction module selects Tb1 as an audio and video acquisition time period;
when T is more than or equal to T1 and less than T2, Tb2 is selected as an audio and video acquisition time period by the extraction module;
when T is more than or equal to T2 and less than T3, Tb3 is selected as an audio and video acquisition time period by the extraction module;
when T3 is not less than T < T4, Tb4 is selected as the audio and video acquisition time period by the extraction module.
Further, the extraction module collects the frequency f generated in each second in an audio and video collection time period, the extraction module is further provided with an average frequency f ' of the audio and video files in the collection time period, f ' = (f 1+ f2+. + fn)/n is set, in the formula, n represents the number of collected frequencies, and the extraction module takes the size of the average frequency f ' as the first preset key code a.
Furthermore, a preset rectangular region D in the image acquisition region is also arranged in the extraction module, and D (Xmax, Xmin, Ymax, Ymin) is set by taking the minimum point of the horizontal and vertical coordinates of the image acquisition region as the coordinate axis, wherein Xmax is the maximum value of the horizontal coordinate of the rectangular region, Xmin is the minimum value of the horizontal coordinate of the rectangular region, Ymax is the maximum value of the vertical coordinate of the rectangular region, and Ymin is the minimum value of the vertical coordinate of the rectangular region;
and the extraction module takes the average color depth C of the image of the rectangular area D as a second preset key code b.
Further, the extraction module performs gray processing on the rectangular area D, and after the gray processing is completed, the extraction module takes the average gray value E of the rectangular area D as a third preset key code c.
Further, the encryption module carries out adjacent parity bit character exchange on each segment of key code in the secondary verification keys a-b-c set by the extraction module, and meanwhile, the encryption module carries out recoding on each segment of key code a, b and c after character exchange by quaternary system, octal system and hexadecimal system respectively to generate the secondary verification keys.
Further, the encryption module is further configured to add a check code at the end of the primary user authentication key m-n when the primary user authentication key m-n is set, the encryption module is configured to encode the abscissa extremum of the rectangular region D after arranging the abscissa extremum in the order of magnitude to obtain a first check code, then encode the ordinate extremum of the rectangular region D after arranging the ordinate extremum in the order of magnitude to obtain a second check code, the encryption module combines the first check code and the second check code to obtain a character string Z01, the encryption module adds the character string Z01 to the end of the primary user authentication key m-n, and the primary user authentication key after adding the check code is: m-n-Z01.
The invention also provides an audio and video data storage method, which comprises the following steps:
step a: extracting an independent audio and video file and an independent video file from the audio and video file;
step b: selecting an audio and video acquisition time period of the audio and video file and an image acquisition time of the video file according to the duration of the audio and video file;
step c: determining a first preset key code according to the average frequency value of the audio and video in the audio and video acquisition time period;
step d: presetting a rectangular area in the image acquisition area, and determining a second preset secret key code according to the average color depth value of the preset rectangular area;
step e: performing gray level processing on the preset rectangular area, and determining a third preset secret key code according to the average gray level value of the preset rectangular area;
step f: randomly generating a primary user authentication key, obtaining a character string according to the rectangular area coordinate extreme value, and adding the character string to the tail of the primary user authentication key;
step g: and performing adjacent parity bit character exchange on each preset key code, and simultaneously re-encoding each preset key code after character exchange by using a quaternary system, an octal system and a hexadecimal system respectively to generate a secondary verification key after re-encoding.
Compared with the prior art, the system has the beneficial effects that the system provided by the invention can be used for verifying the user identity by encrypting the imported audio and video, extracting the audio and video file by using the key and verifying the audio and video file at the same time, judging whether the audio and video file is tampered or not, and effectively improving the security of audio and video encryption.
Furthermore, the extraction module compares the time length T of the imported audio/video file with the parameters in the preset audio/video file time length matrix T0 to select the corresponding image acquisition time, so that the reliability of key generation is effectively improved, and the security of audio/video encryption is further improved.
Furthermore, the extraction module compares the time length T of the imported audio/video file with the parameters in the preset audio/video file time length matrix T0 to select the corresponding audio/video acquisition time period, so that the reliability of key generation is effectively improved, and the security of audio/video encryption is further improved.
Furthermore, the extraction module writes the average frequency f' as a first section of the key code into the secondary verification key, so that the reliability of the generated key is effectively improved, and the security of audio and video encryption is further improved.
Furthermore, the extraction module writes the average color depth C of the color image of the rectangular area D as a second segment of the key code into the secondary verification key, so that the reliability of key generation is effectively improved, and the security of audio and video encryption is further improved.
Furthermore, the extraction module writes the average gray value E of the rectangular area D as a third section of the key code into the secondary verification key, so that the reliability of key generation is effectively improved, and the security of audio and video encryption is further improved.
Furthermore, the encryption module randomly generates a primary user authentication key and exchanges adjacent parity bit characters with a secondary verification key written in by the extraction module to generate a secondary verification key, so that the reliability of the generated key is effectively improved, and the security of audio and video encryption is further improved.
Furthermore, the encryption module effectively improves the reliability of key generation and further improves the security of audio and video encryption by adding a check code at the end of the primary user authentication key.
Drawings
Fig. 1 is a block diagram of an audio-video data storage system according to an embodiment of the present invention;
fig. 2 is a flowchart of an audio and video data storage method according to an embodiment of the present invention.
Detailed Description
In order that the objects and advantages of the invention will be more clearly understood, the invention is further described below with reference to examples; it should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only for explaining the technical principle of the present invention, and do not limit the scope of the present invention.
Referring to fig. 1, in one aspect, the present invention provides an audio/video data storage system, including:
the extraction module is used for extracting an independent audio and video file from the imported audio and video file and setting a corresponding key code according to the content of the audio and video file and the video file;
the encryption module is used for encrypting the extracted audio and video files and the extracted video files to generate a security key, and the security key comprises a primary user authentication key and a secondary verification key;
the invention provides an audio and video data storage system, which can also comprise:
the storage module is used for storing the encrypted audio and video files and the encrypted video files;
the verification module is used for verifying the identity of a user and extracting the audio and video file, when the audio and video file is extracted, the verification module judges whether the audio and video file is tampered according to data generated when a secret key is generated, and if the audio and video file is tampered, the verification module prompts the tampering risk.
Referring to fig. 2, in another aspect, the present invention further provides an audio/video data storage method, including:
step a: extracting an independent audio and video file and an independent video file from the audio and video file;
step b: selecting an audio and video acquisition time period of the audio and video file and an image acquisition time of the video file according to the duration of the audio and video file;
step c: determining a first preset key code according to the average frequency value of the audio and video in the audio and video acquisition time period;
step d: presetting a rectangular area in the image acquisition area, and determining a second preset secret key code according to the average color depth value of the preset rectangular area;
step e: performing gray level processing on the preset rectangular area, and determining a third preset secret key code according to the average gray level value of the preset rectangular area;
step f: randomly generating a primary user authentication key, obtaining a character string according to the rectangular area coordinate extreme value, and adding the character string to the tail of the primary user authentication key;
step g: and performing adjacent parity bit character exchange on each preset key code, and simultaneously re-encoding each preset key code after character exchange by using a quaternary system, an octal system and a hexadecimal system respectively to generate a secondary verification key after re-encoding.
Specifically, after the audio and video file is imported into the system, the extraction module extracts the imported audio and video file into an independent audio and video file, the extraction module selects an audio and video acquisition time period of the audio and video file and an image acquisition time of the video file according to the duration of the audio and video file, and after the audio and video acquisition time period and the image acquisition time are selected, the extraction module sets a secondary verification key a-b-c, wherein a represents a first preset key code, b represents a second preset key code, and c represents a third preset key code, and a, b, and c are combinations of numbers and letters of any number, such as: a may be Ab5h67 or 56842, b may be abdx or 84tkY, and c may be 58po9 or yuDR 4.
Specifically, the extraction module is configured to encode an average frequency value of the audio/video within the audio/video acquisition time period, and use a coded character combination as a first preset key code a, the extraction module forms an image acquisition area at the image acquisition time, the extraction module presets a rectangular area in the image acquisition area, the extraction module encodes an average color depth value of the preset rectangular area, and uses the coded character combination as a second preset key code b, the extraction module encodes an average gray value of the preset rectangular area, and uses the coded character combination as a third preset key code c, the encryption module randomly generates a primary user authentication key m-n, where m and n are combinations of numbers and letters, and the encryption module generates a secondary authentication key a-b-one-key according to each preset key code set by the extraction module And c, performing the following steps.
Specifically, a preset audio/video file duration matrix T0 and a preset image acquisition time matrix Ta0 are set in the extraction module, and for the preset audio/video file duration matrix T0, T0 (T1, T2, T3, T4) is set, where T1 is a first preset audio/video file duration, T2 is a second preset audio/video file duration, T3 is a third preset audio/video file duration, T4 is a fourth preset audio/video file duration, the durations of the preset audio/video files gradually increase in sequence, T1 is greater than T2, greater than T3, and less than T4; setting Ta0 (Ta 1, Ta2, Ta3 and Ta 4) for the preset image acquisition time matrix Ta0, wherein Ta1 is a first preset image acquisition time, Ta2 is a second preset image acquisition time, Ta3 is a third preset image acquisition time, Ta4 is a fourth preset image acquisition time, and the preset image acquisition times are arranged in time sequence;
when the extraction module selects the image acquisition time, the extraction module compares the time length T of the imported audio and video file with the parameters in the preset audio and video file time length matrix T0, and selects the corresponding image acquisition time according to the comparison result:
when T is less than T1, the extraction module selects Ta1 as the image acquisition time;
when T1 is more than or equal to T < T2, the extraction module selects Ta2 as the image acquisition time;
when T2 is more than or equal to T < T3, the extraction module selects Ta3 as the image acquisition time;
when T3 is more than or equal to T < T4, the extraction module selects Ta4 as the image acquisition time.
The extraction module compares the time length T of the imported audio and video file with the parameters in the preset audio and video file time length matrix T0 to select the corresponding image acquisition time, so that the reliability of key generation is effectively improved, and the security of audio and video encryption is further improved.
Specifically, a preset audio/video acquisition time period matrix Tb0 is further provided in the extraction module, and Tb0 (Tb 1, Tb2, Tb3, Tb 4) is set, where Tb1 is a first preset audio/video acquisition time period, Tb2 is a second preset audio/video acquisition time period, Tb3 is a third preset audio/video acquisition time period, Tb4 is a fourth preset audio/video acquisition time period, and the preset audio/video acquisition time periods are arranged in a time sequence;
when the extraction module selects the audio and video acquisition time period, the extraction module compares the time length T of the imported audio and video file with the parameters in the preset audio and video file time length matrix T0, and selects the corresponding audio and video acquisition time period according to the comparison result:
when T is less than T1, the extraction module selects Tb1 as an audio and video acquisition time period;
when T is more than or equal to T1 and less than T2, Tb2 is selected as an audio and video acquisition time period by the extraction module;
when T is more than or equal to T2 and less than T3, Tb3 is selected as an audio and video acquisition time period by the extraction module;
when T3 is not less than T < T4, Tb4 is selected as the audio and video acquisition time period by the extraction module.
Specifically, the extraction module acquires a frequency f generated every second in an audio and video acquisition time period, an average frequency f ' of the audio and video files in the acquisition time period is further set in the extraction module, and f ' = (f 1+ f2+.. + fn)/n is set, where n represents the number of acquired frequencies, and the extraction module takes the size of the average frequency f ' as the first preset key code a, for example, u850-XXXX, where X may be any number or letter.
The extraction module writes the average frequency f' as a first section of the key code into the secondary verification key, so that the reliability of the generated key is effectively improved, and the security of audio and video encryption is further improved.
Specifically, the extraction module is further provided with a preset rectangular region D in the image acquisition region, and D (Xmax, Xmin, Ymax, Ymin) is set by taking the minimum point of the horizontal and vertical coordinates of the image acquisition region as the coordinate axis, wherein Xmax is the maximum value of the horizontal coordinate of the rectangular region, Xmin is the minimum value of the horizontal coordinate of the rectangular region, Ymax is the maximum value of the vertical coordinate of the rectangular region, and Ymin is the minimum value of the vertical coordinate of the rectangular region;
the extraction module encodes b the average color depth C of the color image of the rectangular area D as a second preset key, e.g., XXXX-0y85-XXXX, where X may be any number or letter.
Specifically, the extraction module performs gray processing on the rectangular region D, and after the gray processing is completed, the extraction module uses the average gray value E of the rectangular region D as a third preset key code c, for example, XXXX-0125, where X may be any number or letter.
The extraction module writes the average gray value E of the rectangular area D as a third section of the key code into the secondary verification key, so that the reliability of key generation is effectively improved, and the security of audio and video encryption is further improved.
Specifically, the encryption module carries out adjacent parity bit character exchange on each segment of key code in the secondary verification keys a-b-c set by the extraction module, and meanwhile, the encryption module carries out recoding on each segment of key code a, b and c after character exchange by a quaternary system, an octal system and a hexadecimal system respectively to generate the secondary verification keys.
Specifically, the encryption module is further configured to add a check code at the end of the primary user authentication key m-n when the primary user authentication key m-n is set, the encryption module, when the encryption module sets the check code, performs encoding after arranging abscissa extrema of the rectangular region D according to a size sequence to obtain a first check code, then performs encoding after arranging ordinate extrema of the rectangular region D according to a size sequence to obtain a second check code, the encryption module combines the first check code and the second check code to obtain a character string Z01, the encryption module adds the character string Z01 to the end of the primary user authentication key m-n, and the primary user authentication key after adding the check code is: m-n-Z01.
The encryption module effectively improves the reliability of key generation and further improves the security of audio and video encryption by adding the check code at the tail of the primary user authentication key.
So far, the technical solutions of the present invention have been described in connection with the preferred embodiments shown in the drawings, but it is easily understood by those skilled in the art that the scope of the present invention is obviously not limited to these specific embodiments. Equivalent changes or substitutions of related technical features can be made by those skilled in the art without departing from the principle of the invention, and the technical scheme after the changes or substitutions can fall into the protection scope of the invention.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention; various modifications and alterations to this invention will become apparent to those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (9)

1. An audio-visual data storage system, comprising:
the extraction module is used for extracting an independent audio and video file and a video file from the imported audio and video file;
the encryption module is used for encrypting the extracted audio and video files and the extracted video files to generate a security key;
when the audio and video file is imported into the system, the extraction module extracts an independent audio and video file and an independent video file from the imported audio and video file, the extraction module selects an audio and video acquisition time period of the audio and video file and an image acquisition time of the video file according to the duration of the audio and video file, when the audio and video acquisition time period and the image acquisition time are selected, the extraction module sets a secondary verification key a-b-c, wherein a represents a first preset key code, b represents a second preset key code, c represents a third preset key code, the extraction module encodes an average frequency value of the audio and video in the audio and video acquisition time period, and takes an encoded character combination as a first preset key code a, and the extraction module forms an image acquisition area at the image acquisition time, the extraction module presets a rectangular area in the image acquisition area, encodes the average color depth value of the preset rectangular area, and uses the encoded character combination as a second preset key code b, the extraction module encodes the average gray value of the preset rectangular area, and uses the encoded character combination as a third preset key code c, the encryption module randomly generates a primary user authentication key m-n, and the encryption module generates a secondary verification key a-b-c according to each preset key code set by the extraction module.
2. The audio-video data storage system according to claim 1, wherein a preset audio-video file duration matrix T0 and a preset image acquisition time matrix Ta0 are set in the extraction module, and for the preset audio-video file duration matrix T0, T0 (T1, T2, T3, T4) is set, where T1 is a first preset audio-video file duration, T2 is a second preset audio-video file duration, T3 is a third preset audio-video file duration, T4 is a fourth preset audio-video file duration, and the preset audio-video file durations gradually increase in sequence, T1 < T2 < T3 < T4; setting Ta0 (Ta 1, Ta2, Ta3 and Ta 4) for the preset image acquisition time matrix Ta0, wherein Ta1 is a first preset image acquisition time, Ta2 is a second preset image acquisition time, Ta3 is a third preset image acquisition time, Ta4 is a fourth preset image acquisition time, and the preset image acquisition times are arranged in time sequence;
when the extraction module selects the image acquisition time, the extraction module compares the time length T of the imported audio and video file with the parameters in the preset audio and video file time length matrix T0, and selects the corresponding image acquisition time according to the comparison result:
when T is less than T1, the extraction module selects Ta1 as the image acquisition time;
when T1 is more than or equal to T < T2, the extraction module selects Ta2 as the image acquisition time;
when T2 is more than or equal to T < T3, the extraction module selects Ta3 as the image acquisition time;
when T3 is more than or equal to T < T4, the extraction module selects Ta4 as the image acquisition time.
3. The audio/video data storage system according to claim 2, wherein the extraction module is further provided with a preset audio/video acquisition time period matrix Tb0, and a Tb0 (Tb 1, Tb2, Tb3, Tb 4) is set, where Tb1 is a first preset audio/video acquisition time period, Tb2 is a second preset audio/video acquisition time period, Tb3 is a third preset audio/video acquisition time period, Tb4 is a fourth preset audio/video acquisition time period, and the preset audio/video acquisition time periods are arranged in time sequence;
when the extraction module selects the audio and video acquisition time period, the extraction module compares the time length T of the imported audio and video file with the parameters in the preset audio and video file time length matrix T0, and selects the corresponding audio and video acquisition time period according to the comparison result:
when T is less than T1, the extraction module selects Tb1 as an audio and video acquisition time period;
when T is more than or equal to T1 and less than T2, Tb2 is selected as an audio and video acquisition time period by the extraction module;
when T is more than or equal to T2 and less than T3, Tb3 is selected as an audio and video acquisition time period by the extraction module;
when T3 is not less than T < T4, Tb4 is selected as the audio and video acquisition time period by the extraction module.
4. The audio/video data storage system according to claim 3, wherein the extraction module collects a frequency f generated in an audio/video collection time period per second, an average frequency f ' of the audio/video file in the collection time period is further set in the extraction module, and f ' = (f 1+ f2+. + fn)/n is set, where n represents the number of collected frequencies, and the extraction module uses the size of the average frequency f ' as the first preset key code a.
5. The audio and video data storage system according to claim 4, wherein the extraction module is further provided with a preset rectangular region D in the image acquisition region, and sets D (Xmax, Xmin, Ymax, Ymin) by taking the minimum horizontal and vertical coordinate points of the image acquisition region as coordinate axes, wherein Xmax is the maximum horizontal coordinate value of the rectangular region, Xmin is the minimum horizontal coordinate value of the rectangular region, Ymax is the maximum vertical coordinate value of the rectangular region, and Ymin is the minimum vertical coordinate value of the rectangular region;
and the extraction module takes the average color depth C of the image of the rectangular area D as a second preset key code b.
6. The audio/video data storage system according to claim 5, wherein the extraction module performs gray processing on the rectangular area D, and after the gray processing is completed, the extraction module takes the average gray value E of the rectangular area D as a third preset key code c.
7. The audio-video data storage system according to claim 6, wherein the encryption module performs adjacent parity bit character exchange on each segment of key codes in the secondary verification keys a-b-c set by the extraction module, and the encryption module re-encodes each segment of key codes a, b, c after character exchange in quaternary system, octal system, hexadecimal system, respectively, and generates the secondary verification keys.
8. The audio-visual data storage system of claim 7, wherein the encryption module is further configured to, upon setting the primary user authentication key m-n, a check code is added at the end of the primary user authentication key m-n, and when the encryption module sets the check code, the encryption module arranges the abscissa extremum of the rectangular region D according to the size sequence and then encodes the abscissa extremum to obtain a first check code, then the longitudinal coordinate extreme values of the rectangular area D are arranged according to the size sequence and then are coded to obtain a second check code, the encryption module combines the first check code and the second check code to obtain a character string Z01, the encryption module adds the character string Z01 to the end of the primary user authentication key m-n, and the primary user authentication key added with the check code is as follows: m-n-Z01.
9. An audio-video data storage method, characterized by comprising:
step a: extracting an independent audio and video file and an independent video file from the audio and video file;
step b: selecting an audio and video acquisition time period of the audio and video file and an image acquisition time of the video file according to the duration of the audio and video file;
step c: determining a first preset key code according to the average frequency value of the audio and video in the audio and video acquisition time period;
step d: presetting a rectangular area in the image acquisition area, and determining a second preset secret key code according to the average color depth value of the preset rectangular area;
step e: performing gray level processing on the preset rectangular area, and determining a third preset secret key code according to the average gray level value of the preset rectangular area;
step f: randomly generating a primary user authentication key, obtaining a character string according to the rectangular area coordinate extreme value, and adding the character string to the tail of the primary user authentication key;
step g: and performing adjacent parity bit character exchange on each preset key code, and simultaneously re-encoding each preset key code after character exchange by using a quaternary system, an octal system and a hexadecimal system respectively to generate a secondary verification key after re-encoding.
CN202110950788.2A 2021-08-18 2021-08-18 Audio and video data storage method and system Pending CN113641849A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110950788.2A CN113641849A (en) 2021-08-18 2021-08-18 Audio and video data storage method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110950788.2A CN113641849A (en) 2021-08-18 2021-08-18 Audio and video data storage method and system

Publications (1)

Publication Number Publication Date
CN113641849A true CN113641849A (en) 2021-11-12

Family

ID=78422775

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110950788.2A Pending CN113641849A (en) 2021-08-18 2021-08-18 Audio and video data storage method and system

Country Status (1)

Country Link
CN (1) CN113641849A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116894261A (en) * 2023-09-11 2023-10-17 山东卓汇智能科技有限公司 Digital hospital electronic medical record intelligent encryption method

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101621661A (en) * 2008-06-30 2010-01-06 北京中星微电子有限公司 Audio-video encryption and decryption transmission system
CN101675663A (en) * 2007-02-14 2010-03-17 弗廷特风险投资集团 Fuzzy protection of visual content
US20110142230A1 (en) * 2003-02-07 2011-06-16 Britesmart Llc Real-time data encryption
CN102333236A (en) * 2011-10-27 2012-01-25 中国华录集团有限公司 Video content encryption and decryption system
CN102377974A (en) * 2010-08-04 2012-03-14 中国电信股份有限公司 Mobile terminal, receiving end and video acquiring method and system
CN103297397A (en) * 2012-02-29 2013-09-11 华为技术有限公司 Digital information sending method and receiving method, digital information sending device and receiving device and digital information distribution system
CN105611318A (en) * 2014-11-25 2016-05-25 上海天脉聚源文化传媒有限公司 Method and system for video encryption playing
CN110535634A (en) * 2019-07-12 2019-12-03 江苏宇太网智科技有限公司 Audio-video transmission system based on quantum cryptography

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110142230A1 (en) * 2003-02-07 2011-06-16 Britesmart Llc Real-time data encryption
CN101675663A (en) * 2007-02-14 2010-03-17 弗廷特风险投资集团 Fuzzy protection of visual content
CN101621661A (en) * 2008-06-30 2010-01-06 北京中星微电子有限公司 Audio-video encryption and decryption transmission system
CN102377974A (en) * 2010-08-04 2012-03-14 中国电信股份有限公司 Mobile terminal, receiving end and video acquiring method and system
CN102333236A (en) * 2011-10-27 2012-01-25 中国华录集团有限公司 Video content encryption and decryption system
CN103297397A (en) * 2012-02-29 2013-09-11 华为技术有限公司 Digital information sending method and receiving method, digital information sending device and receiving device and digital information distribution system
CN105611318A (en) * 2014-11-25 2016-05-25 上海天脉聚源文化传媒有限公司 Method and system for video encryption playing
CN110535634A (en) * 2019-07-12 2019-12-03 江苏宇太网智科技有限公司 Audio-video transmission system based on quantum cryptography

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116894261A (en) * 2023-09-11 2023-10-17 山东卓汇智能科技有限公司 Digital hospital electronic medical record intelligent encryption method
CN116894261B (en) * 2023-09-11 2023-12-19 山东卓汇智能科技有限公司 Digital hospital electronic medical record intelligent encryption method

Similar Documents

Publication Publication Date Title
US5557677A (en) Method and arrangement for communication of information
CN103761702B (en) Image hiding and authentication method based on secret sharing
CN109087417B (en) Safety two-dimensional code access control authentication system and method
CN116471007B (en) Network information encryption transmission method based on cloud platform
JP2006253745A (en) Data processing apparatus, system, and method
CN110022314B (en) Big data secure transmission method based on matrix two-dimensional code
CN111008923A (en) Watermark embedding method, watermark extracting method, watermark embedding device, watermark extracting device and watermark extracting equipment
CN110519056B (en) Login method, password generation method and related devices thereof
WO2007001075A1 (en) Encryption device, encryption method, decryption device, decryption method, and data structure
CN104363087A (en) Encryption and decryption method and device
CN113641849A (en) Audio and video data storage method and system
CN111091377B (en) Method for preventing two-dimension code from being stolen and brushed in mobile payment
Yari et al. An overview and computer forensic challenges in image steganography
CN108052828B (en) Method and device for generating screen recording file, terminal and storage medium
CN111988639B (en) Video encryption and decryption method based on cryptographic algorithm and reversible steganography
CN105912894B (en) A method of it is anti-fake that passport NO. being used for E-seal printed text
CN108271027A (en) A kind of extracting method of image adaptive secret information
CN116527278A (en) Block chain hidden communication method based on generation type hidden network and image double hidden
WO2013025091A1 (en) Mobile access control system involving a quantum random number generator
CN111954035A (en) Method and device for encrypting video-audio signal stream
CN110619228A (en) File decryption method, file encryption method, file management system and storage medium
CN111127019B (en) Method, system and device for backing up mnemonic words
KR101472495B1 (en) Data hiding device and method for information security
KR101512739B1 (en) Data concealment apparatus and method using an error correction code
CN109902528B (en) Encoding and decoding method of two-dimension code

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
AD01 Patent right deemed abandoned

Effective date of abandoning: 20230811

AD01 Patent right deemed abandoned