Software authentication method, device and system, storage medium, equipment and program product
By acquiring and decoding high-frequency signals in audio signals on the DSP chip, active authentication of the target audio processing software is achieved, solving the problems of difficult DSP chip software authorization management and software theft, and improving the stability and security of software use.
Patent Information
- Application Number
- CN202510884140.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-27
- Publication Date
- 2025-10-03
AI Technical Summary
Authorization management for DSP chip software is difficult, and it is difficult to ensure that only authorized users can obtain appropriate levels of access rights, making software theft inevitable.
By obtaining the high-frequency signal in the target audio signal and decoding it, reference text information is obtained, and authentication information is output based on the reference text information to represent the authentication result of the target audio processing software. The high-frequency signal that is imperceptible to the human ear is used to improve the security and concealment of the authentication.
It improves the security and confidentiality of software authentication and can timely detect and resolve software theft issues.
Smart Images

Figure CN120744883A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of information security technology, and in particular to a software authentication method, apparatus, system, storage medium, device, and program product. Background Art
[0002] As vehicles become increasingly intelligent, the use of in-car software such as in-car communication (ICC) and karaoke is becoming increasingly popular. To meet low-latency requirements, these in-car software must run on digital signal processing (DSP) chips. However, DSP chip software authorization management is challenging, making it difficult to ensure that only authorized users have access to the appropriate level, making software theft inevitable. Summary of the Invention
[0003] The embodiments of the present disclosure provide a software authentication method, apparatus, system, storage medium, device, and program product for actively authenticating DSP chip software, thereby helping to improve the stability and security of software use.
[0004] According to a first aspect of an embodiment of the present disclosure, a software authentication method is provided, the method comprising:
[0005] Acquire a first audio signal in a target space that has been processed by target audio processing software, where the target audio processing software is software for processing audio signals in the target space;
[0006] Acquire a high-frequency signal of a target frequency band in the first audio signal;
[0007] Decoding the high-frequency signal to obtain reference text information corresponding to the high-frequency signal;
[0008] According to the reference text information, authentication information corresponding to the target audio processing software is output, where the authentication information is used to represent an authentication result of authenticating the target audio processing software.
[0009] According to a second aspect of an embodiment of the present disclosure, a software authentication device is provided, the device comprising:
[0010] A first acquisition module is configured to acquire a first audio signal in a target space, wherein the target audio processing software is software for playing audio signals in the target space;
[0011] A second acquisition module, configured to acquire a high-frequency signal in a target frequency band from the first audio signal;
[0012] A decoding module, configured to decode the high-frequency signal to obtain reference text information corresponding to the high-frequency signal;
[0013] The output module is used to output the authentication information corresponding to the target audio processing software according to the reference text information, where the authentication information is used to represent the authentication result of the target audio processing software.
[0014] According to a third aspect of an embodiment of the present disclosure, there is provided a software authentication system, comprising target audio processing software and a software authentication device, wherein the software authentication device comprises a processing unit and an output unit;
[0015] The processing unit is configured to obtain a first audio signal in a target space after being processed by target audio processing software, wherein the target audio processing software is software for playing audio signals in the target space; obtain a high-frequency signal in a target frequency band from the first audio signal; and decode the high-frequency signal to obtain reference text information corresponding to the high-frequency signal.
[0016] The output unit is used to output authentication information corresponding to the target audio processing software according to the reference text information, where the authentication information is used to represent an authentication result of authenticating the target audio processing software.
[0017] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, wherein the storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, they are used to implement the above-mentioned software authentication method.
[0018] According to the fifth aspect of the embodiment of the present disclosure, an electronic device is provided, which includes: a processor; a memory for storing instructions executable by the processor; the processor is used to read the executable instructions from the memory and execute the instructions to implement the above-mentioned software authentication method.
[0019] According to a sixth aspect of the embodiments of the present disclosure, a computer program product is provided, including computer program instructions, which implement the above-mentioned software authentication method when executed by a processor.
[0020] Based on the above-mentioned embodiments of the present disclosure, a first audio signal in a target space that has been processed by target audio processing software is obtained, and then a high-frequency signal in a target frequency band in the first audio signal is obtained; the high-frequency signal is decoded to obtain reference text information corresponding to the high-frequency signal; and based on the reference text information, authentication information corresponding to the target audio processing software is output, and the authentication information is used to represent the authentication result of the target audio processing software. The technical solution disclosed in the present disclosure actively authenticates the target audio processing software through high-frequency signals that are imperceptible to the human ear. Based on the fact that high-frequency signals are difficult to intercept and parse, the security and concealment of software authentication are improved, which helps to promptly discover and resolve software theft issues.
[0021] The technical solution of the present disclosure is further described in detail below through the accompanying drawings and examples. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The above and other purposes, features, and advantages of the present disclosure will become more apparent through a more detailed description of the embodiments of the present disclosure in conjunction with the accompanying drawings. The accompanying drawings are intended to provide a further understanding of the embodiments of the present disclosure and constitute a part of the specification. Together with the embodiments of the present disclosure, they are used to explain the present disclosure and are not intended to limit the present disclosure. In the drawings, the same reference numerals generally represent the same components or steps.
[0023] Figure 1 is a schematic diagram of a system to which the present disclosure is applicable;
[0024] Figure 2 is a flowchart of a software authentication method provided by an exemplary embodiment of the present disclosure;
[0025] Figure 3 This is a flow chart of obtaining reference text information in a software authentication method provided by an exemplary embodiment of the present disclosure;
[0026] Figure 4 This is a flow chart of obtaining a first audio signal by mixing and superimposing in a software authentication method provided by an exemplary embodiment of the present disclosure;
[0027] Figure 5 This is a flowchart of determining whether software has been tampered with in a software authentication method provided by another exemplary embodiment of the present disclosure;
[0028] Figure 6 It is a structural diagram of a software authentication device provided by an exemplary embodiment of the present disclosure;
[0029] Figure 7 is a structural diagram of a software authentication device provided by another exemplary embodiment of the present disclosure;
[0030] Figure 8is a structural diagram of an electronic device provided by an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0031] To explain the present disclosure, example embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all the embodiments. It should be understood that the present disclosure is not limited to the example embodiments.
[0032] Overview of the Disclosure
[0033] During the implementation of the present disclosure, the inventors discovered through research that, to meet low-latency requirements, current in-vehicle software, such as ICC software and in-vehicle karaoke software, must run on DSP chips. However, to ensure efficient signal processing, DSP chips typically have dedicated hardware structures and instruction sets. This hardware optimization limits software authentication operations that require interaction with the operating system and other software components, making software authentication difficult.
[0034] The software authentication method provided by the disclosed technical solution solves the problem of high difficulty in DSP chip software.
[0035] Exemplary Systems
[0036] Figure 1 An exemplary system architecture 100 is shown to which the software authentication method or software authentication apparatus according to the embodiments of the present disclosure can be applied.
[0037] like Figure 1 As shown, the system architecture 100 may include an audio playback device 11, an authentication device 12, a network 13, and a server 14. The network 13 is a medium for providing a communication link between the authentication device 12 and the server 14, or a medium for providing a communication path between the audio playback device 11 and the server 14. The network 13 may include various connection types, such as wired or wireless communication links or fiber optic cables.
[0038] The audio playback device 11 includes target audio processing software that can acquire, process, and play audio signals. Users can use the audio playback device 11 to interact with a server 14 via a network 13 to receive audio signals. Various communication client applications can be installed on the audio playback device 11, such as navigation applications, multimedia applications, search applications, web browser applications, shopping applications, and instant messaging tools.
[0039] The authentication device 12 can be any electronic device capable of audio recording and software authentication, including but not limited to mobile terminals such as voice recorders, vehicle-mounted terminals, mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Android devices), and portable multimedia players (PMPs). The authentication device 12 can directly capture the audio signal played by the audio playback device 11 through the recording channel of the sound card.
[0040] It should be noted that the authentication device 12 provided in the embodiment of the present disclosure may not be an independent device, but a functional module in the audio playback device 11 that can authenticate software.
[0041] The server 14 may be a server that provides various services, for example, a server that can provide audio to the audio playback device 11 , or a server that can perform software authentication based on the audio collected by the authentication device 12 .
[0042] It should be noted that the software authentication method provided in the embodiment of the present disclosure can be executed by the server 14 or by the authentication device 12 . Accordingly, the software authentication device can be set in the server 14 or in the authentication device 12 .
[0043] It should be understood that Figure 1 The number of audio playback devices 11, authentication devices 12, networks 13, and servers 14 in the embodiment is merely illustrative. Any number of audio playback devices 11, authentication devices 12, networks 13, and servers 14 may be provided as required.
[0044] In some possible implementations, when the software authentication operation does not require remote processing, the above system architecture may not include the network 13 and the server 14, but only include the audio playback device 11 and the authentication device 12; or, if the audio playback device 11 can realize audio playback and software authentication, the system may also only include the audio playback device 11.
[0045] Exemplary Methods
[0046] Figure 2 This is a flowchart of a software authentication method provided by an exemplary embodiment of the present disclosure. This embodiment can be applied to electronic devices such as Figure 1 On the authentication device 12 or server 14, such as Figure 2 As shown, the following steps are included:
[0047] In step 201 , a first audio signal processed by target audio processing software in a target space is obtained. The target audio processing software is software for processing audio signals in the target space.
[0048] The target space may be any space for playing audio signals, such as a car interior, a room interior, or the like.
[0049] The target audio processing software is software running on a DSP chip, and may be karaoke software, ICC communication software, or the like.
[0050] In the embodiment of the present disclosure, the first audio signal may be a signal obtained by audio collection for the target space, and may include an audio signal of the communication object output by the ICC communication software in the target space during the current time period, or include an audio signal output by an in-car karaoke software.
[0051] The first audio signal may also include preset information used to authenticate the software, including but not limited to at least one of the following: software vendor information, software type information, and version information. Software vendor information indicates the organization that develops, implements, and maintains the software; software type information indicates the software's functions and uses, such as office software, entertainment software, or gaming software; and version information describes aspects such as the software's release date and performance optimization. Software vendor information, software type information, and version information may all be pre-set in the software for software authentication.
[0052] In step 202, a high-frequency signal in a target frequency band of a first audio signal is obtained.
[0053] The target frequency band is the frequency band where the encoded audio signal corresponding to the preset information used to authenticate the software is located.
[0054] In the embodiment of the present disclosure, a high-frequency signal in a target frequency band may be obtained from the first audio signal by high-pass filtering.
[0055] For example, if the target frequency band is a high frequency band above 20 kHz, the critical value can be set to 20 kHz. After high-pass filtering, the signal below 20 kHz can be suppressed, and the high frequency signal above and equal to 20 kHz can be obtained.
[0056] In step 203, the high frequency signal is decoded to obtain reference text information corresponding to the high frequency signal.
[0057] In the embodiment of the present disclosure, binary information can be obtained through audio decoding based on the energy of the signal in each frequency band of the high-frequency signal, and then the binary information can be converted into text information to obtain reference text information.
[0058] In the embodiment of the present disclosure, the binary information obtained by decoding the signals of each frequency band may be converted into text information based on character encoding (such as ASCII or UTF-8) to obtain reference text information.
[0059] In step 204, authentication information corresponding to the target audio processing software is output according to the reference text information. The authentication information is used to represent an authentication result of the target audio processing software.
[0060] In the embodiment of the present disclosure, the reference text information may be compared with the preset information, and the authentication information corresponding to the target audio processing software may be determined according to the comparison result.
[0061] In the disclosed embodiment, in order to authenticate the target audio processing software, when the user starts the target audio processing software to process the audio signal, the preset information can be encoded into a high-frequency signal, and then superimposed and fused with the audio signal (such as a voice signal or music audio) that the target audio processing software needs to output, and then output. Therefore, when the user or entity is a legitimate user or entity that has passed the identity authentication and permission check of the target audio processing software, the preset information that matches the reference text information can be decoded from the high-frequency signal of the acquired first audio signal.
[0062] In some embodiments, if the reference text information matches the preset information, it can be determined that the target audio processing software has been successfully authenticated, and then an authentication result representing the successful software authentication can be output, such as software version information, software vendor information, etc.; if the reference text information does not match the preset information, it can be determined that the target audio processing software has failed to be authenticated, and an authentication result representing the failure of software authentication can be output, such as "Authentication Failed" information.
[0063] Among them, the similarity between the reference text information and the preset information can be calculated. If the similarity is greater than a preset threshold, it can be determined that the reference text information matches the preset information, and the authentication result is successful authentication; if the similarity is not greater than the preset threshold, it can be determined that the reference text information does not match the preset information, and the authentication result is failed authentication.
[0064] Based on the embodiment of the present disclosure, a first audio signal processed by target audio processing software in a target space is obtained, and then a high-frequency signal in a target frequency band of the first audio signal is obtained; the high-frequency signal is decoded to obtain reference text information corresponding to the high-frequency signal; and based on the reference text information, authentication information corresponding to the target audio processing software is output, and the authentication information is used to represent the authentication result of the target audio processing software. The technical solution disclosed in the present disclosure achieves active authentication of the target audio processing software through high-frequency signals that are imperceptible to the human ear. Based on the fact that high-frequency signals are difficult to intercept and analyze, the security and concealment of software authentication are improved, which helps to promptly discover and resolve software theft issues.
[0065] Figure 3 FIG. 1 is a flow chart of obtaining reference text information in a software authentication method provided by an exemplary embodiment of the present disclosure. Figure 3 As shown, the following steps are included:
[0066] Step 231 : Decode each frequency band signal in the high frequency signal to obtain binary data corresponding to the high frequency signal.
[0067] In an embodiment of the present disclosure, the energy value of each frequency band signal in the high-frequency signal can be compared with the energy value of a preset frequency band; in response to the energy value of the frequency band signal being greater than the energy value of the preset frequency band, the value of the binary bit corresponding to the frequency band signal is determined to be a first value; in response to the energy value of the frequency band signal being not greater than the energy value of the preset frequency band, the value of the binary bit corresponding to the frequency band signal is determined to be a second value; and the values of the binary bits corresponding to each frequency band signal are combined into corresponding binary data.
[0068] The preset frequency band f0 is used as a frequency band for determining the energy levels of the remaining frequency bands in the high-frequency signal. The preset frequency band is a high-frequency band that is different from the high-frequency bands corresponding to the original text information. For example, if the high-frequency bands f1, f2, and f3 corresponding to the original text information are 22.5kHz, 21.5kHz, and 20.5kHz, respectively, the preset frequency band f0 may be the 23.5kHz band. The energy value of the preset frequency band f0 is the product k*E of the amplitude E of the energy of the remaining frequency bands and a set weight k, where k may be a value within the range of 0.1-0.9.
[0069] In an embodiment of the present disclosure, if the energy value of each frequency band signal in the high-frequency signal is greater than the energy value of the preset frequency band, it can be determined that the value of the binary bit corresponding to the frequency band signal is a first value, such as 1. If the energy value of each frequency band signal in the high-frequency signal is not greater than the energy value of the preset frequency band, it can be determined that the value of the binary bit corresponding to the frequency band signal is a second value, such as 0. Through this mapping conversion method, each frequency band signal in the high-frequency signal can be decoded into corresponding binary data.
[0070] Step 232: Convert the binary data into multi-base data with a set carry.
[0071] The carry is set to the carry of the multi-base data when the original text information is encoded into multi-base data. Taking the octal system as an example, each octal digit ranges from 0 to 7, corresponding to 3 binary bits. Therefore, each 3 binary bits can be used as a group of data to convert into an octal digit. For example, the binary data 111 011 101 110100 011 is converted into octal data to obtain 735643.
[0072] Step 233: Convert the multi-base data with the set carry into corresponding reference text information.
[0073] The multi-base data can be converted into text by digitally decoding the ASCII code to obtain the corresponding reference text information.
[0074] Based on the embodiments of the present disclosure, an implementation method for decoding reference text information from a high-frequency signal is disclosed, which helps to subsequently obtain a software authentication result based on the reference text information.
[0075] In some optional examples, in order to authenticate the target audio processing software, preset information can be embedded in the target audio processing software in advance. When the user uses the target audio processing software to process audio, the target audio processing software can encode the preset information into a high-frequency signal, and superimpose and fuse it with the audio signal that the target audio processing software needs to output (such as voice signal, music audio) to output a first audio signal. In this way, the authentication device can recapture or record the first audio signal containing the preset information. Figure 4 FIG. 1 is a flow chart of obtaining a first audio signal by mixing and superimposing in a software authentication method provided by an exemplary embodiment of the present disclosure. Figure 4 As shown, the following steps are included:
[0076] Step 401: Generate original text information containing preset information, where the preset information includes at least one of the following information: software vendor information, software type information, and version information.
[0077] The original text information is complete information including preset information. For example, if the preset information is “supplier aaa”, the original text information may be “the software supplier information of this software is aaa”.
[0078] In the disclosed embodiments, based on an existing text template, preset information can be written into the corresponding position in the text template to obtain the original text information. For example, if the text template is "The software vendor information of this software is ***" and the preset information is "Vendor aaa", then by writing the preset information into the *** position in the text template, the original text information "The software vendor information of this software is Vendor aaa" can be obtained.
[0079] Step 402: Encode the original text information to obtain an encoded audio signal.
[0080] In the embodiment of the present disclosure, the original text information may be first converted into multi-base data with a set digit; the multi-base data may be converted into multiple single-frequency signals; and an encoded audio signal may be generated based on the multiple single-frequency signals.
[0081] In the embodiment of the present disclosure, more valid information can be sent per unit time through multi-bits (such as 32-bits and hexadecimal bits), but multi-bits also reduce the frequency band interval, and the detection accuracy will be reduced. Therefore, in order to better balance the frequency band interval and the amount of valid information sent per unit time in the embodiment of the present disclosure, a set base is pre-set, such as quaternary or octal.
[0082] In specific implementation, the original text information can be converted into multi-base data with a set radix, such as quaternary and octal, through ASCII code.
[0083] In order to convert multi-base information into multiple single-frequency signals, the multi-base data with a set carry can be converted into binary data first, so that each binary data bit can be encoded into a corresponding frequency band energy signal to obtain a coded audio signal.
[0084] In the disclosed embodiment, the encoded audio signal is obtained by converting multi-bit data into a continuous binary stream and performing non-byte-aligned segmentation encoding according to a preset segmentation granularity, such as 2 bits, 3 bits, or 4 bits. By using a larger grouping bit number (such as 5 bits or 4 bits), more effective information can be transmitted per unit time.
[0085] For example, taking the octal digit as an example, the digital range of each octal digit is 0-7, which is converted into 3 binary digits. Each of the 3 binary digits can correspond to a frequency band, and can correspond to three frequency bands, namely f1, f2, and f3. f1 can be set to the 22.5kHz frequency band, f2 to the 21.5kHz frequency band, and f3 to the 20.5kHz frequency band. If the binary bit is 1, it means that there is a signal in the corresponding frequency band, and the binary bit is 0, it means that there is no signal in the corresponding frequency band. In this way, the original text information can be encoded to obtain an encoded audio signal. In the embodiment of the present disclosure, when performing audio encoding, the multiple binary bits corresponding to each multi-bit in the multi-bit data can be used as a group of encoded data, and the audio duration corresponding to each group of encoded data is a fixed duration T (such as 100ms). For example, each octal digit corresponds to three binary bits, and each three binary bits can be encoded as a group of encoded data to obtain audio with a duration of 100ms.
[0086] In an embodiment of the present disclosure, when performing audio encoding, in order to better identify whether each frequency band in the audio is a high-energy signal or a low-energy signal, a preset frequency band f0 can be set in advance. The energy value of the preset frequency band f0 is used as an energy threshold for determining the energy levels of the remaining frequency bands in the high-frequency signal. The energy value of the preset frequency band f0 is the product k*E of the amplitude E of the energy of the remaining frequency bands and a set weight k, where k can be a value in the range of 0.1-0.9.
[0087] Among them, in order to better identify the energy value of each frequency band signal in the high-frequency signal, the preset frequency band is a high-frequency band that is different from the high-frequency bands corresponding to other original text information. For example, the high-frequency bands f1, f2, and f3 corresponding to the original text information are 22.5kHz frequency band, 21.5kHz frequency band, and 20.5kHz frequency band, respectively, then the preset frequency band f0 can be the 23.5kHz frequency band.
[0088] Step 403: Mix and superimpose the encoded audio signal and the audio output signal of the target audio processing software to obtain a first audio signal.
[0089] In the embodiment of the present disclosure, the encoded audio signal and the audio output signal of the target audio processing software can be directly superimposed to obtain a composite waveform signal. Specifically, an audio mixer can be used to mix and superimpose the encoded audio signal and the audio output signal of the target audio processing software.
[0090] Based on the embodiment of the present disclosure, by generating original text information containing preset information and encoding the original text information to obtain an encoded audio signal, the encoded audio signal and the audio output signal of the target audio processing software are mixed and superimposed to obtain a first audio signal, thereby encoding the preset information used for authentication into a high-frequency signal that is imperceptible to the human ear and superimposing it on the audio output signal of the target audio processing software, which helps to achieve active authentication through the subsequent detection of high-frequency signals in the retrieved audio.
[0091] In passing Figure 4 After the illustrated embodiment superimposes and obtains the first audio signal, the first audio signal can be output and the first audio signal can be picked up back through the device microphone array to determine whether the first audio signal has been tampered with. Figure 5 FIG. 1 is a flow chart of determining whether software has been tampered with in a software authentication method provided by another exemplary embodiment of the present disclosure. Figure 5 As shown, the following steps are included:
[0092] Step 501: Acquire a reference high-frequency signal in a target frequency band of a first audio signal.
[0093] In the embodiment of the present disclosure, a high-frequency signal in a target frequency band may be obtained from the first audio signal by high-pass filtering.
[0094] The reference high-frequency signal is an audio signal in a target frequency band, such as an audio signal in the range of 20 kHz to 24 kHz.
[0095] Step 502: Determine whether the first audio signal has been tampered with based on the reference high-frequency signal.
[0096] In the embodiment of the present disclosure, the reference high-frequency signal may be compared with the original text information used for authentication to determine whether the first audio signal has been tampered with.
[0097] In some embodiments, audio recognition can be performed on a reference high-frequency signal to obtain reference text information; a first similarity between the reference text information and the original text information is determined; in response to the first similarity being not greater than a first threshold, it is determined that the first audio signal has been tampered with; in response to the first similarity being greater than the first threshold, it is determined that the first audio signal has not been tampered with.
[0098] In this embodiment, the reference text information and the original text information obtained by audio recognition can be preprocessed separately, such as data cleaning (removing punctuation and stop words), word segmentation and standardization (unifying uppercase and lowercase, expanding abbreviations), etc.; then the preprocessed text is vectorized to obtain the numerical features corresponding to the text. Commonly used methods include statistical models (such as TF-IDF, bag-of-words model) and semantic models (such as Word2Vec, GloVe, BERT); then the first similarity between the numerical features corresponding to the reference text information and the numerical features of the original text information is calculated.
[0099] If the first similarity is greater than the first threshold, it means that the reference text information is very similar to or identical to the original text information, and it can be determined that the first audio signal has not been tampered with; if the first similarity is not greater than the first threshold, it means that the reference text information is less similar to the original text information, and it can be determined that the first audio signal has not been tampered with.
[0100] Among them, the scenario in which the first audio signal is tampered with may be that a low-pass filter is added before playing the first audio signal to filter out signals above 20khz, or that other processing is performed on the high-frequency signal before playing the first audio signal, resulting in a large difference between the reference text information identified based on the reference high-frequency signal and the original text information.
[0101] In other embodiments, a second similarity between the reference high-frequency signal and the encoded audio signal corresponding to the original text information can also be obtained; in response to the second similarity being not greater than a second threshold, it is determined that the first audio signal has been tampered with; in response to the second similarity being greater than the second threshold, it is determined that the first audio signal has not been tampered with.
[0102] In this embodiment, the original text information can be audio-encoded to obtain an encoded audio signal, and then the similarity of the audio features of the encoded audio signal and the reference audio signal is obtained. For example, the similarity between the encoded audio signal and the reference audio signal is determined by using the cosine distance in the frequency domain between the encoded audio signal and the reference audio signal, or the similarity between the audio waveforms (or audio spectrograms) of the encoded audio signal and the reference audio signal is determined by using the similarity between the audio waveforms (or audio spectrograms) of the encoded audio signal and the reference audio signal.
[0103] Further, when it is determined that the first audio signal has not been tampered with, step 503 may be executed, and when it is determined that the first audio signal has been tampered with, step 504 may be executed.
[0104] Step 503 : In response to the reference high frequency signal indicating that the first audio signal has not been tampered with, the target audio processing software is run normally.
[0105] Step 504 : In response to the reference high-frequency signal indicating that the first audio signal has been tampered with, suspend the operation of the target audio processing software and output tampering prompt information, where the tampering prompt information is used to indicate that the target audio processing software has been tampered with.
[0106] The tampering prompt information may be a prompt tone or text message, which is used to remind the user that the target audio processing software has been tampered with, so that the user can contact the software provider in time to ensure the safety of the software.
[0107] Based on the embodiment of the present disclosure, by obtaining a reference high-frequency signal of a target frequency band in a first audio signal, and when the reference high-frequency signal indicates that the first audio signal has not been tampered with, the target audio processing software is normally operated; and when the reference high-frequency signal indicates that the first audio signal has been tampered with, the operation of the target audio processing software is terminated and a tampering prompt message is output. This allows timely identification of whether the encoding algorithm of the target audio processing software has been tampered with, and by terminating the operation of the tampered software, only the software that has not been tampered with is authenticated during software authentication, thereby avoiding the situation where, when authentication fails, it is impossible to determine whether the cause of the authentication failure is that the user used third-party software.
[0108] Exemplary devices
[0109] Figure 6 FIG. 1 is a structural diagram of a software authentication device provided by an exemplary embodiment of the present disclosure. Figure 6 As shown, the software authentication device may include:
[0110] A first acquisition module 61 is configured to acquire a first audio signal in a target space after being processed by target audio processing software, where the target audio processing software is software for playing audio signals in the target space;
[0111] A second acquisition module 62 is configured to acquire a high-frequency signal in a target frequency band from the first audio signal;
[0112] A decoding module 63 is used to decode the high-frequency signal to obtain reference text information corresponding to the high-frequency signal;
[0113] The output module 64 is used to output authentication information corresponding to the target audio processing software according to the reference text information, where the authentication information is used to represent the authentication result of the target audio processing software.
[0114] Figure 7 FIG. 1 is a structural diagram of a software authentication device provided by another exemplary embodiment of the present disclosure. Figure 7 As shown, in Figure 6 Based on the illustrated embodiment, in some implementations, the decoding module 63 may include:
[0115] The first decoding submodule 631 is used to decode the signals of each frequency band in the high-frequency signal to obtain binary data corresponding to the high-frequency signal;
[0116] A first conversion submodule 632, configured to convert binary data into multi-base data with a set carry;
[0117] The second conversion submodule 633 is configured to convert the multi-base data with a set carry into corresponding reference text information.
[0118] In some implementations, the first decoding submodule 631 may include:
[0119] a comparing unit 6311, configured to compare the energy value of each frequency band signal in the high frequency signal with the energy value of a preset frequency band;
[0120] a first determining unit 6312, configured to determine, in response to an energy value of the frequency band signal being greater than an energy value of a preset frequency band, that a value of a binary bit corresponding to the frequency band signal is a first value;
[0121] A second determining unit 6313 is configured to determine, in response to the energy value of the frequency band signal being not greater than the energy value of the preset frequency band, that the value of the binary bit corresponding to the frequency band signal is a second value;
[0122] a combining unit 6314, configured to combine the values of the binary bits corresponding to the signals of each frequency band into corresponding binary data;
[0123] The first value and the second value are different values.
[0124] In some implementations, the first acquisition module 61 may include:
[0125] The generating submodule 611 is configured to generate original text information including preset information, wherein the preset information includes at least one of the following information: software vendor information, software type information, and version information;
[0126] The encoding submodule 612 is used to encode the original text information to obtain an encoded audio signal;
[0127] The superposition submodule 613 is configured to mix and superimpose the encoded audio signal and the audio output signal of the target audio processing software to obtain a first audio signal.
[0128] In some implementations, the encoding submodule 612 is specifically configured to:
[0129] Convert the original text information into multi-base data with a set radix;
[0130] Convert multi-base data into multiple single-frequency signals;
[0131] An encoded audio signal is generated based on the multiple single frequency signals.
[0132] In some embodiments, the software authentication device may include:
[0133] A third acquisition module 65 is configured to acquire a reference high-frequency signal of a target frequency band in the first audio signal;
[0134] a software running module 66 for running the target audio processing software normally in response to the reference high frequency signal indicating that the first audio signal has not been tampered with;
[0135] The software terminating module 67 is configured to terminate the operation of the target audio processing software and output tampering prompt information in response to the reference high-frequency signal indicating that the first audio signal has been tampered with, wherein the tampering prompt information is used to indicate that the target audio processing software has been tampered with.
[0136] In some implementations, the software authentication device may further include:
[0137] The tampering determination module 68 is used to: perform audio recognition on the reference high-frequency signal to obtain reference text information; determine a first similarity between the reference text information and the original text information; in response to the first similarity being no greater than a first threshold, determine that the first audio signal has been tampered with; in response to the first similarity being greater than the first threshold, determine that the first audio signal has not been tampered with.
[0138] In some embodiments, the tampering determination module 68 can also be used to: obtain a second similarity between the reference high-frequency signal and the encoded audio signal corresponding to the original text information; in response to the second similarity being not greater than a second threshold, determine that the first audio signal has been tampered with; in response to the second similarity being greater than the second threshold, determine that the first audio signal has not been tampered with.
[0139] It should be noted that the modules in the present device can be decomposed and / or reassembled, and such decompositions and / or reassemblies should be regarded as equivalent solutions of the present device.
[0140] The exemplary embodiment of this device corresponds to the exemplary method described above, and the relevant contents can be referenced and cited to each other. The beneficial technical effects corresponding to the exemplary embodiment of this device can be referred to the corresponding beneficial technical effects of the exemplary method described above, and will not be repeated here.
[0141] Exemplary electronic devices
[0142] Figure 8 A structural diagram of an electronic device provided in an embodiment of the present disclosure includes at least one processor 81 and a memory 82.
[0143] The processor 81 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 8 to perform desired functions.
[0144] The memory 82 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. Volatile memory may include, for example, random access memory (RAM) and / or cache memory. Non-volatile memory may include, for example, read-only memory (ROM), a hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 81 may execute one or more computer program instructions to implement the vehicle posture detection method and / or other desired functions of the various embodiments of the present disclosure described above.
[0145] In one example, the electronic device may further include an input device 83 and an output device 84 , and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).
[0146] The input device 83 may also include, for example, a keyboard, a mouse, a touch screen, a sound pickup device (such as a microphone array), etc.
[0147] The output device 84 can output various information to the outside, and may include, for example, a display, a speaker, a printer, a communication network and its connected remote output devices, etc.
[0148] Of course, to simplify, Figure 8 Only some of the components related to the present disclosure in the electronic device are shown, and components such as buses, input / output interfaces, etc. are omitted. In addition, the electronic device may further include any other appropriate components according to specific application scenarios.
[0149] Exemplary systems, computer program products, and computer-readable storage media
[0150] In addition to the above-mentioned methods and devices, an embodiment of the present disclosure can also be a software authentication system, including target audio processing software and a software authentication device, the software authentication device including a processing unit and an output unit; the processing unit is used to obtain a first audio signal in a target space after being processed by the target audio processing software, the target audio processing software being software for playing audio signals in the target space; obtaining a high-frequency signal in a target frequency band in the first audio signal; decoding the high-frequency signal to obtain reference text information corresponding to the high-frequency signal; the output unit is used to output authentication information corresponding to the target audio processing software based on the reference text information, the authentication information being used to represent the authentication result of authenticating the target audio processing software.
[0151] The embodiments of the present disclosure may also be a computer program product, which includes computer program instructions. When the computer program instructions are executed by a processor, the processor executes the steps of the software authentication method according to various embodiments of the present disclosure described in the above "Exemplary Method" section of this specification.
[0152] The computer program product may be written in any combination of one or more programming languages to implement the operations of the disclosed embodiments, including object-oriented programming languages such as Java, C++, and conventional procedural programming languages such as C or similar programming languages. The program code may be executed entirely on the user's computing device, partially on the user's computing device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0153] In addition, an embodiment of the present disclosure may also be a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, causes the processor to execute the steps of the software authentication method according to various embodiments of the present disclosure described in the above "Exemplary Method" section of this specification.
[0154] The computer-readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can, for example, include but is not limited to a system, device or component of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0155] The basic principles of the present disclosure have been described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, and effects mentioned in this disclosure are merely illustrative and not restrictive, and should not be construed as necessarily possessed by each embodiment of the present disclosure. Furthermore, the specific details disclosed above are provided for illustrative purposes and to facilitate understanding, rather than as limitations. These details do not limit the present disclosure to necessarily being implemented using these specific details.
[0156] Those skilled in the art may make various changes and modifications to the present disclosure without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present disclosure and their equivalents, the present disclosure is intended to include these modifications and variations.
Claims
1. A software authentication method, comprising: Acquire a first audio signal in a target space that has been processed by target audio processing software, where the target audio processing software is software for processing audio signals in the target space; Acquire a high-frequency signal of a target frequency band in the first audio signal; Decoding the high-frequency signal to obtain reference text information corresponding to the high-frequency signal; According to the reference text information, authentication information corresponding to the target audio processing software is output, where the authentication information is used to represent an authentication result of authenticating the target audio processing software.
2. The method according to claim 1, wherein The decoding process of the high frequency signal to obtain target text information corresponding to the high frequency signal includes: Decoding each frequency band signal in the high-frequency signal to obtain binary data corresponding to the high-frequency signal; Converting the binary data into multi-base data with a set carry; The multi-base data with the set carry is converted into corresponding reference text information.
3. The method according to claim 2, wherein: The decoding of each frequency band signal in the high frequency signal to obtain binary data corresponding to the high frequency signal includes: Comparing the energy value of each frequency band signal in the high-frequency signal with the energy value of a preset frequency band; In response to the energy value of the frequency band signal being greater than the energy value of the preset frequency band, determining that the value of the binary bit corresponding to the frequency band signal is a first value; In response to the energy value of the frequency band signal being not greater than the energy value of the preset frequency band, determining the value of the binary bit corresponding to the frequency band signal to be a second value; Combining the values of the binary bits corresponding to the signals of each frequency band into the corresponding binary data; The first value and the second value are different values.
4. The method according to any one of claims 1 to 3, wherein: The obtaining of the first audio signal in the target space after being processed by the target audio processing software includes: Generate original text information containing preset information, wherein the preset information includes at least one of the following information: software vendor information, software type information, and version information; Encoding the original text information to obtain an encoded audio signal; The encoded audio signal and the audio output signal of the target audio processing software are mixed and superimposed to obtain the first audio signal.
5. The method according to claim 4, wherein The encoding process of the original text information to obtain the encoded audio signal includes: Converting the original text information into multi-base data with a set carry; Convert multi-base data into multiple single-frequency signals; The encoded audio signal is generated based on the multiple single frequency signals.
6. The method according to claim 4, further comprising: Acquire a reference high-frequency signal of the target frequency band in the first audio signal; In response to the reference high-frequency signal indicating that the first audio signal has not been tampered with, normally running the target audio processing software; In response to the reference high-frequency signal indicating that the first audio signal has been tampered with, the operation of the target audio processing software is stopped and tampering prompt information is output, where the tampering prompt information is used to indicate that the target audio processing software has been tampered with.
7. The method according to claim 6, further comprising: Performing audio recognition on the reference high-frequency signal to obtain reference text information; Determining a first similarity between the reference text information and the original text information; In response to the first similarity being not greater than a first threshold, determining that the first audio signal has been tampered with; In response to the first similarity being greater than a first threshold, it is determined that the first audio signal has not been tampered with.
8. The method according to claim 6, further comprising: Obtaining a second similarity between the reference high-frequency signal and the encoded audio signal corresponding to the original text information; In response to the second similarity being not greater than a second threshold, determining that the first audio signal has been tampered with; In response to the second similarity being greater than a second threshold, it is determined that the first audio signal has not been tampered with.
9. A software authentication device comprising: a first acquisition module, configured to acquire a first audio signal in a target space after being processed by target audio processing software, wherein the target audio processing software is software for processing audio signals in the target space; A second acquisition module, configured to acquire a high-frequency signal in a target frequency band from the first audio signal; A decoding module, configured to decode the high-frequency signal to obtain reference text information corresponding to the high-frequency signal; The output module is used to output the authentication information corresponding to the target audio processing software according to the reference text information, where the authentication information is used to represent the authentication result of the target audio processing software.
10. A software authentication system, comprising target audio processing software and a software authentication device, wherein the software authentication device comprises a processing unit and an output unit; The processing unit is configured to obtain a first audio signal in a target space after being processed by target audio processing software, wherein the target audio processing software is software for playing audio signals in the target space; obtain a high-frequency signal in a target frequency band from the first audio signal; and decode the high-frequency signal to obtain reference text information corresponding to the high-frequency signal. The output unit is used to output authentication information corresponding to the target audio processing software according to the reference text information, where the authentication information is used to represent an authentication result of authenticating the target audio processing software.
11. A computer-readable storage medium, wherein the storage medium stores computer program instructions, wherein the computer program instructions, when executed by a processor, are used to implement the method according to any one of claims 1 to 8.
12. An electronic device, comprising: processor; a memory for storing instructions executable by the processor; The processor is configured to read the executable instructions from the memory and execute the instructions to implement the method according to any one of claims 1 to 8.
13. A computer program product comprising computer program instructions, wherein when the computer program instructions are executed by a processor, the method according to any one of claims 1 to 8 is implemented.