Patent Publication Number: US-2018048646-A1

Title: Method and Apparatus for Managing Graded Cipher

Description:
TECHNICAL FIELD 
     The present disclosure relates to, but is not limited to, an encryption technology, and particularly to a method and apparatus for managing a graded cipher. 
     BACKGROUND 
     A method related for implementing voice encryption generally includes the following operations. A user inputs a voice password through a mobile phone; and a voiceprint characteristic parameter is obtained by adopting a Mel cepstrum technology. The user inputs the same password when logging in a system for the second time, and voiceprint information of a voice to be authenticated is simultaneously obtained by characteristic extraction. Finally, the voiceprint characteristic parameter and the voiceprint information of the voice to be authenticated are matched to obtain a credibility through a voiceprint authentication matching algorithm. An obtained credibility score is compared with a critical value, and an output result is “the owner” when the credibility score is smaller than the critical value, otherwise the obtained result is “not the owner”. Therefore, an authentication process is completed. 
     In the method related for implementing voice encryption, after a voice cipher is recorded, the user is required to speak the whole voice for verification during verification with the voice password. Considering privacy and security, for the same application or verification, the user is required to set multiple different voice passwords for verification of different security grades. At present, during such graded cipher management, the user is required to input the multiple different voice passwords and remember a content of each voice password. It is very tedious for the user, and the user may easily forget or get confused, therefore a user experience is poorer. 
     SUMMARY 
     The below is the summary of a subject described in detail in the document, and the summary is not intended to limit the scope of protection of the claims. 
     Embodiments of the present disclosure provide a method and apparatus for managing a graded cipher, which can simply implement user verification and improve a user experience. 
     An embodiment of the present disclosure provides a method for managing a graded cipher, which includes that: 
     a corresponding relationship between different security grades and corresponding voice passwords is established, herein a voice password corresponding to each security grade in the corresponding relationship is a part or all of a preset voice password; and 
     a voice password is received from a user, and the obtained corresponding relationship is searched for a security grade corresponding to a voice password matched with the received voice password. 
     In an exemplary embodiment, when a security grade in the corresponding relationship is higher, a length of a voice password corresponding to the security grade is larger. 
     In an exemplary embodiment, the step that a corresponding relationship between different security grades and corresponding voice passwords is established includes that: 
     the preset voice password and a security grade number are acquired in advance; and 
     a voice password, of which a length is (N-i)/N of a length of the preset voice password, from the preset voice password is acquired, and a corresponding relationship between the obtained voice password and an ith security grade is set; 
     herein N is the security grade number, and i is an integer more than or equal to 0. 
     In an exemplary embodiment, the step that a corresponding relationship between the obtained voice password and an ith security grade is set includes that: 
     a voiceprint characteristic of the obtained voice password is extracted, and a corresponding relationship between the voiceprint characteristic of the obtained voice password and the ith security grade is stored. 
     The step that the obtained corresponding relationship is searched for a security grade corresponding to a voice password matched with the received voice password includes that: 
     a voiceprint characteristic of the received voice password is acquired; and 
     the obtained corresponding relationship is searched for the security grade corresponding to a voiceprint characteristic of the voice password matched with the voiceprint characteristic of the received voice password. 
     An embodiment of the present disclosure further proposes a computer-readable storage medium, which stores a computer-executable instruction, and the computer-executable instruction is used to execute any method described above. 
     An embodiment of the present disclosure further proposes an apparatus for managing a graded cipher, which includes an acquisition module, a receiving module and a searching module. 
     The acquisition module is configured to establish a corresponding relationship between different security grades and corresponding voice passwords; herein a voice password corresponding to each security grade in the corresponding relationship is a part or all of a preset voice password. 
     The receiving module is configured to receive a voice password from a user. 
     The searching module is configured to search the obtained corresponding relationship for a security grade corresponding to a voice password matched with the received voice password. 
     In an exemplary embodiment, the acquisition module is configured to, 
     acquire the preset voice password and a security grade number, 
     acquire a voice password, of which a length is (N-i)/N of a length of the preset voice password, from the preset voice password, and set a corresponding relationship between the obtained voice password and an ith security grade; herein N is the security grade number, and i is an integer more than or equal to 0. 
     In an exemplary embodiment, the acquisition module is configured to, 
     acquire the preset voice password and a security grade number in advance; and 
     acquire a voice password, of which a length is (N-i)/N of a length of the preset voice password, from the preset voice password, extract a voiceprint characteristic of the obtained voice password, and store a corresponding relationship between the voiceprint characteristic of the obtained voice password and an ith security grade; herein N is the security grade number, and i is an integer more than or equal to 0. 
     The searching module is configured to, 
     acquire a voiceprint characteristic of the received third voice password, search the obtained corresponding relationship for the security grade corresponding to a voiceprint characteristic of the voice password matched with the voiceprint characteristic of the received voice password, and enter the searched security grade. 
     Compared with an existing art, the embodiment of the present disclosure includes that: the corresponding relationship between the different security grades and the corresponding voice passwords is established, herein the voice password corresponding to each security grade in the corresponding relationship is a part or all of the preset voice password; and the voice password is received from the user, and the obtained corresponding relationship is searched for the security grade corresponding to the voice password matched with the received voice password. By the solution of the embodiment of the present disclosure, the user is only required to input the preset voice password to obtain the voice passwords corresponding to the different security grades, and is not required to input multiple different voice passwords to implement verification of the different security grades. Therefore, user verification is simply implemented, so that a user experience is improved. 
    
    
     
       After the drawings and the detailed descriptions are read and understood, the other aspects can be understood. 
       BRIEF DESCRIPTION OF DRAWINGS 
         FIG. 1  is a flowchart of a method for managing a graded cipher according to an embodiment of the present disclosure. 
         FIG. 2  is a structure diagram of an apparatus for managing a graded cipher according to an embodiment of the present disclosure. 
     
    
    
     DETAILED DESCRIPTION 
     For facilitating understanding of those skilled in the art, further descriptions, made below with reference to the drawings, about the present disclosure are not intended to limit the scope of protection of the present disclosure. It is important to note that the embodiments in the present application and various modes in the embodiments may be combined with each other without conflicts. 
     Referring to  FIG. 1 , an embodiment of the present disclosure proposes a method for managing a graded cipher, which includes the following steps  100 - 101 . 
     In step  100 , a terminal establishes a corresponding relationship between different security grades and corresponding voice passwords. 
     In the step, a voice password corresponding to each security grade in the corresponding relationship is a part or all of a preset voice password. For example, when a security grade is higher, a length of the corresponding voice password is larger. 
     In the step, the step of establishing the corresponding relationship between the different security grades and the corresponding voice passwords includes that: the preset voice password and a security grade number are acquired in advance; and a voice password of which a length is (N-i)/N of a length of the preset voice password is acquired from the obtained preset voice password, and a corresponding relationship between the obtained voice password and an ith security grade is set. Herein, N is the security grade number, and i is an integer more than or equal to 0. 
     In an embodiment, the preset voice password and the security grade number may be input by a user. 
     In an embodiment, when i is 0, it is indicated that the security grade is highest, and when i is 1, it is indicated that the security grade is the second highest, and so on. 
     In an embodiment, the step that the corresponding relationship between the obtained voice password and the ith security grade is set includes that: a voiceprint characteristic of the obtained voice password is extracted, and a corresponding relationship between the voiceprint characteristic of the obtained voice password and the ith security grade is stored. 
     In step  101 , the terminal receives a voice password from a user, and searches the obtained corresponding relationship for a security grade corresponding to a voice password matched with the received voice password. 
     In the step, when a security grade corresponding to the voice password matched with the received voice password is not found in the corresponding relationship, the flow is ended. 
     In the step, the step of searching the obtained corresponding relationship for the security grade corresponding to the voice password matched with the received voice password includes that: a voiceprint characteristic of the received voice password is acquired; and the obtained corresponding relationship is searched for the security grade corresponding to a voiceprint characteristic of the voice password matched with the voiceprint characteristic of the received voice password. 
     In the step, judging whether the voiceprint characteristic of the received voice password is matched with the voiceprint characteristic of the voice password in the corresponding relationship belongs to general knowledge well known by those skilled in the art, and is not intended to limit the scope of protection of the present disclosure, and will not be elaborated herein. 
     The method of the abovementioned embodiment may be implemented by the terminal. 
     By the method of the embodiment of the present disclosure, the user is only required to input the preset voice password to obtain voice passwords corresponding to the different security grades, and is not required to input multiple different voice passwords to implement verification of the different security grades. Therefore, user verification is simply implemented, so that a user experience is improved. 
     In the method of the embodiment of the present disclosure, the user may set different security grades for an application or a system, and each security grade corresponds to different access rights and operating rights. 
     The method of the present disclosure will be described below in detail through specific implementation modes. 
     A first embodiment: a user records a preset voice password “Hello, Zhongxing” and a security grade number 2 indicating that there are two security grades. A 0 th  security grade is a higher security grade, and a first security grade is a lower security grade. 
     A corresponding relationship between a length of a voice password and a security grade is as follows. A length of a voice password corresponding to the 0 th  security grade is the same as a length of the preset voice password, that is, the user can be successfully verified only after speaking all contents of the recorded preset voice password. A length of a voice password corresponding to the first security grade is ½ of the length of the preset voice password, which indicates that the user can be successfully verified after the user needs to speak contents of ½ of the length of the input preset voice password. 
     After the preset voice password and the security grade number are received from the user, the preset voice password is truncated according to the length of the voice password corresponding to each security grade, that is, the first ½ “Hello” (or latter ½ “Zhongxing”) of “Hello, Zhongxing” and 100% “Hello, Zhongxing” of “Hello, Zhongxing” are truncated. 
     Voiceprint characteristic extraction is performed on each truncated voice password, that is, voiceprint characteristic extractions are performed on “Hello” (or “Zhongxing”) and “Hello, Zhongxing” respectively. 
     Voiceprint characteristics of the truncated voice passwords are stored, that is the voiceprint characteristics of “Hello” (or “Zhongxing”) and “Hello, Zhongxing” are stored. 
     During verification with a voice, the user speaks “Hello” (or “Zhongxing”), and a voiceprint characteristic of a received voice password, i.e. the voiceprint characteristic of “Hello” (or “Zhongxing”), is extracted according to the received voice password. 
     The voiceprint characteristic of the received voice password is sequentially compared with the voiceprint characteristic, stored before, of each voice password, and it is found that the voiceprint characteristic is matched with the stored voiceprint characteristic of the voice password “Hello” (or “Zhongxing”), so that the verification succeeds, and the corresponding security grade  1  is entered. 
     A second embodiment: a user records a preset voice password “Hello, Zhongxing Telecommunication” and a security grade number  3  indicating that there are three security grades. A 0 th  security grade is a higher security grade, and a first security grade is a lower security grade and a second security grade is a lowest security grade. 
     A corresponding relationship between a length of a voice password and a security grade is as follows. A length of a voice password corresponding to the 0 th  security grade is the same as a length of the preset voice password, that is, the user can be successfully verified only after speaking all contents of the recorded preset voice password. A length of a voice password corresponding to the first security grade is ⅔ of the length of the preset voice password, which indicates that the user can be successfully verified after speaking contents of ⅔ of the length of the recorded preset voice password. A length of a voice password corresponding to the second security grade is ⅓ of the length of the preset voice password, which indicates that the user can be successfully verified after speaking contents of ⅓ of the length of the recorded preset voice password. 
     After the preset voice password and the security grade number are received from the user, the preset voice password is truncated according to the length of the voice password corresponding to each security grade, that is, the first ⅓ “Hello” (or the last ⅓ “Telecommunication”) of “Hello, Zhongxing Telecommunication”, the first ⅔ “Hello, Zhongxing” (or the last ⅔ “Zhongxing Telecommunication”) of “Hello, Zhongxing Telecommunication” and 100% “Hello, Zhongxing Telecommunication” of “Hello, Zhongxing Telecommunication” are truncated. 
     Voiceprint characteristic extraction is performed on each truncated voice password, that is, voiceprint characteristic extractions are performed on “Hello” (or “Telecommunication”), “Hello, Zhongxing” (or “Zhongxing Telecommunication”) and “Hello, Zhongxing Telecommunication” respectively. 
     Voiceprint characteristics of the truncated voice passwords are stored, that is the voiceprint characteristics of “Hello” (or “Telecommunication”), “Hello, Zhongxing” (or “Zhongxing Telecommunication”) and “Hello, Zhongxing Telecommunication” are stored. 
     During verification with a voice, if the user speaks “Hello” (or “Telecommunication”), and a voiceprint characteristic of a received voice password, i.e. the voiceprint characteristic of “Hello” (or “Telecommunication”), is extracted according to the received voice password. 
     The voiceprint characteristic of the received voice password is sequentially compared with the voiceprint characteristic, stored before, of each voice password, and it is found that the voiceprint characteristic is matched with the stored voiceprint characteristic of the voice password “Hello” (or “Telecommunication”), so that the verification succeeds, and the corresponding security grade 2 is entered. 
     During verification with a voice, if the user speaks “Hello, Zhongxing” (or “Zhongxing Telecommunication”), and a voiceprint characteristic of a received voice password, i.e. the voiceprint characteristic of “Hello, Zhongxing” (or “Zhongxing Telecommunication”), is extracted according to the received voice password. 
     The voiceprint characteristic of the received voice password is sequentially compared with the voiceprint characteristic, stored before, of each voice password, and it is found that the voiceprint characteristic is matched with the stored voiceprint characteristic of the voice password “Hello, Zhongxing” (or “Zhongxing Telecommunication”), so that the verification succeeds, and the corresponding security grade  1  is entered. 
     During verification with a voice, if the user speaks “Hello, Zhongxing Telecommunication”, a voiceprint characteristic of a received voice password, i.e. the voiceprint characteristic of “Hello, Zhongxing Telecommunication”, is extracted according to the received voice password. 
     The voiceprint characteristic of the received voice password is sequentially compared with the voiceprint characteristic, stored before, of each voice password, and it is found that the voiceprint characteristic is matched with the stored voiceprint characteristic of the voice password “Hello, Zhongxing Telecommunication”, so that the verification succeeds, and the corresponding security grade  0  is entered. 
     An embodiment of the present disclosure further proposes a computer-readable storage medium, which stores a computer-executable instruction, and the computer-executable instruction is used to execute any method described above. 
     Referring to  FIG. 2 , an embodiment of the present disclosure further proposes an apparatus for managing a graded cipher, which may be arranged in a terminal and includes an acquisition module, a receiving module and a searching module. 
     The acquisition module is configured to establish a corresponding relationship between different security grades and corresponding voice passwords; herein a voice password corresponding to each security grade in the corresponding relationship is a part or all of a preset voice password. 
     The receiving module is configured to receive a voice password from a user. 
     The searching module is configured to search the obtained corresponding relationship for a security grade corresponding to a voice password matched with the received voice password. 
     In the apparatus of the embodiment of the present disclosure, the acquisition module is configured to, 
     acquire the preset voice password and a security grade number in advance; and 
     acquire a voice password, of which a length is (N-i)/N of a length of the preset voice password, from the preset voice password, and set a corresponding relationship between the obtained voice password and an ith security grade; herein N is the security grade number, and i is an integer more than or equal to 0. 
     In the apparatus of the embodiment of the present disclosure, the acquisition module is configured to, 
     acquire the preset voice password and the security grade number in advance; and 
     acquire the voice password, of which the length is (N-i)/N of the length of the preset voice password, from the preset voice password, extract a voiceprint characteristic of the obtained voice password, and store a corresponding relationship between the voiceprint characteristic of the obtained voice password and the ith security grade; herein N is the security grade number, and i is an integer more than or equal to 0. 
     The searching module is configured to, 
     acquire a voiceprint characteristic of the received voice password, search the obtained corresponding relationship for the security grade corresponding to a voiceprint characteristic of the voice password matched with the voiceprint characteristic of the received voice password, and enter the searched security grade. 
     Those skilled in the art can understand that all or part of the steps of the abovementioned method may be implemented by instructing related hardware (such as a processor) through a program, and the program may be stored in a computer-readable storage medium, such as a read-only memory, a magnetic disk or an optical disk or the like. In an exemplary embodiment, all or part of the steps of the abovementioned embodiments may also be implemented by virtue of one or more integrated circuits. Correspondingly, various modules/units in the abovementioned embodiments may be implemented by adopting a hardware form, for example, corresponding functions are implemented through the integrated circuits, and may also be implemented by adopting a software function module form, for example, the corresponding functions are realized by executing programs/instructions stored in a memory or storage through the processor. The present disclosure is not limited to a hardware and software combination in any specific form. 
     It is important to note that the abovementioned embodiments are not intended to limit the scope of protection of the present disclosure but only to facilitate understanding of those skilled in the art, and any apparent replacements, improvements and the like made to the present disclosure by those skilled in the art without departing from the inventive concept of the present disclosure shall fall within the scope of protection of the present disclosure. 
     INDUSTRIAL APPLICABILITY 
     The abovementioned technical solutions simply implement user verification, thereby improving a user experience.