CN112398879B - Audio file transmission system, method and device and computer readable storage medium - Google Patents

Audio file transmission system, method and device and computer readable storage medium Download PDF

Info

Publication number
CN112398879B
CN112398879B CN201910738759.2A CN201910738759A CN112398879B CN 112398879 B CN112398879 B CN 112398879B CN 201910738759 A CN201910738759 A CN 201910738759A CN 112398879 B CN112398879 B CN 112398879B
Authority
CN
China
Prior art keywords
target
audio
file
audio file
ciphertext
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910738759.2A
Other languages
Chinese (zh)
Other versions
CN112398879A (en
Inventor
何永正
张�杰
刘笛
张忆凡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Henan Xiangyu Medical Equipment Co Ltd
Original Assignee
Henan Xiangyu Medical Equipment 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 Henan Xiangyu Medical Equipment Co Ltd filed Critical Henan Xiangyu Medical Equipment Co Ltd
Priority to CN201910738759.2A priority Critical patent/CN112398879B/en
Publication of CN112398879A publication Critical patent/CN112398879A/en
Application granted granted Critical
Publication of CN112398879B publication Critical patent/CN112398879B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/10Protocols in which an application is distributed across nodes in the network
    • 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
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Abstract

The invention discloses a transmission system of audio files, comprising: the target music therapeutic apparatus is used for sending an audio file acquisition request to the cloud server; reading a target decryption key from the preset offset of the target ciphertext audio file, and decrypting and playing the target ciphertext audio file; the cloud server is used for analyzing the audio file acquisition request to obtain a target ID of the target music therapeutic apparatus and a target audio prescription batch required by the current patient; and searching a target ciphertext audio file obtained by encrypting the file content with the preset regular length at the head of the target initial audio file by using the target ID and the target audio prescription batch, and sending the target ciphertext audio file to the target music therapeutic apparatus. The invention greatly improves the data security, improves the acquisition efficiency of the audio file and greatly simplifies the decryption process. The invention also discloses a transmission method and a transmission device of the audio file and a storage medium, and the transmission method and the transmission device have corresponding technical effects.

Description

Audio file transmission system, method and device and computer readable storage medium
Technical Field
The present invention relates to the field of information security technologies, and in particular, to a system, a method, and an apparatus for transmitting an audio file, and a computer-readable storage medium.
Background
The music therapeutic instrument is an instrument for converting melody changes of audio files into vibration frequencies with the same change rule and performing vibration auxiliary therapy on acupuncture points on the body surface of a human body, the classification and processing of the adopted audio files are different from the traditional audio files, and the different places are mainly embodied in that Music Vibration Therapy (MVT) is a recently recognized technology using music (for listening) and is coordinated with tactile vibration massage (with oscillation rhythm and/or waveform frequency matched with the music rhythm and/or waveform frequency and/or harmoniously coordinated with the music rhythm and/or waveform frequency to some extent) directly applied to the body. Most patients are interested in using music vibration therapy because it is a pleasant, fun, distracting and comfortable treatment modality, unlike many invasive and potentially unpleasant medical procedures, which can play an important role in promoting patient acceptance of treatment.
Speakers or transducers are currently used which are placed within a cushion, mattress, chair, lounge, table or soft furniture, and are typically used in conjunction with an audio speaker for synchronized listening (e.g., provided by a headset) to provide a combined, synchronized haptic and auditory experience. Help in pain control, relaxation and anxiety relief, blood flow improvement, musculoskeletal physiotherapy, treatment of arthritic conditions and general health improvement. Various vibration/sound characteristics can be manipulated to achieve a particular physiological and psychological experience.
The working principle of the music therapeutic apparatus is generally summarized as follows: a loudspeaker with high power is adopted; one mode is a self-owned mode, and the other mode can be connected with a mobile phone or a tablet to play music, and changes the vibration size along with the change of music melody; the therapeutic purpose can be achieved by listening to music or vibrating. Most of audio files are stored in a cloud server, the existing transmission mode of the audio files is that a music therapeutic apparatus sends identification information carrying the audio files to be downloaded to the cloud server, the encryption mode of the multimedia files corresponding to the identification information of the audio files, the length information of encryption keys and the encryption keys are obtained from the internet, the whole audio files are encrypted on line, and the audio files are transmitted to the cloud server. The online encryption mode enables the audio file to be low in obtaining efficiency, the decryption process to be complex, the encryption key is obtained from the internet and is easy to crack, and the data security is low.
In summary, how to effectively solve the problems of low acquisition efficiency, complex decryption process, low data security, and the like of audio files is a problem that those skilled in the art are urgently required to solve.
Disclosure of Invention
The invention aims to provide a transmission system of an audio file, which improves the cracking difficulty, greatly improves the data security, greatly improves the acquisition efficiency of the audio file and greatly simplifies the decryption process; another object of the present invention is to provide a method and an apparatus for transmitting an audio file, and a computer-readable storage medium.
In order to solve the technical problems, the invention provides the following technical scheme:
the utility model provides a transmission system of audio file, includes high in the clouds server and a plurality of music therapeutic instrument, each the music therapeutic instrument respectively with high in the clouds server links to each other, wherein:
the target music therapeutic apparatus is used for sending an audio file acquisition request to the cloud server; reading a target decryption key from a preset offset of a target ciphertext audio file returned by the cloud server; decrypting the target ciphertext audio file by using the target decryption key to obtain a target initial audio file; playing the target initial audio file; wherein the target musical therapy apparatus is one of a plurality of musical therapy apparatuses;
the cloud server is used for analyzing the audio file acquisition request to obtain a target ID of the target music therapeutic apparatus and a target audio prescription batch required by the current patient; searching the target ciphertext audio file obtained by encrypting the target ID and the target audio prescription batch from a pre-stored audio library; the target ciphertext audio file is obtained by encrypting the file content of the target initial audio file with the head of a preset rule length by using the target ID and the target audio prescription batch; and sending the target ciphertext audio file to the target music therapeutic apparatus.
In a specific embodiment of the present invention, the cloud server is specifically configured to parse the audio file obtaining request to obtain a target ID of the target music therapeutic apparatus, a target audio prescription batch required by the current patient, a target expiration date of the target audio prescription batch to the current patient, and a target on-demand number of times of the target initial audio file corresponding to the target audio prescription batch by the current patient; and searching the target ciphertext audio file obtained by encrypting by using the target ID, the target audio prescription batch, the target expiration date and the target on-demand times from a pre-stored audio library.
In an embodiment of the present invention, the cloud server is further configured to perform responsibility pursuit processing according to the target ID, the target audio prescription batch, the target expiration date, and the target on-demand times.
In a specific embodiment of the present invention, the cloud server is specifically configured to calculate an encryption length of a target file according to the target ID and the target audio prescription batch; and encrypting the file contents of the target initial audio file from the head to the target file with the encryption length to obtain the target ciphertext audio file.
In a specific embodiment of the present invention, the cloud server is specifically configured to perform a logical operation on the target ID, the target audio prescription batch, and the target file encryption length to generate a target encryption key; and encrypting the file contents of the target initial audio file from the head to the target file encryption length by using the target encryption key to obtain the target ciphertext audio file.
In a specific embodiment of the present invention, the cloud server is specifically configured to perform an exclusive or operation on the target ID, the target audio prescription batch, and the target file encryption length to generate the target encryption key.
In an embodiment of the present invention, the target music therapeutic apparatus is specifically configured to read a target decryption key from a preset offset at the tail of a target ciphertext audio file returned by the cloud server.
A transmission method of an audio file is applied to a cloud server and comprises the following steps:
receiving an audio file acquisition request sent by a target music therapeutic apparatus;
analyzing the audio file acquisition request to obtain a target ID of the target music therapeutic apparatus and a target audio prescription batch required by the current patient;
searching a target ciphertext audio file obtained by encrypting the target ID and the target audio prescription batch from a pre-stored audio library; the target ciphertext audio file is obtained by encrypting the file content with the preset rule length at the head of the target initial audio file by using the target ID and the target audio prescription batch;
and sending the target ciphertext audio file to the target music therapeutic apparatus.
The utility model provides a transmission device of audio file, is applied to high in the clouds server, includes:
the request receiving module is used for receiving an audio file acquisition request sent by the target music therapeutic apparatus;
the request analysis module is used for analyzing the audio file acquisition request to obtain a target ID of the target music therapeutic apparatus and a target audio prescription batch required by the current patient;
the file obtaining module is used for searching a target ciphertext audio file obtained by encrypting the target ID and the target audio prescription batch from a pre-stored audio library; the target ciphertext audio file is obtained by encrypting the file content of a preset rule length at the head of the target initial audio file by using the target ID and the target audio prescription batch;
and the file sending module is used for sending the target ciphertext audio file to the target music therapeutic apparatus.
A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method as set forth above.
The invention provides a transmission system of audio files, which comprises the following steps: including high in the clouds server and a plurality of music therapeutic instrument, each music therapeutic instrument links to each other with high in the clouds server respectively, wherein: the target music therapeutic apparatus is used for sending an audio file acquisition request to the cloud server; reading a target decryption key from a preset offset of a target ciphertext audio file returned by the cloud server; decrypting the target ciphertext audio file by using the target decryption key to obtain a target initial audio file; playing the target initial audio file; wherein the target musical therapy apparatus is one of a plurality of musical therapy apparatuses; the cloud server is used for analyzing the audio file acquisition request to obtain a target ID of the target music therapeutic apparatus and a target audio prescription batch required by the current patient; searching a target ciphertext audio file obtained by encrypting the target ID and the target audio prescription batch from a pre-stored audio library; the target ciphertext audio file is obtained by encrypting the file content of a preset rule length at the head of the target initial audio file by using the target ID and the target audio prescription batch; and sending the target ciphertext audio file to a target music therapeutic apparatus.
According to the technical scheme, the encryption key is generated by using the target ID of the target music therapeutic apparatus and the target audio prescription batch required by the current patient, so that different prescription batches of different music therapeutic apparatuses correspond to different encryption modes, compared with the mode of acquiring the existing encryption key, the cracking difficulty is improved, and the data security is greatly improved. The target ciphertext audio file is generated and stored in advance according to the target ID of the target music therapeutic apparatus to which the target initial audio file belongs and the target audio prescription batch required by the current patient, and compared with the existing method for acquiring the ciphertext audio file through online encryption, the method has the advantage that the acquisition efficiency of the audio file is greatly improved. By encrypting the file content with the preset rule length at the head of the target initial audio file by using the generated encryption key, compared with the existing mode of encrypting the whole audio file, the decryption process is greatly simplified.
Accordingly, embodiments of the present invention further provide a method, an apparatus, and a computer-readable storage medium for transmitting an audio file corresponding to the above audio file transmission system, which have the above technical effects and are not described herein again.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a block diagram of an audio file transmission system according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating an exemplary method for transmitting an audio file according to an embodiment of the present invention;
fig. 3 is a block diagram of an audio file transmission apparatus according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The first embodiment is as follows:
referring to fig. 1, fig. 1 is a block diagram of a transmission system of an audio file according to an embodiment of the present invention, where the transmission system may include:
high in the clouds server 1 and a plurality of music therapeutic instrument 2, each music therapeutic instrument 2 links to each other with high in the clouds server 1 respectively, wherein:
the target music therapeutic apparatus 2 is used for sending an audio file acquisition request to the cloud server 1; reading a target decryption key from a preset offset of a target ciphertext audio file returned by the cloud server; decrypting the target ciphertext audio file by using the target decryption key to obtain a target initial audio file; playing the target initial audio file; wherein the target music therapy apparatus 2 is one of a plurality of music therapy apparatuses 2;
the cloud server 1 is used for analyzing the audio file acquisition request to obtain a target ID of the target music therapeutic apparatus 2 and a target audio prescription batch required by the current patient; searching a target ciphertext audio file obtained by encrypting the target ID and the target audio prescription batch from a pre-stored audio library; the target ciphertext audio file is obtained by encrypting the file content with the preset rule length at the head of the target initial audio file by using the target ID and the target audio prescription batch; and sending the target ciphertext audio file to the target music therapeutic apparatus 2.
The transmission system of the audio file provided by the embodiment of the invention can comprise a cloud server 1 and a plurality of music therapeutic apparatuses 2, and each music therapeutic apparatus 2 is in communication connection with the cloud server 1. When the target music therapeutic apparatus 2 belonging to one of the plurality of music therapeutic apparatuses 2 alleviates and treats the corresponding disease of the current patient, if the diagnosis and treatment stage of the current patient can be based on, the target music therapeutic apparatus 2 is used to send an audio file acquisition request to the cloud server 1. The cloud server 1 analyzes the audio file acquisition request to obtain a target ID of the target music therapeutic apparatus 2 and a target audio prescription batch required by the current patient. The cloud server 1 may encrypt the file content of the target initial audio file with the head portion preset with the rule length by using the target ID and the target audio prescription batch to obtain the target ciphertext audio file. And an audio library for storing each ciphertext audio file can be pre-established, after the target ID of the target music therapeutic apparatus 2 and the target audio prescription batch required by the current patient are obtained, the cloud server 1 can search the pre-stored audio library for the target ciphertext audio file obtained by encrypting the target ID and the target audio prescription batch, and send the target ciphertext audio file to the target music therapeutic apparatus 2.
The storage position of the target decryption key in the target ciphertext audio file can be preset in the target music therapeutic apparatus 2, after the target music therapeutic apparatus 2 receives the target ciphertext audio file, the target decryption key can be read from the preset offset of the target ciphertext audio file returned by the cloud server, the target ciphertext audio file is decrypted by using the target decryption key to obtain a target initial audio file, the target initial audio file is played, and therefore the target initial audio file is used for carrying out physiotherapy operation on a current patient along with vibration with corresponding strength.
If the current patient has arm muscle pain, the wavelength and intensity of the audio files can be adjusted according to the muscle state of the patient after the patient is treated by the music therapeutic apparatus 2 for multiple times, for example, the mode of playing 5 audio files in sequence is applied as the first audio prescription batch, and the physical therapy of arm muscle is performed on the patient by combining the first audio prescription batch and the vibration with corresponding intensity at first. And reserving the first two audio files of the applied 5 audio files, reducing the frequency of the last three audio files, playing the modified audio files at any time as a second audio prescription batch, and carrying out physical therapy on the arm muscles of the patient by combining the second audio prescription batch and the vibration with corresponding strength when the muscle state of the arm of the patient is known to be good according to the examination result.
The preset rule length of the file content for encrypting the target initial audio file header can be obtained by calculating according to the byte number of the product id (soft _ id), the byte number of the batch number (soft _ batch) and 1024 bytes, and the computer program for obtaining the audio file header encryption length-HeaderMixLength is as follows:
public int getHeaderMixLength(){
return 1024+soft_id+soft_batch;
}
it should be noted that the preset rule length may be set and adjusted according to actual situations, which is not limited in the embodiment of the present invention.
According to the technical scheme, the encryption key is generated by using the target ID of the target music therapeutic apparatus and the target audio prescription batch required by the current patient, so that different prescription batches of different music therapeutic apparatuses correspond to different encryption modes, compared with the mode of acquiring the existing encryption key, the cracking difficulty is improved, and the data security is greatly improved. The target ciphertext audio file is generated and stored in advance according to the target ID of the target music therapeutic apparatus to which the target initial audio file belongs and the target audio prescription batch required by the current patient, and compared with the existing mode of acquiring the ciphertext audio file through online encryption, the method has the advantage that the acquisition efficiency of the audio file is greatly improved. The generated encryption key is used for encrypting the file content with the preset rule length at the head of the target initial audio file, so that the decryption process is greatly simplified compared with the conventional mode of encrypting the whole audio file.
In a specific embodiment of the present invention, the cloud server 1 is specifically configured to parse the audio file obtaining request to obtain a target ID of the target music therapeutic apparatus 2, a target audio prescription batch required by the current patient, a target expiration date of the target audio prescription batch for the current patient, and a target on-demand frequency of the target initial audio file corresponding to the target audio prescription batch for the current patient; and searching a target ciphertext audio file obtained by encrypting by using the target ID, the target audio prescription batch, the target expiration date and the target on-demand times from a pre-stored audio library.
The audio file acquisition request sent by the target music therapeutic apparatus 2 may further include a target expiration date of the target audio prescription batch for the current patient and a target on-demand number of audio files corresponding to the target audio prescription batch for the current patient, in addition to the target ID of the target music therapeutic apparatus 2 and the target audio prescription batch required by the current patient. The target initial audio file can be encrypted by using the target ID, the target audio prescription batch, the target expiration date and the target on-demand times to obtain a target ciphertext audio file. If an encryption key can be generated at the tail part of the target initial audio file, specifically, the encryption key can be generated at 11 bytes at the tail part, 0-2 bits of storage software ID-soft _ ID,3-4 bits of storage software batch-soft _ batch,5-12 bits of storage are expiration date-fail _ date, and 13-22 bits of storage are on-demand times-dubbling _ count.
In an embodiment of the present invention, the cloud server 1 is further configured to perform responsibility pursuit processing according to the target ID, the target audio prescription batch, the target expiration date, and the target on-demand frequency.
Under the condition that the cloud server 1 encrypts the target initial audio file by using the target ID, the target audio prescription batch, the target expiration date and the target on-demand times to obtain the target ciphertext audio file, the cloud server 1 may pre-record the identity information of the relevant administrator corresponding to the target ID, the target audio prescription batch, the target expiration date and the target on-demand times. The cloud server 1 can also perform accountability processing according to the target ID, the target audio prescription batch, the target expiration date and the target on-demand times.
In a specific embodiment of the present invention, the cloud server 1 is specifically configured to calculate an encryption length of a target file according to a target ID and a target audio prescription batch; and encrypting the file contents of the target initial audio file from the head to the target file with the encryption length to obtain a target ciphertext audio file.
The cloud server 1 can calculate the specific encryption length of the target initial audio file according to the target ID and the target audio prescription batch, so as to obtain the encryption length of the target file, and encrypts the file content of the target initial audio file from the head part to the encryption length of the target file, so as to obtain the target ciphertext audio file. In this case, the target IDs of different target music therapeutic apparatuses 2 and different audio prescription batches have different corresponding file encryption lengths, thereby further improving data security.
In a specific embodiment of the present invention, the cloud server 1 is specifically configured to perform a logical operation on a target ID, a target audio prescription batch, and a target file encryption length to generate a target encryption key; and encrypting the file content of the target initial audio file from the head to the target file encryption length by using the target encryption key to obtain the target ciphertext audio file.
After the cloud server 1 calculates the target file encryption length of the file content for encrypting the target initial audio file, it may perform logical operation on the target ID, the target audio prescription batch, and the target file encryption length to generate a target encryption key. And encrypting the file content of the target initial audio file from the head to the target file encryption length by using the target encryption key to obtain the target ciphertext audio file.
In a specific embodiment of the present invention, the cloud server 1 is specifically configured to perform an exclusive or operation on the target ID, the target audio prescription batch, and the target file encryption length to generate a target encryption key.
After calculating the target file encryption length of the file content for encrypting the target initial audio file, the cloud server 1 may perform an exclusive or operation on the target ID, the target audio prescription batch, and the target file encryption length to generate a target encryption key, that is, an exclusive or operation password — operation password, where the acquisition procedure is as follows:
Figure BDA0002168165820000091
and encrypting the file content of the target initial audio file from the head to the encryption length of the target file by using the target encryption key obtained by the XOR operation to obtain the target ciphertext audio file.
In an embodiment of the present invention, the target music therapeutic apparatus 2 is specifically configured to read the target decryption key from a preset offset at the tail of the target ciphertext audio file returned by the cloud server.
The target decryption key can be stored in the preset offset of the tail of the target ciphertext audio file, and after the target music therapeutic apparatus 2 receives the target ciphertext audio file, the target decryption key can be read from the preset offset of the tail of the target ciphertext audio file returned by the cloud server. Carrying out the above example, storing the target decryption key in 11 bytes at the tail of the target ciphertext audio file, reading the last 11 bytes of the file stream, and analyzing: 0-2 bit storage software ID-soft _ ID,3-4 bit storage software batch-soft _ batch, the 5-12 bits store the expiration date-fail _ date, and the 13-22 bits store the number of requests-dubbing _ count.
Adding the product id (soft _ id), the batch number (soft _ batch) and 1024 bytes to obtain the file head encryption length, and obtaining the audio head encryption length, namely, headerMixLength
public int getHeaderMixLength(){
return 1024+soft_id+soft_batch;
}
Obtaining an exclusive-or operation password- - -operation password according to the product id and the product model
Figure BDA0002168165820000101
Carrying out XOR operation on the front HeaderMixLength byte in the file stream according to the OperationPassword for decryption; and transmitting the decrypted file stream to a music therapy player for playing.
Corresponding to the above system embodiments, the embodiments of the present invention further provide a transmission method of an audio file, and the transmission method of an audio file described below and the transmission system of an audio file described above may be referred to correspondingly.
Referring to fig. 2, fig. 2 is a flowchart of an implementation of a method for transmitting an audio file according to an embodiment of the present invention, which is applied to a cloud server, and the method may include the following steps:
s201: and receiving an audio file acquisition request sent by the target music therapeutic apparatus.
S202: and analyzing the audio file acquisition request to obtain a target ID of the target music therapeutic apparatus and a target audio prescription batch required by the current patient.
S203: and searching a target ciphertext audio file obtained by encrypting the target ID and the target audio prescription batch from a pre-stored audio library.
The target ciphertext audio file is obtained by encrypting the file content of the target initial audio file with the head preset rule length by using the target ID and the target audio prescription batch.
S204: and sending the target ciphertext audio file to a target music therapeutic apparatus.
According to the technical scheme, the encryption key is generated by using the target ID of the target music therapeutic apparatus and the target audio prescription batch required by the current patient, so that different prescription batches of different music therapeutic apparatuses correspond to different encryption modes, compared with the mode of acquiring the existing encryption key, the cracking difficulty is improved, and the data security is greatly improved. The target ciphertext audio file is generated and stored in advance according to the target ID of the target music therapeutic apparatus to which the target initial audio file belongs and the target audio prescription batch required by the current patient, and compared with the existing method for acquiring the ciphertext audio file through online encryption, the method has the advantage that the acquisition efficiency of the audio file is greatly improved. By encrypting the file content with the preset rule length at the head of the target initial audio file by using the generated encryption key, compared with the existing mode of encrypting the whole audio file, the decryption process is greatly simplified.
In one embodiment of the present invention, parsing the audio file acquisition request to obtain a target ID of the target music therapeutic apparatus and a target audio prescription batch required by the current patient includes:
analyzing the audio file acquisition request to obtain a target ID of the target music therapeutic apparatus, a target audio prescription batch required by the current patient, a target expiration date of the target audio prescription batch to the current patient, and a target on-demand frequency of a target initial audio file corresponding to the target audio prescription batch by the current patient;
searching a target ciphertext audio file obtained by encrypting a target ID and a target audio prescription batch from a pre-stored audio library, wherein the target ciphertext audio file comprises the following steps:
and searching a target ciphertext audio file obtained by encrypting by using the target ID, the target audio prescription batch, the target expiration date and the target on-demand times from a pre-stored audio library.
In an embodiment of the present invention, the method further comprises:
and performing tracing processing according to the target ID, the target audio prescription batch, the target expiration date and the target on-demand times.
In a specific embodiment of the present invention, the process of encrypting the target initial audio file to obtain the target ciphertext audio file includes:
calculating the encryption length of the target file according to the target ID and the target audio prescription batch;
and encrypting the file contents of the target initial audio file from the head to the target file with the encryption length to obtain a target ciphertext audio file.
In a specific embodiment of the present invention, encrypting a target initial audio file from a header to a file content of an encryption length of a target file to obtain a target ciphertext audio file includes:
performing logic operation on the target ID, the target audio prescription batch and the target file encryption length to generate a target encryption key;
and encrypting the file content of the target initial audio file from the head to the encryption length of the target file by using the target encryption key to obtain the target ciphertext audio file.
In a specific embodiment of the present invention, performing a logical operation on a target ID, a target audio recipe batch, and a target file encryption length to generate a target encryption key includes:
and carrying out XOR operation on the target ID, the target audio prescription batch and the target file encryption length to generate a target encryption key.
Referring to fig. 3, fig. 3 is a block diagram of a transmission apparatus for audio files in an embodiment of the present invention, which is applied to a cloud server, and the apparatus may include:
a request receiving module 31, configured to receive an audio file acquisition request sent by a target music therapeutic apparatus;
the request analysis module 32 is used for analyzing the audio file acquisition request to obtain a target ID of the target music therapeutic apparatus and a target audio prescription batch required by the current patient;
the file obtaining module 33 is configured to search a pre-stored audio library for a target ciphertext audio file obtained by encrypting a target ID and a target audio recipe batch; the target ciphertext audio file is obtained by encrypting the file content of a preset rule length at the head of the target initial audio file by using the target ID and the target audio prescription batch;
and the file sending module 34 is configured to send the target ciphertext audio file to the target music therapeutic apparatus.
According to the technical scheme, the encryption key is generated by using the target ID of the target music therapeutic apparatus and the target audio prescription batch required by the current patient, so that different prescription batches of different music therapeutic apparatuses correspond to different encryption modes, compared with the mode of acquiring the existing encryption key, the cracking difficulty is improved, and the data security is greatly improved. The target ciphertext audio file is generated and stored in advance according to the target ID of the target music therapeutic apparatus to which the target initial audio file belongs and the target audio prescription batch required by the current patient, and compared with the existing mode of acquiring the ciphertext audio file through online encryption, the method has the advantage that the acquisition efficiency of the audio file is greatly improved. The generated encryption key is used for encrypting the file content with the preset rule length at the head of the target initial audio file, so that the decryption process is greatly simplified compared with the conventional mode of encrypting the whole audio file.
In a specific embodiment of the present invention, the request parsing module 32 is a module that parses the audio file obtaining request to obtain a target ID of the target music therapeutic apparatus, a target audio prescription batch required by the current patient, a target expiration date of the target audio prescription batch to the current patient, and a target on-demand number of target initial audio files corresponding to the target audio prescription batch of the current patient;
in an embodiment of the present invention, the file obtaining module 33 is a module for searching a target ciphertext audio file encrypted by using the target ID, the target audio prescription batch, the target expiration date, and the target on-demand times from a pre-stored audio library.
In one embodiment of the present invention, the apparatus may further include:
and the responsibility tracing processing module is used for performing responsibility tracing processing according to the target ID, the target audio prescription batch, the target expiration date and the target on-demand frequency.
In one embodiment of the invention, the encryption module is included, the encryption module includes an encryption length calculation sub-module and an encryption sub-module,
the encryption length calculation submodule is used for calculating the encryption length of the target file according to the target ID and the target audio prescription batch;
and the encryption submodule is used for encrypting the file contents of the target initial audio file from the head to the encryption length of the target file to obtain a target ciphertext audio file.
In one embodiment of the invention, the encryption submodule comprises a key obtaining unit and an encryption unit,
the key obtaining unit is used for carrying out logical operation on the target ID, the target audio prescription batch and the target file encryption length to generate a target encryption key;
and the encryption unit is used for encrypting the file contents of the target initial audio file from the head to the target file encryption length by using the target encryption key to obtain a target ciphertext audio file.
In an embodiment of the present invention, the key obtaining unit is specifically a unit that performs an exclusive or operation on the target ID, the target audio recipe batch, and the target file encryption length to generate the target encryption key.
Corresponding to the above method embodiment, the present invention further provides a computer-readable storage medium having a computer program stored thereon, the computer program, when executed by a processor, implementing the steps of:
receiving an audio file acquisition request sent by a target music therapeutic apparatus; analyzing the audio file acquisition request to obtain a target ID of the target music therapeutic apparatus and a target audio prescription batch required by the current patient; searching a target ciphertext audio file obtained by encrypting the target ID and the target audio prescription batch from a pre-stored audio library; the target ciphertext audio file is obtained by encrypting the file content with the preset rule length at the head of the target initial audio file by using the target ID and the target audio prescription batch; and sending the target ciphertext audio file to a target music therapeutic apparatus.
The computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
For the introduction of the computer-readable storage medium provided by the present invention, please refer to the above method embodiments, which are not described herein again.
In the present specification, the embodiments are described in a progressive manner, and each embodiment focuses on differences from other embodiments, and the same or similar parts between the embodiments are referred to each other. The method, the device and the computer-readable storage medium disclosed by the embodiments correspond to the system disclosed by the embodiments, so that the description is simple, and the relevant points can be referred to the description of the method part.
The principle and the implementation of the present invention are explained in the present application by using specific examples, and the above description of the embodiments is only used to help understanding the technical solution and the core idea of the present invention. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.

Claims (10)

1. The utility model provides a transmission system of audio file, its characterized in that, includes high in the clouds server and a plurality of music therapeutic instrument, each the music therapeutic instrument respectively with the high in the clouds server links to each other, wherein:
the target music therapeutic apparatus is used for sending an audio file acquisition request to the cloud server; reading a target decryption key from a preset offset of a target ciphertext audio file returned by the cloud server; decrypting the target ciphertext audio file by using the target decryption key to obtain a target initial audio file; playing the target initial audio file; wherein the target musical therapy apparatus is one of a plurality of musical therapy apparatuses;
the cloud server is used for analyzing the audio file acquisition request to obtain a target ID of the target music therapeutic apparatus and a target audio prescription batch required by the current patient; searching the target ciphertext audio file obtained by encrypting the target ID and the target audio prescription batch from a pre-stored audio library; the target ciphertext audio file is obtained by encrypting the file content of the target initial audio file with the head preset rule length by using the target ID and the target audio prescription batch; sending the target ciphertext audio file to the target music therapeutic apparatus;
encrypting the file content with the preset rule length at the head of the target initial audio file by using the target ID and the target audio prescription batch as follows: the cloud server calculates the specific encryption length of the target initial audio file according to the target ID and the target audio prescription batch so as to obtain the encryption length of the target file, and encrypts the file content of the target initial audio file from the head part to the encryption length of the target file so as to obtain the target ciphertext audio file.
2. The audio file transmission system according to claim 1, wherein the cloud server is specifically configured to parse the audio file acquisition request to obtain a target ID of the target music therapeutic apparatus, a target audio prescription batch required by the current patient, a target expiration date of the target audio prescription batch for the current patient, and a target on-demand number of times of a target initial audio file corresponding to the target audio prescription batch by the current patient; and searching the target ciphertext audio file obtained by encrypting by using the target ID, the target audio prescription batch, the target expiration date and the target on-demand times from a pre-stored audio library.
3. The audio file transmission system of claim 2, wherein the cloud server is further configured to perform accountability processing according to the target ID, the target audio prescription batch, the target expiration date, and the target on-demand number.
4. The audio file transmission system according to any one of claims 1 to 3, wherein the cloud server is specifically configured to calculate a target file encryption length according to the target ID and the target audio recipe batch; and encrypting the file contents of the target initial audio file from the head to the target file with the encryption length to obtain the target ciphertext audio file.
5. The audio file transmission system of claim 4, wherein the cloud server is specifically configured to perform a logical operation on the target ID, the target audio recipe batch, and the target file encryption length to generate a target encryption key; and encrypting the file contents of the target initial audio file from the head to the target file encryption length by using the target encryption key to obtain the target ciphertext audio file.
6. The system according to claim 5, wherein the cloud server is configured to perform an exclusive-or operation on the target ID, the target audio recipe batch, and the target file encryption length to generate the target encryption key.
7. The audio file transmission system according to claim 1, wherein the target music therapeutic apparatus is specifically configured to read the target decryption key from a preset offset at the tail of the target ciphertext audio file returned by the cloud server.
8. A transmission method of an audio file is applied to a cloud server and comprises the following steps:
receiving an audio file acquisition request sent by a target music therapeutic apparatus;
analyzing the audio file acquisition request to obtain a target ID of the target music therapeutic apparatus and a target audio prescription batch required by the current patient;
searching a target ciphertext audio file obtained by encrypting the target ID and the target audio prescription batch from a pre-stored audio library; the target ciphertext audio file is obtained by encrypting the file content of a preset rule length at the head of the target initial audio file by using the target ID and the target audio prescription batch;
sending the target ciphertext audio file to the target music therapeutic apparatus;
encrypting the file content with the preset rule length at the head of the target initial audio file by using the target ID and the target audio prescription batch as follows: the cloud server calculates the specific encryption length of the target initial audio file according to the target ID and the target audio prescription batch so as to obtain the encryption length of the target file, and encrypts the file content of the target initial audio file from the head part to the encryption length of the target file so as to obtain the target ciphertext audio file.
9. The utility model provides a transmission device of audio file which characterized in that is applied to high in the clouds server, includes:
the request receiving module is used for receiving an audio file acquisition request sent by the target music therapeutic apparatus;
the request analysis module is used for analyzing the audio file acquisition request to obtain a target ID of the target music therapeutic apparatus and a target audio prescription batch required by the current patient;
the file obtaining module is used for searching a target ciphertext audio file obtained by encrypting the target ID and the target audio prescription batch from a pre-stored audio library; the target ciphertext audio file is obtained by encrypting the file content with the preset rule length at the head of the target initial audio file by using the target ID and the target audio prescription batch;
the file sending module is used for sending the target ciphertext audio file to the target music therapeutic apparatus;
encrypting the file content with the preset rule length at the head of the target initial audio file by using the target ID and the target audio prescription batch as follows: the cloud server calculates the specific encryption length of the target initial audio file according to the target ID and the target audio prescription batch so as to obtain the encryption length of the target file, and encrypts the file content of the target initial audio file from the head part to the encryption length of the target file so as to obtain the target ciphertext audio file.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the method for transmission of an audio file according to claim 8.
CN201910738759.2A 2019-08-15 2019-08-15 Audio file transmission system, method and device and computer readable storage medium Active CN112398879B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910738759.2A CN112398879B (en) 2019-08-15 2019-08-15 Audio file transmission system, method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910738759.2A CN112398879B (en) 2019-08-15 2019-08-15 Audio file transmission system, method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112398879A CN112398879A (en) 2021-02-23
CN112398879B true CN112398879B (en) 2022-12-09

Family

ID=74602192

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910738759.2A Active CN112398879B (en) 2019-08-15 2019-08-15 Audio file transmission system, method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112398879B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114028192A (en) * 2021-11-18 2022-02-11 深圳市第二人民医院(深圳市转化医学研究院) Portable pneumatic therapeutic instrument interaction system
CN116226890A (en) * 2023-05-05 2023-06-06 北京华阅嘉诚科技发展有限公司 Audio file processing method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101507863A (en) * 2008-09-08 2009-08-19 李隆 Music plug-in card type multifunctional physical therapy instrument and memory card production method
CN101873353A (en) * 2010-06-12 2010-10-27 田小平 Device and method for performing remote medical treatment
CN105376670A (en) * 2014-08-18 2016-03-02 深圳市领芯者科技有限公司 Health-maintaining sound box
US9578026B1 (en) * 2015-09-09 2017-02-21 Onulas, Llc Method and system for device dependent encryption and/or decryption of music content

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201880165U (en) * 2010-09-10 2011-06-29 李隆 Cell phone-based physical and psychological adjustment device through physical factors of music and color shade
WO2012173618A1 (en) * 2011-06-15 2012-12-20 Neuralieve, Inc. Means and method for applying magnetic pulses to prevent the occurrence of neurological disorders
CN105790925A (en) * 2014-12-24 2016-07-20 北京奇虎科技有限公司 Data encryption method, data decryption method, data encryption device and data decryption device
CN105162589B (en) * 2015-01-11 2018-08-14 陕西理工学院 It is a kind of to can verify that encryption attribute method based on lattice
CN106534894A (en) * 2016-10-31 2017-03-22 Tcl集团股份有限公司 Encrypted video distribution method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101507863A (en) * 2008-09-08 2009-08-19 李隆 Music plug-in card type multifunctional physical therapy instrument and memory card production method
CN101873353A (en) * 2010-06-12 2010-10-27 田小平 Device and method for performing remote medical treatment
CN105376670A (en) * 2014-08-18 2016-03-02 深圳市领芯者科技有限公司 Health-maintaining sound box
US9578026B1 (en) * 2015-09-09 2017-02-21 Onulas, Llc Method and system for device dependent encryption and/or decryption of music content

Also Published As

Publication number Publication date
CN112398879A (en) 2021-02-23

Similar Documents

Publication Publication Date Title
CN112398879B (en) Audio file transmission system, method and device and computer readable storage medium
US9237012B2 (en) Establishing secure communication between an implantable medical device and an external device
JP2010531206A5 (en)
CN110916992B (en) Cervical vertebra massage method, system, terminal and medium
Karalar et al. Reduced pain and anxiety with music and noise-canceling headphones during shockwave lithotripsy
WO2018177280A1 (en) System and method for implementing physical stimulation service
WO2019058952A1 (en) Medical data search system, medical data search method, and medical data search program
TW201243709A (en) Potable electronic device
CN206372374U (en) A kind of wearable E.E.G guiding sleeping hypnosis device
KR100670024B1 (en) Low frequency massager using a rhythm
CN113616467A (en) Sleep-aiding control method, device and system for massage instrument and computer equipment
KR100395301B1 (en) A brain wave service system and method through the internet
CN107039025B (en) Method for generating personalized tinnitus rehabilitation sound based on hyperchaos
Nahlieli S123: Modern Management Preserving the Salivary Glands
CN219579662U (en) Sound therapy system and equipment
Ravi et al. Data encryption using event-related brain signals
KR102140834B1 (en) Customized Tinnitus Self-Treatment System about Hearing Character of an Individual
CN114010909A (en) Immersion type five-tone tool image bionic acupuncture point stimulation system
Jabiullah et al. A Playfair Cipher-based Secured Patients’ Information Transaction System
CN210807634U (en) Audio application system
Nobakht et al. Music and Medicine: Promoting Harmony for Health
US11166872B2 (en) Applying predetermined sound to provide therapy
KR101559212B1 (en) Apparatus for acupuncture
Lee et al. Effects of patient-specific mobility therapy for TMJ, neck, and shoulder dysfunction after submandibular gland tumor surgery: a case report
KR101511754B1 (en) Oriental medical service system

Legal Events

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