Abstract:
In a method for encrypting and decrypting a document based on a voiceprint recognition technology on an electronic device, an encryption key is generated and stored in a storage device of the electronic device. And a voiceprint is verified to determined whether the voiceprint is identical to a predefined voiceprint. if the voiceprint is identical to a predefined voiceprint, the encryption key is obtained from the storage device to encrypt a document. When the encrypted document is decrypted, a decryption key is generated to decrypt the encrypted document.

Description:
BACKGROUND 
       [0001]    1. Technical Field 
         [0002]    The embodiments of the present disclosure relate to an electronic device and method for encrypting and decrypting a document based on voiceprint recognition technology. 
         [0003]    2. Description of Related Art 
         [0004]    Information security is important in modern society. Typical encryption methods have a wide variety of vulnerabilities and are easy to be cracked, resulting information disclosure, and causing irreparable damage to personal or commercial activity. Therefore, it is desirable to have an effective method for encrypting and decrypting information, to solve the above-mentioned problems. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0005]      FIG. 1  is a block diagram of one embodiment of an electronic device including an encryption and decryption system. 
           [0006]      FIG. 2  is a block diagram of one embodiment of function modules of the encryption and decryption system in  FIG. 1 . 
           [0007]      FIG. 3  is a flowchart of one embodiment of a method for encrypting a document based on a voiceprint recognition technology using the electronic device of  FIG. 1 . 
           [0008]      FIG. 4  is a flowchart of one embodiment of a method for decrypting the document based on voiceprint recognition technology using the electronic device of  FIG. 1 . 
       
    
    
     DETAILED DESCRIPTION 
       [0009]    The present disclosure, including the accompanying drawings, is illustrated by way of examples and not by way of limitation. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean “at least one.” 
         [0010]    In general, the word “module,” as used herein, refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language. In one embodiment, the program language may be Java, C, or assembly. One or more software instructions in the modules may be embedded in firmware, such as in an EPROM. The modules described herein may be implemented as either software and/or hardware modules and may be stored in any type of non-transitory computer-readable medium or other storage device. Some non-limiting examples of non-transitory computer-readable media include CDs, DVDs, flash memory, and hard disk drives. 
         [0011]      FIG. 1  is a block diagram of one embodiment of an electronic device  1  including an encryption and decryption system  10 . The electronic device  1  further comprises a storage device  12 , at least one processor  14 , a voiceprint recognition device  16 , and an alarm device  18 . In the embodiment, the electronic device  1  may be a personal computer, a notebook computer, a cellular phone, a master production scheduler (MPS) device, or a personal digital assistant (PDA), for example. 
         [0012]    In one embodiment, the storage device  12  (non-transitory storage device) may be an internal storage system, such as a random access memory (RAM) for the temporary storage of information, and/or a read only memory (ROM) for the permanent storage of information. In some embodiments, the storage device  12  may be an external storage system, such as an external hard disk, a storage card, or a data storage medium. 
         [0013]    The at least one processor  14  may include a processor unit, a microprocessor, an application-specific integrated circuit, and a field programmable gate array, for example. 
         [0014]    The voiceprint recognition device  16  receives an inputted voiceprint(spectrogram of a voice) from an input device (such as a microphone) of the electronic device  1 , and recognizes the inputted voiceprint to determine whether the inputted voiceprint is identical to a predefined voiceprint before encrypting or decrypting a document. 
         [0015]    In one embodiment, the encryption and decryption system  10  includes a plurality of function modules which include computerized codes or instructions that can be stored in the storage device  12  and executed by the at least one processor  14  to provide a method for encrypting and decrypting a document based on a voiceprint recognition technology. 
         [0016]    In one embodiment, the encryption and decryption system  10  may include a generation module  100 , a verification module  102 , an encryption module  104 , a decryption module  106 , and an alarming module  108 . The modules may comprise computerized codes in the form of one or more programs that are stored in the storage device  12  and executed by the at least one processor  14  to provide functions for implementing the encryption and decryption system  10 . The functions of the function modules are illustrated in  FIG. 3  and described below. 
         [0017]      FIG. 3  illustrates a flowchart of one embodiment of a method for encrypting a document based on a voiceprint recognition technology using the electronic device  1  of  FIG. 1 . Depending on the embodiment, additional steps may be added, others removed, and the ordering of the steps may be changed. 
         [0018]    In step S 10 , the generation module  100  generates an encryption key according to a predefined encryption algorithm, and stores the encryption key in the storage device  12 . In the embodiment, the predefined encryption algorithm may be a symmetric encryption algorithm or an asymmetric encryption algorithm. 
         [0019]    In step S 11 , the verification module  102  controls the voiceprint recognition device  16  to collect and recognize a voiceprint before encrypting a document which may comprise some personal secrets of the user of the electronic device  1 . 
         [0020]    In step S 12 , the verification module  102  verifies whether the recognized voiceprint is identical to a predefined voiceprint stored in the storage device  1  in advanced. If the recognized voiceprint is identical to the predefined voiceprint, the verification is successful, and step S 13  is implemented. Otherwise, if the recognized voiceprint is not identical to the predefined voiceprint, the verification is failed, and step S 11  is repeated. In the embodiment, the predefined voiceprint is a voiceprint collected from the user of the electronic device  1  and stored in the stored device  12  in advance. 
         [0021]    In step S 13 , the encryption module  104  obtains the encryption key from the storage device  12  and encrypts the document using the encryption key. 
         [0022]      FIG. 4  illustrates a flowchart of one embodiment of a method for decrypting a document based on a voiceprint recognition technology using the electronic device  1  of  FIG. 1 . Depending on the embodiment, additional steps may be added, others removed, and the ordering of the steps may be changed. 
         [0023]    In step S 14 , the generation module  100  generates a decryption key according to a predefined decryption algorithm, and stores the decryption key in the storage device  12 . In the embodiment, the predefined decryption algorithm may be a symmetric decryption algorithm or an asymmetric decryption algorithm. 
         [0024]    In step S 15 , the verification module  102  controls the voiceprint recognition device  16  to collect and recognize the voiceprint before decrypting an encrypted document. 
         [0025]    In step S 16 , the verification module  102  verifies whether the recognized voiceprint is identical to the predefined voiceprint stored in the storage device  12 . If the recognized voiceprint is identical to the predefined voiceprint, the verification is successful, and step S 17  is implemented. Otherwise, if the recognized voiceprint is not identical to the predefined voiceprint, the verification fails, S 15  is repeated. 
         [0026]    In step S 17 , the decryption module  104  obtains the decryption key from the storage device  12  and decrypts the encrypted document using the decryption key. 
         [0027]    In the embodiment, if the verification fails more than predefined times, the alarming module  108  further generates an alarm to prompt that the data of the document is stolen. The predefined times may be defined as three times according to the user, for example. 
         [0028]    Although certain disclosed embodiments of the present disclosure have been specifically described, the present disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the present disclosure without departing from the scope and spirit of the present disclosure.