Group chat component method, system and equipment based on encrypted identity and medium
Through voiceprint collection and analysis, combined with account and IP address verification, it solves the problem of lack of biometric analysis in identity encryption in existing technologies, improves the accuracy and security of identity authentication, and prevents information leakage.
Patent Information
- Application Number
- CN202410753716.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-06-12
AI Technical Summary
Existing identity encryption technology lacks the use of biometric analysis, resulting in the inability to prevent others from viewing chat messages when devices are lost and passwords are cracked, resulting in the leakage of important information.
By obtaining the user's account information, trusted addresses and multiple sets of audio data, voiceprint collection and analysis are performed, characteristic information is output, verification is performed based on the account and IP address, and voiceprint recognition processing is performed to determine login security.
It improves the accuracy and security of identity authentication, prevents information leakage, and enhances the security of identity encryption through unique voiceprint features.
Smart Images

Figure CN118694576A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of identity authentication, and in particular to a group chat component method, system, device and medium based on encrypted identity. Background Art
[0002] Identity authentication technology is an effective solution generated by the process of confirming the identity of an operator in a computer network. All information in the computer network world, including the user's identity information, is represented by a set of specific data. Computers can only recognize the user's digital identity. How to ensure that the operator who operates with a digital identity is the legal owner of this digital identity? Identity authentication technology is designed to solve this problem. As the first line of defense for protecting network assets, identity authentication plays a vital role.
[0003] Existing improvements for identity encryption usually increase the complexity of encrypting identity information, making it more difficult for attackers to crack all identity information. For example, in a Chinese patent with invention publication number CN112511310A, an obfuscation method for encrypted identity blind signatures is disclosed. This scheme uses asymmetric encryption to generate a private key that is difficult to obtain by cracking. However, the existing improved method lacks analysis of encrypting identity information using user biometrics. This will result in the asymmetric encryption method being unable to prevent others from viewing chat information when the user's device is lost and the password information is cracked, resulting in important information leakage in actual applications. In view of this, it is necessary to improve the existing identity encryption. Summary of the invention
[0004] The present invention aims to solve at least one of the technical problems in the prior art to a certain extent. By improving identity encryption, it is used to solve the problem in the prior art that the identity information is encrypted due to the lack of analysis using the user's biometrics. This will result in the asymmetric encryption method being unable to prevent others from viewing the chat information when the user's device is lost and the password information is cracked, resulting in the leakage of important information in practical applications.
[0005] To achieve the above objectives, in a first aspect, the present invention provides a group chat component method based on encrypted identity, comprising:
[0006] Obtain the user's account information, trusted address, and multiple sets of audio data, analyze the multiple sets of audio data, and output feature information based on the analysis results;
[0007] Obtaining a login request, the login request including verification information and a request address, judging the verification information based on the account information, and outputting address analysis information or account risk information based on the judgment result;
[0008] The request address is judged based on the address analysis information and the trusted address, and the security login information is output based on the judgment result, or the voiceprint recognition processing is performed based on the feature information, and the security login information or account risk information is output based on the voiceprint recognition processing result.
[0009] Furthermore, the account information includes a registered account number and a registered password, and the user's account information, a trusted address, and multiple sets of audio data are obtained, and the multiple sets of audio data are analyzed. The characteristic information output based on the analysis result includes:
[0010] When a user uses a smart device to register, the registration account and registration password entered by the user are obtained, the registration account and the registration password are associated and marked together as account information;
[0011] Storing the account information in an account information database;
[0012] Get the IP address used by the smart device and mark it as a trusted address;
[0013] Perform voiceprint collection and processing, the voiceprint collection and processing comprising:
[0014] Setting a fixed collection sample, wherein the collection sample includes a first number of words; displaying the collection sample and a collection button on a display screen of a smart device, using prompt words to remind the user to interact with the collection button and read the collection sample aloud;
[0015] When the user interacts with the capture button, the recording starts, and when the user ends the interaction with the capture button, the recording stops; the recorded audio data is uploaded to the server, and the audio data also includes the duration;
[0016] Execute the first round of voiceprint collection again.
[0017] Furthermore, the characteristic information includes average duration, characteristic image, maximum amplitude, characteristic peak number and characteristic area. Analyzing multiple groups of voiceprint information and outputting characteristic information based on the analysis results also include:
[0018] Get the duration of each audio message and mark them as the acquisition time;
[0019] All the acquisition times are combined in pairs to obtain multiple time combinations;
[0020] Calculate the absolute value of the difference between the acquisition times in the time combination, and mark it as time difference;
[0021] Calculate the average of the time differences, labeled as average time difference;
[0022] When the average time difference is greater than the time difference threshold, the output time is invalid;
[0023] When the average time difference is less than or equal to the time difference threshold, the average of all acquisition times is calculated, marked as the average duration, and the average duration is output.
[0024] Furthermore, analyzing the multiple groups of voiceprint information and outputting feature information based on the analysis results also includes:
[0025] Convert all audio data into a voiceprint waveform diagram, wherein the voiceprint waveform diagram includes a coordinate system with time as the horizontal axis and amplitude as the vertical axis and a sound wave image in the coordinate system;
[0026] Get the maximum amplitude in any voiceprint waveform and mark it as the maximum amplitude;
[0027] Use the peak straight line y = (1-k) × Vm to divide the voiceprint waveform, and obtain multiple discontinuous areas above the peak straight line, marked as peak areas; Vm is the maximum amplitude, and k is a constant;
[0028] Get the number of peak areas and mark it as the peak number;
[0029] For other voiceprint waveforms, the voiceprint waveforms are divided using the peak straight line y=(1-k)×Vm to obtain the number of peaks in the other voiceprint waveforms;
[0030] Calculate the average value of all peak numbers and mark it as the characteristic peak number; calculate the absolute value of the difference between all peak numbers and the characteristic peak number and mark it as a floating value;
[0031] Mark the largest floating value as the floating threshold;
[0032] Select any voiceprint waveform image and mark it as the initial image; place other voiceprint waveform images in the coordinate system of the initial image in turn to obtain the final feature image;
[0033] The area of a single pixel is set to 1, and the area of the feature image is calculated and marked as the feature area.
[0034] Further, obtaining a login request, judging the verification information based on the account information, and outputting address analysis information or account risk information based on the judgment result include:
[0035] Set the initial value of login times i to 0;
[0036] Execute a login judgment process, the login judgment process comprising:
[0037] Obtain verification information input by the user and the IP address of the smart device, and mark the IP address as a verification address; the verification information includes a verification account and a verification password;
[0038] Check the account information database to see if there is a registered account that is the same as the verification account. If not, output blank account information.
[0039] If it exists, retrieve the password associated with the registration account that is the same as the verification account;
[0040] Compare the password and the comparison information to see if they are the same. If they are the same, output the address analysis information; if they are not the same, add one to i;
[0041] Determine whether i is equal to the login number threshold. If i is less than the login number threshold, perform the login determination process again.
[0042] When i is equal to the login number threshold, the account risk information is output.
[0043] Further, judging the request address based on the address analysis information and the trusted address, outputting the security login information based on the judgment result or performing voiceprint recognition processing based on the feature information, and outputting the security login information or account risk information based on the voiceprint recognition processing result include:
[0044] When receiving address analysis information, determine whether the verification address is the same as the trusted address;
[0045] If they are the same, output the security login information; if they are different, perform voiceprint recognition processing, and output the security login information or account risk information based on the voiceprint recognition processing result.
[0046] Furthermore, the voiceprint recognition process includes:
[0047] Display the collected samples and the collection button on the display screen of the smart device, use prompt words to remind the user to interact with the collection button and read the collected samples aloud;
[0048] When the user interacts with the collection button, the recording starts, and when the user ends the interaction with the collection button, the recording stops; the recorded audio data is marked as detection data, and the detection data is uploaded to the server; the detection data includes the detection duration;
[0049] The detection data is converted into a voiceprint waveform and marked as a detection waveform;
[0050] Use the peak straight line y=(1-k)×Vm to divide the detection waveform graph to obtain the number of peaks in the detection waveform graph;
[0051] Calculate the difference between the peak number and the characteristic peak number, and mark it as the characteristic number difference;
[0052] Compare the difference in the number of features with the floating threshold. When the difference in the number of features is greater than the floating threshold, output the account risk information and end the voiceprint recognition process. When the difference in the number of features is less than or equal to the floating threshold, proceed to the subsequent analysis step.
[0053] Calculate the area of the detected waveform and mark it as the detected area;
[0054] Place the detection waveform in the coordinate system where the feature image is located, calculate the overlapped area between the detection waveform and the feature image, and mark the overlapped area;
[0055] Calculate the area where the feature image does not overlap with the detection waveform, and mark it as the difference area;
[0056] Calculate the ratio of the overlap area to the detection area, and mark it as the overlap judgment value;
[0057] Calculate the ratio of the difference area to the characteristic area and mark it as the difference judgment value;
[0058] When receiving invalid duration information, an area determination process is performed, and the area determination process includes:
[0059] When the overlap judgment value is greater than or equal to the overlap judgment threshold, and the difference judgment value is less than the difference judgment threshold, output the security login information; when the overlap judgment value is less than the overlap judgment threshold or the difference judgment threshold is greater than or equal to the difference judgment threshold, output the account risk information;
[0060] When the average duration is received, the absolute value of the difference between the detection duration and the average duration is calculated and marked as the detection difference; when the detection difference is less than or equal to the time difference threshold, area judgment processing is performed; when the detection difference is greater than the time difference threshold, the account risk information is output.
[0061] In a second aspect, the present invention also provides a group chat component system based on encrypted identity, including an account registration module, a login detection module and an identity authentication module; the account registration module is used to obtain the user's account information, trusted address and multiple groups of voiceprint information;
[0062] The login detection module is used to obtain a login request, the login request includes verification information and a request address, judge the verification information based on the account information, and output address analysis information or account risk information based on the judgment result;
[0063] The identity authentication module is used to analyze multiple groups of voiceprint information and output feature information based on the analysis results; judge the request address based on the address analysis information and the trusted address, output security login information based on the judgment result or perform voiceprint recognition processing based on the feature information, and output security login information or account risk information based on the voiceprint recognition processing result.
[0064] In a third aspect, the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps in the above method are performed.
[0065] In a fourth aspect, the present application provides a storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps in the above method are performed.
[0066] Beneficial effects of the present invention: The present invention obtains the user's IP address and multiple groups of audio data of the user when the user registers, sets the IP address as a trusted address, and then calculates and analyzes the duration of the audio data to determine whether the duration between multiple groups of audio data is stable, and outputs the average duration based on the calculation and analysis results; the advantage of this is that by setting a trusted address, when the user logs in when connected to a trusted network, he only needs to enter the correct account and password to log in successfully, without verifying the user's identity, thereby improving the intelligence of identity authentication; by analyzing the duration of the audio data, it can be determined whether there is regularity in the user's reading aloud, and if it is determined to be regular, the duration is analyzed together in the identity authentication process, which can improve the accuracy of identity authentication;
[0067] The present invention also analyzes the audio data and outputs the feature information of the audio data, performs voiceprint recognition processing based on the feature information, and finally judges the security of the login operation based on the voiceprint recognition processing result; the advantage of this is that voiceprint features are similar to fingerprint features and facial features. Different users have their unique voiceprint features, and users may store photos containing their own facial features. If the device is lost, static facial features are more likely to be leaked; and even if others deliberately imitate the voiceprint features of the user, there are still significant differences between the voiceprint features of the user and the user. Using voiceprint information for identity authentication improves the security of identity encryption. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] Figure 1 is a functional block diagram of the system of the present invention;
[0069] Figure 2 is a flow chart of the steps of the method of the present invention;
[0070] Figure 3 is a schematic diagram of a characteristic picture of the present invention;
[0071] Figure 4 is a schematic diagram of a detection waveform diagram of the present invention;
[0072] Figure 5 It is a schematic diagram of the superposition of the characteristic image and the detection waveform diagram of the present invention. DETAILED DESCRIPTION
[0073] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0074] Example 1, first aspect, please refer to Figure 1 As shown, the present invention provides a group chat component system based on encrypted identity, including an account registration module, a login detection module and an identity authentication module; the account registration module is used to obtain the user's account information, trusted address and multiple groups of voiceprint information;
[0075] The account registration module is configured with account registration policies, which include:
[0076] When a user uses a smart device to register, the registration account and registration password entered by the user are obtained, the registration account and the registration password are associated and marked together as account information;
[0077] Storing the account information in an account information database;
[0078] Get the IP address used by the smart device and mark it as a trusted address;
[0079] It should be noted that, taking home routers and WiFi networks as an example, when a user uses a mobile phone to connect to the Internet, the router will receive the mobile phone's request to connect to the Internet, and automatically assign a fixed IP address within the router's rule limit to the mobile phone according to the protocol, that is, the DHCP function; if the mobile phone also turns on the DCHP function, it will automatically receive the IP address assigned by the router. As long as the user does not choose "forget network" to reconnect to the network, this IP address is fixed; combined with the fact that the signal coverage of existing routers used in homes or businesses is usually small, connecting to a saved WiFi network can prove that the device has no risk of logging in from a different location;
[0080] On the other hand, for users using mobile networks, since the location and signal strength of mobile devices are constantly changing, network operators may frequently change the IP address of the device to maintain a stable network connection;
[0081] By setting a trusted IP address, users can log in directly in a secure environment without identity authentication; for example, when connecting to a company network or a home network, users only need to enter the correct account number and password to log in; in addition, the present invention also provides a trusted address setting function, so that users can set other IP addresses as trusted addresses when connecting to a trusted network.
[0082] Perform voiceprint collection and processing, which includes:
[0083] Setting a fixed collection sample, the collection sample includes a first number of words; displaying the collection sample and a collection button on a display screen of the smart device, using prompt words to remind the user to interact with the collection button and read the collection sample aloud;
[0084] It should be noted that the sample collection is set to 10 semantically incoherent Chinese characters. The purpose of semantic incoherence is to make there be obvious pauses between each Chinese character, so as to highlight the user's unique reading habits, and thus make the feature images obtained in the subsequent steps representative.
[0085] A preferred prompt word is: "Please press and hold the click button and read the text displayed on the screen. Stop clicking after reading is finished";
[0086] When the user interacts with the capture button, the recording starts, and when the user ends the interaction with the capture button, the recording stops; the recorded audio data is uploaded to the server, and the audio data also includes the duration;
[0087] Execute the first voiceprint collection process again;
[0088] In the specific implementation, the first number is set to 4, and a total of 5 groups of audio data can be obtained; the interval between two voiceprint collection processes should be no less than 5s to avoid the user reading repeated content multiple times in a row, resulting in changes in speaking speed, which will affect the feature information obtained by analysis.
[0089] The login detection module is used to obtain a login request, which includes verification information and a request address, to judge the verification information based on the account information, and to output address analysis information or account risk information based on the judgment result;
[0090] The login detection module is configured with login detection strategies, which include:
[0091] Set the initial value of login times i to 0;
[0092] Execute login judgment processing, which includes:
[0093] Obtain the verification information entered by the user and the IP address of the smart device, and mark the IP address as the verification address; the verification information includes the verification account and the verification password;
[0094] Check the account information database to see if there is a registered account that is the same as the verification account. If not, output blank account information.
[0095] If it exists, retrieve the password associated with the registration account that is the same as the verification account;
[0096] Compare the password and the comparison information to see if they are the same. If they are the same, output the address analysis information; if they are not the same, add one to i;
[0097] Determine whether i is equal to the login number threshold. If i is less than the login number threshold, perform the login determination process again.
[0098] When i is equal to the login number threshold, output the account risk information;
[0099] In the specific implementation, the login number threshold is set to 5. When the account is entered incorrectly, it is impossible to determine whether the password is incorrect and there is no value in analysis. Therefore, when the account is entered incorrectly, only blank account information is output to prompt the user that the account does not exist, and no subsequent analysis is performed. In addition, considering that the user may accidentally touch or confuse other passwords, resulting in incorrect password input, the login number threshold is set to 5, providing 5 password attempts. When all 5 attempts are incorrect, it is sufficient to determine that the account is at risk.
[0100] The identity authentication module is used to analyze multiple groups of voiceprint information and output feature images based on the analysis results; judge the request address based on the address analysis information and the trusted address, output secure login information based on the judgment result, or perform voiceprint recognition processing based on the feature images, and output secure login information or account risk information based on the voiceprint recognition processing result;
[0101] The authentication module is configured with a speech rate analysis strategy, which includes:
[0102] Get the duration of each audio message and mark them as the acquisition time;
[0103] All the acquisition times are combined in pairs to obtain multiple time combinations;
[0104] Calculate the absolute value of the difference between the acquisition times in the time combination, and mark it as time difference;
[0105] Calculate the average of the time differences, labeled as average time difference;
[0106] When the average time difference is greater than the time difference threshold, the output time is invalid;
[0107] In specific implementation, the time difference threshold is set to 2s. Based on the reading habits of users, in theory, when reading the same text non-continuously, the time difference required is about 1s. When the time difference threshold is set to 2s, when the average time difference is greater than 2s, it is sufficient to prove that the user's reading speed is irregular and sometimes fast and sometimes slow. At this time, the output time is invalid, and the time is not analyzed in the subsequent analysis. On the contrary, when the average time difference is less than 2s, it means that the user's reading speed fluctuates within a small range and there is a regularity. The average time can be calculated, and the time is included in the analysis in the subsequent analysis.
[0108] When the average time difference is less than or equal to the time difference threshold, the average of all acquisition times is calculated, marked as the average duration, and the average duration is output.
[0109] See also Figure 3 As shown, Figure 3 Where L2 is the peak area of the voiceprint waveform, and L1 is the peak straight line; Figure 3 It can be seen that there are 4 peaks in the voiceprint waveform;
[0110] The identity authentication module is also configured with a voiceprint analysis strategy, which includes:
[0111] Convert all audio data into a voiceprint waveform, which includes a coordinate system with time as the horizontal axis and amplitude as the vertical axis, and a sound wave image in the coordinate system;
[0112] It should be noted that you can use libraries in Python such as librosa to process audio data, and use drawing libraries in Python such as matplotlib to draw voiceprint waveforms;
[0113] Get the maximum amplitude in any voiceprint waveform and mark it as the maximum amplitude;
[0114] Use the peak straight line y = (1-k) × Vm to divide the voiceprint waveform, and obtain multiple discontinuous areas above the peak straight line, marked as peak areas; Vm is the maximum amplitude, and k is a constant;
[0115] In the specific implementation, k is taken as 0.1;
[0116] Get the number of peak areas and mark it as the peak number;
[0117] For other voiceprint waveforms, the voiceprint waveforms are divided using the peak straight line y=(1-k)×Vm to obtain the number of peaks in the other voiceprint waveforms;
[0118] Calculate the average value of all peak numbers and mark it as the characteristic peak number; calculate the absolute value of the difference between all peak numbers and the characteristic peak number and mark it as a floating value;
[0119] Mark the largest floating value as the floating threshold;
[0120] Select any voiceprint waveform image and mark it as the initial image; place other voiceprint waveform images in the coordinate system of the initial image in turn to obtain the final feature image;
[0121] The area of a single pixel is set to 1, and the area of the feature image is calculated and marked as the feature area;
[0122] It should be noted that when the boundary of the sound wave image is located at a certain pixel point, this point is also included in the calculation of the feature area.
[0123] The authentication module is also configured with an address analysis strategy, which includes:
[0124] When receiving address analysis information, determine whether the verification address is the same as the trusted address;
[0125] If they are the same, output the security login information; if they are different, perform voiceprint recognition processing, and output the security login information or account risk information based on the voiceprint recognition processing result.
[0126] The identity authentication module is also configured with a voiceprint verification strategy, which includes:
[0127] Display the collected samples and the collection button on the display screen of the smart device, use prompt words to remind the user to interact with the collection button and read the collected samples aloud;
[0128] When the user interacts with the collection button, the recording starts, and when the user ends the interaction with the collection button, the recording stops; the recorded audio data is marked as detection data, and the detection data is uploaded to the server; the detection data includes the detection duration;
[0129] See also Figure 4 As shown, Figure 4 This is the result obtained by dividing the detection waveform using the same peak straight line as the voiceprint waveform. It is easy to see from the figure that the number of peaks in the figure is 2;
[0130] The detection data is converted into a voiceprint waveform and marked as a detection waveform;
[0131] Use the peak straight line y=(1-k)×Vm to divide the detection waveform graph to obtain the number of peaks in the detection waveform graph;
[0132] Calculate the difference between the peak number and the characteristic peak number, and mark it as the characteristic number difference;
[0133] Compare the difference in the number of features with the floating threshold. When the difference in the number of features is greater than the floating threshold, output the account risk information and end the voiceprint recognition process. When the difference in the number of features is less than or equal to the floating threshold, proceed to the subsequent analysis step.
[0134] Calculate the area of the detected waveform and mark it as the detected area;
[0135] Place the detection waveform in the coordinate system where the feature image is located, calculate the overlapped area between the detection waveform and the feature image, and mark the overlapped area;
[0136] Calculate the area where the feature image does not overlap with the detection waveform, and mark it as the difference area;
[0137] Calculate the ratio of the overlap area to the detection area, and mark it as the overlap judgment value;
[0138] Calculate the ratio of the difference area to the characteristic area and mark it as the difference judgment value;
[0139] When receiving invalid duration information, an area determination process is performed, and the area determination process includes:
[0140] When the overlap judgment value is greater than or equal to the overlap judgment threshold, and the difference judgment value is less than the difference judgment threshold, output the security login information; when the overlap judgment value is less than the overlap judgment threshold or the difference judgment threshold is greater than or equal to the difference judgment threshold, output the account risk information;
[0141] In the specific implementation, the overlap judgment threshold is set to 90%, and the difference judgment value is set to 10%;
[0142] It should be noted that since the vertical axis of the coordinate system in the voiceprint waveform is the amplitude, when the amplitude of the detection waveform is small, the detection waveform will completely overlap with the feature image. At this time, the overlap judgment value is equal to 100%. Figure 5 As shown; Figure 5 In the figure, T1 is the difference area, and T2 is the overlap area. It can be seen from the information in the figure that the detection waveform is completely contained in the feature image, and the calculated overlap judgment value is 1. However, there are many areas in the feature image that do not overlap with the detection waveform, and it can be judged that the voiceprint features are not similar. Therefore, when executing the voiceprint verification strategy, it is necessary to combine the analysis of the overlap judgment value and the difference judgment value for comprehensive judgment;
[0143] When the average duration is received, the absolute value of the difference between the detection duration and the average duration is calculated and marked as the detection difference; when the detection difference is less than or equal to the time difference threshold, area judgment processing is performed; when the detection difference is greater than the time difference threshold, the account risk information is output.
[0144] Example 2, second aspect, please refer to Figure 2 As shown, the present invention also provides a group chat component method based on encrypted identity, including:
[0145] Step S1, obtaining the user's account information, trusted address and multiple sets of audio data, analyzing the multiple sets of audio data, and outputting feature information based on the analysis results; Step S1 also includes the following sub-steps:
[0146] Step S1011, when the user uses the smart device to perform a registration operation, obtain the registration account and registration password entered by the user, associate the registration account and the registration password, and mark them together as account information; store the account information in the account information database;
[0147] Step S1012, obtaining the IP address used by the smart device and marking it as a trusted address;
[0148] Step S1013: perform voiceprint collection processing, which includes:
[0149] Step S1014, setting a fixed collection sample, the collection sample includes a first number of words; displaying the collection sample and a collection button on the display screen of the smart device, using prompt words to remind the user to interact with the collection button and read the collection sample aloud;
[0150] Step S1015, when the user interacts with the capture button, the recording starts, and when the user ends the interaction with the capture button, the recording stops; the recorded audio data is uploaded to the server, and the audio data also includes the duration;
[0151] Step S1016, executing the first number of voiceprint collection processes again.
[0152] Step S1021, obtaining the duration of each audio information and marking them as acquisition time;
[0153] Step S1022, combining all the acquisition times in pairs to obtain multiple time combinations;
[0154] Step S1023, calculating the absolute value of the difference between the acquisition times in the time combination, and marking it as the time difference;
[0155] Step S1024, calculate the average value of the time difference, mark it as the average time difference; when the average time difference is greater than the time difference threshold, output invalid duration information; when the average time difference is less than or equal to the time difference threshold, calculate the average value of all acquisition times, mark it as the average duration, and output the average duration;
[0156] Step S1031, converting all audio data into a voiceprint waveform diagram, the voiceprint waveform diagram including a coordinate system with time as the horizontal axis and amplitude as the vertical axis and a sound wave image in the coordinate system;
[0157] Step S1032, obtaining the maximum amplitude in any voiceprint waveform, and marking it as the maximum amplitude;
[0158] Step S1033, using the peak straight line y = (1-k) × Vm to divide the voiceprint waveform, and obtain multiple discontinuous areas located above the peak straight line, marked as peak areas; Vm is the maximum amplitude, and k is a constant;
[0159] Step S1034, obtaining the number of peak areas and marking it as peak number;
[0160] Step S1035, for other voiceprint waveforms, use the high peak straight line y=(1-k)×Vm to divide the voiceprint waveforms to obtain the number of high peaks in the other voiceprint waveforms;
[0161] Step S1036, calculating the average value of all peak numbers, marking it as the characteristic peak number; calculating the absolute value of the difference between all peak numbers and the characteristic peak number, marking it as a floating value;
[0162] Step S1037, marking the maximum floating value as the floating threshold;
[0163] Step S1038, select any voiceprint waveform image and mark it as the initial image; place the other voiceprint waveform images in the coordinate system of the initial image in turn to obtain the final feature image;
[0164] Step S1039, setting the area of a single pixel to 1, calculating the area of the feature image, and marking it as the feature area.
[0165] Step S2, obtaining a login request, the login request including verification information and a request address, judging the verification information based on the account information, and outputting address analysis information or account risk information based on the judgment result; Step S2 also includes the following sub-steps:
[0166] Step S201, setting the number of login times i to an initial value of 0;
[0167] Step S202: executing a login determination process, which includes:
[0168] Obtain the verification information entered by the user and the IP address of the smart device, and mark the IP address as the verification address; the verification information includes the verification account and the verification password;
[0169] Check the account information database to see if there is a registered account that is the same as the verification account. If not, output blank account information.
[0170] If it exists, retrieve the password associated with the registration account that is the same as the verification account;
[0171] Compare the password and the comparison information to see if they are the same. If they are the same, output the address analysis information; if they are not the same, add one to i;
[0172] Determine whether i is equal to the login number threshold. If i is less than the login number threshold, perform the login determination process again.
[0173] When i is equal to the login number threshold, the account risk information is output.
[0174] Step S3, judging the request address based on the address analysis information and the trusted address, outputting the security login information based on the judgment result or performing voiceprint recognition processing based on the feature information, and outputting the security login information or account risk information based on the voiceprint recognition processing result; Step S3 also includes the following sub-steps:
[0175] Step S3011, when receiving the address analysis information, determining whether the verification address is the same as the trusted address;
[0176] Step S3012: if they are the same, output the security login information; if they are different, perform voiceprint recognition processing, and output the security login information or account risk information based on the voiceprint recognition processing result;
[0177] Voiceprint recognition processing includes:
[0178] Step S3021, displaying the collected sample and the collection button on the display screen of the smart device, using prompt words to remind the user to interact with the collection button and read the collected sample aloud;
[0179] Step S3022: when the user interacts with the collection button, recording starts, and when the user ends the interaction with the collection button, recording stops; the recorded audio data is marked as detection data, and the detection data is uploaded to the server; the detection data includes the detection duration;
[0180] Step S3023, converting the detection data into a voiceprint waveform, marked as a detection waveform;
[0181] Use the peak straight line y=(1-k)×Vm to divide the detection waveform graph to obtain the number of peaks in the detection waveform graph;
[0182] Calculate the difference between the peak number and the characteristic peak number, and mark it as the characteristic number difference;
[0183] Compare the difference in the number of features with the floating threshold. When the difference in the number of features is greater than the floating threshold, output the account risk information and end the voiceprint recognition process. When the difference in the number of features is less than or equal to the floating threshold, calculate the area of the detection waveform and mark it as the detection area.
[0184] Step S3024, placing the detection waveform in the coordinate system where the feature image is located, calculating the overlap area between the detection waveform and the feature image, and marking the overlap area;
[0185] Step S3025, calculating the area where the feature image does not overlap with the detection waveform image, and marking it as the difference area;
[0186] Step S3026, calculating the ratio of the overlap area to the detection area, marked as the overlap judgment value; calculating the ratio of the difference area to the feature area, marked as the difference judgment value;
[0187] Step S3027: When invalid duration information is received, an area determination process is performed. The area determination process includes:
[0188] When the overlap judgment value is greater than or equal to the overlap judgment threshold, and the difference judgment value is less than the difference judgment threshold, output the security login information; when the overlap judgment value is less than the overlap judgment threshold or the difference judgment threshold is greater than or equal to the difference judgment threshold, output the account risk information;
[0189] Step S3028, when the average duration is received, the absolute value of the difference between the detection duration and the average duration is calculated and marked as the detection difference; when the detection difference is less than or equal to the time difference threshold, area judgment processing is performed; when the detection difference is greater than the time difference threshold, the account risk information is output.
[0190] Embodiment 3, in the third aspect, the present application provides an electronic device, including a processor and a memory, the memory storing computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps in the above method are executed. Through the above technical solution, the processor and the memory are interconnected and communicate with each other through a communication bus and / or other forms of connection mechanisms, and the memory stores a computer program executable by the processor. When the electronic device is running, the processor executes the computer program to execute the method in any optional implementation of the above embodiment to achieve the following functions: obtain the user's account information, trusted address and multiple groups of audio data, analyze the multiple groups of audio data, and output feature images; obtain a login request, judge the verification information, and output address analysis information or account risk information; judge the request address, output secure login information or perform voiceprint recognition processing based on feature information.
[0191] Embodiment 4, in a fourth aspect, the present application provides a storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps in the above method are executed. Through the above technical solution, when the computer program is executed by the processor, the method in any optional implementation of the above embodiment is executed to achieve the following functions: obtaining the user's account information, trusted address, and multiple groups of audio data, analyzing the multiple groups of audio data, and outputting feature images; obtaining a login request, judging the verification information, and outputting address analysis information or account risk information; judging the request address, outputting secure login information or performing voiceprint recognition processing based on the feature information.
[0192] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0193] It should be understood by those skilled in the art that the embodiments of the present invention can be provided as methods, systems or computer program products. Therefore, the present invention can take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program codes. Among them, the storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read Only Memory, referred to as EPROM), programmable read-only memory (Programmable Read-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, disk or optical disk. These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0194] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
Claims
1. A group chat component method based on encrypted identity, characterized in that: include: Obtain the user's account information, trusted address, and multiple sets of audio data, analyze the multiple sets of audio data, and output feature information based on the analysis results; Obtaining a login request, the login request including verification information and a request address, judging the verification information based on the account information, and outputting address analysis information or account risk information based on the judgment result; The request address is judged based on the address analysis information and the trusted address, and the security login information is output based on the judgment result, or the voiceprint recognition processing is performed based on the feature information, and the security login information or account risk information is output based on the voiceprint recognition processing result.
2. The encrypted identity-based group chat component method according to claim 1, characterized in that: The account information includes a registered account number and a registered password. The user's account information, a trusted address, and multiple sets of audio data are obtained, and the multiple sets of audio data are analyzed. The characteristic information output based on the analysis results includes: When a user uses a smart device to register, the registration account and registration password entered by the user are obtained, the registration account and the registration password are associated and marked together as account information; Storing the account information in an account information database; Get the IP address used by the smart device and mark it as a trusted address; Perform voiceprint collection and processing, the voiceprint collection and processing comprising: Setting a fixed collection sample, wherein the collection sample includes a first number of words; displaying the collection sample and a collection button on a display screen of a smart device, using prompt words to remind the user to interact with the collection button and read the collection sample aloud; When the user interacts with the capture button, the recording starts, and when the user ends the interaction with the capture button, the recording stops; the recorded audio data is uploaded to the server, and the audio data also includes the duration; Execute the first round of voiceprint collection again.
3. The encrypted identity-based group chat component method according to claim 2, characterized in that: The characteristic information includes average duration, characteristic image, maximum amplitude, characteristic peak number and characteristic area. Analyzing multiple groups of voiceprint information, outputting characteristic information based on the analysis results also includes: Get the duration of each audio information and mark them as the acquisition time; All the acquisition times are combined in pairs to obtain multiple time combinations; Calculate the absolute value of the difference between the acquisition times in the time combination, and mark it as time difference; Calculate the average of the time differences, labeled as average time difference; When the average time difference is greater than the time difference threshold, the output time is invalid; When the average time difference is less than or equal to the time difference threshold, the average of all acquisition times is calculated, marked as the average duration, and the average duration is output.
4. The encrypted identity-based group chat component method according to claim 3, characterized in that: Analyze multiple groups of voiceprint information, and output feature information based on the analysis results, including: Convert all audio data into a voiceprint waveform diagram, wherein the voiceprint waveform diagram includes a coordinate system with time as the horizontal axis and amplitude as the vertical axis and a sound wave image in the coordinate system; Get the maximum amplitude in any voiceprint waveform and mark it as the maximum amplitude; Use the peak line y = (1-k) × Vm to divide the voiceprint waveform, and obtain multiple discontinuous areas above the peak line, marked as peak areas; Vm is the maximum amplitude, and k is a constant; Get the number of peak areas and mark it as the peak number; For other voiceprint waveforms, the voiceprint waveform is divided using the peak straight line y=(1-k)×Vm to obtain the number of peaks in the other voiceprint waveforms; Calculate the average value of all peak numbers and mark it as the characteristic peak number; calculate the absolute value of the difference between all peak numbers and the characteristic peak number and mark it as a floating value; Mark the largest floating value as the floating threshold; Select any voiceprint waveform image and mark it as the initial image; place other voiceprint waveform images in the coordinate system of the initial image in turn to obtain the final feature image; The area of a single pixel is set to 1, and the area of the feature image is calculated and marked as the feature area.
5. The encrypted identity-based group chat component method according to claim 4, characterized in that: Get the login request, judge the verification information based on the account information, and output the address analysis information or account risk information based on the judgment result, including: Set the initial value of login times i to 0; Execute a login judgment process, the login judgment process comprising: Obtain verification information input by the user and the IP address of the smart device, and mark the IP address as a verification address; the verification information includes a verification account and a verification password; Check the account information database to see if there is a registered account that is the same as the verification account. If not, output blank account information. If it exists, retrieve the password associated with the registration account that is the same as the verification account; Compare the password and the comparison information to see if they are the same. If they are the same, output the address analysis information; if they are not the same, add one to i; Determine whether i is equal to the login number threshold. If i is less than the login number threshold, perform the login determination process again. When i is equal to the login number threshold, the account risk information is output.
6. The encrypted identity-based group chat component method according to claim 5, characterized in that: The request address is judged based on the address analysis information and the trusted address, and the secure login information is output based on the judgment result or the voiceprint recognition processing is performed based on the feature information. The secure login information or account risk information is output based on the voiceprint recognition processing result, including: When receiving address analysis information, determine whether the verification address is the same as the trusted address; If they are the same, output the security login information; if they are different, perform voiceprint recognition processing, and output the security login information or account risk information based on the voiceprint recognition processing result.
7. The encrypted identity-based group chat component method according to claim 6, characterized in that: The voiceprint recognition process includes: Display the collected samples and the collection button on the display screen of the smart device, use prompt words to remind the user to interact with the collection button and read the collected samples aloud; When the user interacts with the collection button, the recording starts, and when the user ends the interaction with the collection button, the recording stops; the recorded audio data is marked as detection data, and the detection data is uploaded to the server; the detection data includes the detection duration; The detection data is converted into a voiceprint waveform and marked as a detection waveform; Use the peak straight line y=(1-k)×Vm to divide the detection waveform graph to obtain the number of peaks in the detection waveform graph; Calculate the difference between the peak number and the characteristic peak number, and mark it as the characteristic number difference; Compare the difference in the number of features with the floating threshold. When the difference in the number of features is greater than the floating threshold, output the account risk information and end the voiceprint recognition process. When the difference in the number of features is less than or equal to the floating threshold, proceed to the subsequent analysis step. Calculate the area of the detected waveform and mark it as the detected area; Place the detection waveform in the coordinate system where the feature image is located, calculate the overlapped area between the detection waveform and the feature image, and mark the overlapped area; Calculate the area where the feature image does not overlap with the detection waveform, and mark it as the difference area; Calculate the ratio of the overlap area to the detection area, and mark it as the overlap judgment value; Calculate the ratio of the difference area to the characteristic area and mark it as the difference judgment value; When receiving invalid duration information, an area determination process is performed, and the area determination process includes: When the overlap judgment value is greater than or equal to the overlap judgment threshold, and the difference judgment value is less than the difference judgment threshold, output the security login information; when the overlap judgment value is less than the overlap judgment threshold or the difference judgment threshold is greater than or equal to the difference judgment threshold, output the account risk information; When the average duration is received, the absolute value of the difference between the detection duration and the average duration is calculated and marked as the detection difference; when the detection difference is less than or equal to the time difference threshold, area judgment processing is performed; when the detection difference is greater than the time difference threshold, the account risk information is output.
8. The encrypted identity-based group chat component system is applicable to the encrypted identity-based group chat component method according to any one of claims 1 to 7, characterized in that: It includes an account registration module, a login detection module and an identity authentication module; the account registration module is used to obtain the user's account information, trusted address and multiple sets of voiceprint information; The login detection module is used to obtain a login request, the login request includes verification information and a request address, judge the verification information based on the account information, and output address analysis information or account risk information based on the judgment result; The identity verification module is used to analyze multiple sets of voiceprint information and output feature information based on the analysis results; The request address is judged based on the address analysis information and the trusted address, and the security login information is output based on the judgment result, or the voiceprint recognition processing is performed based on the feature information, and the security login information or account risk information is output based on the voiceprint recognition processing result.
9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the steps in the method according to any one of claims 1 to 7 are executed.
10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps in the method according to any one of claims 1 to 7 are executed.
Citation Information
Patent Citations
Voiceprint recognition-based intelligent program control method
CN105390143A
Voiceprint authentication method and device, computer equipment and storage medium
CN113192512A
Identity authentication method and device based on power system, computer equipment and storage medium
CN113886787A
Data security protection abnormal login corresponding method for power grid control platform
CN114205119A
Visualization interface of continuous waveform multi-speaker identification
US20140343941A1
