1. Technical Field
The embodiments of the present disclosure relate to an electronic device and method for encrypting and decrypting a document based on voiceprint recognition technology.
2. Description of Related Art
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.
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.”
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.
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.
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.
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.
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.
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
In step S10, 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.
In step S11, 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.
In step S12, 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 S13 is implemented. Otherwise, if the recognized voiceprint is not identical to the predefined voiceprint, the verification is failed, and step S11 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.
In step S13, the encryption module 104 obtains the encryption key from the storage device 12 and encrypts the document using the encryption key.
In step S14, 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.
In step S15, the verification module 102 controls the voiceprint recognition device 16 to collect and recognize the voiceprint before decrypting an encrypted document.
In step S16, 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 S17 is implemented. Otherwise, if the recognized voiceprint is not identical to the predefined voiceprint, the verification fails, S15 is repeated.
In step S17, the decryption module 104 obtains the decryption key from the storage device 12 and decrypts the encrypted document using the decryption key.
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.
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.
Number | Date | Country | Kind |
---|---|---|---|
201310385819X | Aug 2013 | CN | national |