Embodiment
Below, by specific instantiation explanation embodiments of the present invention, those skilled in the art can understand other advantages of the present invention and effect easily by the disclosed content of this specification.The present invention can also be implemented or be applied by other different embodiment, and the every details in this specification also can be based on different viewpoints and application, carries out various modifications or change not deviating under spirit of the present invention.It should be noted that, in the situation that not conflicting, the feature in following examples and embodiment can combine mutually.
It should be noted that, the diagram providing in following examples only illustrates basic conception of the present invention in a schematic way, satisfy and only show with assembly relevant in the present invention in graphic but not component count, shape and size drafting while implementing according to reality, during its actual enforcement, kenel, quantity and the ratio of each assembly can be a kind of random change, and its assembly layout kenel also may be more complicated.
The present invention proposes a kind of electric terminal, in actual embodiment, described electric terminal 1 is the electronic installation that smart mobile phone, panel computer, notebook computer and MP3 etc. have information storage, transmission, function of exchange, the hardware that described electronic installation comprises comprises CPU (central processing unit), memory (being for example FLASH memory), microphone, loud speaker, display screen (being for example touch-sensitive display screen), player, voicefrequency circuit, communication module, system bus and input/output port etc.
In the present embodiment, the described electric terminal 1 of take describes as smart mobile phone as example, refer to Fig. 1, be shown as a kind of electric terminal of the present invention module diagram in a preferred embodiment, as shown in Figure 1, describedly comprise information editing's module 11, texts and pictures conversion module 12, key algorithm module 13, embedding/extraction module 14, sending/receiving module 15 and information display module 16 for the electric terminal 1 of smart mobile phone.
Described information editing's module 11 generates text message according to the edit instruction of input; In the present embodiment, described information editing's module 11 is such as for comprising mechanical keyboard or dummy keyboard, for the display screen, sensing circuit at user's input/output interface interface etc. are provided, information editing's module 11 of the described electric terminal 1 for smart mobile phone detects user while transferring short message editing program, for user provides inputting interface, and when the editor who user detected inputs, on the window interface according to the information of exporting on display screen, show the text message of input.
Described texts and pictures conversion module 12 is converted into the text message of extraction message bit pattern or described message bit pattern is converted into described text message; In the present embodiment, described texts and pictures conversion module 12 detects after text message input, according to user's operation, extract described text message, such as when the actual implementation process, user inputs after a complete text message, whether the described electric terminal 1 for smart mobile phone can prompting user be encrypted transmission by text information, when the encryption transmission instruction of user's input being detected, this paper information of 12 pairs of liquid crystal display screen displays of described texts and pictures conversion module is carried out sectional drawing, and described text message is converted into message bit pattern.
Or, in the present embodiment, described texts and pictures conversion module 12 detects described while receiving for the electric terminal 1 of smart mobile phone the picture that includes message bit pattern, according to user's operation, extract the message bit pattern in described picture, such as in actual implementation process, after user receives that note receives prompting, whether the described electric terminal 1 for smart mobile phone can prompting user read this note, when the instruction of user's reading being detected, described texts and pictures conversion module 12 extracts this message bit pattern, and described message bit pattern is converted into text message.
Described key algorithm module 13 is according to the targeted customer's who detects facility information or extract default protocol information and generate embedded key or extract key; In the present embodiment, described key algorithm module 13 detects after user's encrypted instruction, extract targeted customer's facility information or extract default protocol information, described targeted customer's facility information is for example SIM card information, described default protocol information is finger print information or voice messaging for example, and described voice messaging is as being the Chinese speeches such as Chinese mandarin, country dialect or comprising the foreign language voice such as English, French, Japanese; And according to the Information generation embedded key extracting;
Or, in the present embodiment, when described key algorithm module 13 detects user's decryption instructions, extraction equipment information or input default protocol information, described targeted customer's facility information is for example SIM card information, described default protocol information is finger print information or voice messaging for example, and described voice example information is as being the Chinese speeches such as Chinese mandarin, country dialect or comprising the foreign language voice such as English, French, Japanese; And extract key according to the Information generation extracting;
Described embedding/extraction module 14 embeds algorithm according to described embedded key generating watermark, and described message bit pattern is embedded in a picture according to described watermarking algorithm; In the present embodiment, when the encrypted instruction of described embedding/extraction module 14 according to user's input, receive the described described message bit pattern coming from 12 transmission of texts and pictures conversion module, and according to the described embedded key detecting, generating watermark embeds algorithm, according to the prompting of the described electric terminal 1 for smart mobile phone, from mobile phone, choose at random a pictures or choose a default picture, for example from " the self-defined photograph album " of the electric terminal 1 for smart mobile phone, choose, described message bit pattern is embedded in picture according to the watermarking algorithm of least significant bit; The capacity of preferred described picture, much larger than the capacity of described message bit pattern, while making described message bit pattern embed in picture, can not be differentiated by naked eyes;
Or described embedding/extraction module 14, according to described extraction key generating watermark extraction algorithm, puts forward described message bit pattern from described picture; In the present embodiment, described embedding/extraction module 14 is according to the decryption instructions of user's input, the picture that reception transmits from sending/receiving module 15, and according to the described extraction key generating watermark extraction algorithm detecting, described message bit pattern is extracted from a picture according to described watermark extracting algorithm;
Described least significant bit algorithm is LSB (Least Significant Bits) algorithm: secret information is embedded into the least significant bit of carrier image pixel value, also claims least significantly position, change this position minimum on the quality impact of carrier image.
The basic principle of LSB algorithm: the LSB to spatial domain replaces, the sequence that is used for replacing LSB is exactly the watermark information that need to add, the digital digest of watermark or the pseudo random sequence being generated by watermark.The position embedding due to watermark information is LSB, and in order to meet the invisibility of watermark, the watermark strength that permission embeds can not be too high.Yet for the various processing in spatial domain, as the preliminary treatment before Run-Length Coding, can carry out certain compression to not remarkable component, so LSB algorithm is very sensitive to these operations.Therefore LSB algorithm is at first for fragile watermarking.
LSB algorithm basic step comprises:
1, the decimal system pixel value that is concealed with secret information obtaining is converted to binary data;
2, with each bit information in binary system secret information, replace the least significant bit of the carrier data of answering in contrast;
3, the binary data containing secret information obtaining is converted to decimal system pixel value, thereby obtains the image containing secret information.
Described sending/receiving module 15 is stated the picture of message bit pattern to some extent for sending or receive embedding; In the present embodiment, described sending/receiving module 15 is when the embedding transmitting from described embedding/extraction module 14 being detected and state to some extent the picture of message bit pattern, whether prompting user sends picture, and according to the transmission instruction of user's operation, the picture that carries message bit pattern is sent to targeted customer.
Or in the present embodiment, when electric terminal 1 prompting for smart mobile phone has the pictorial information of encryption to send, whether prompting user receives this information, when the pictorial information of this encryption of selective reception, described sending/receiving module 15 receives these enciphered messages.
Described information display module 16 shows according to the text message of the edit instruction generation of input and the text message that described texts and pictures conversion module transforms, in the present embodiment, described information display module 16 for example only has the LCDs of Presentation Function or the liquid crystal display touch screen that existing demonstration also has touch controllable function.
Refer to Fig. 4, be shown as the system configuration schematic diagram of application a kind of electric terminal of the present invention and SMS encryption decryption method thereof, comprise transmitting terminal and receiving terminal, in this specific embodiment, the short message of take between smart mobile phone is temporarily example alternately, described transmitting terminal and described receiving terminal are respectively and send smart mobile phone A and receive smart mobile phone B, described smart mobile phone is for example for installing Android operating system or iOS operating system, or Palm OS, Symbian (Saipan), or Black Berry (blackberry, blueberry) OS6.0, the smart mobile phone of the operating systems such as Windows Phone8.
Described transmission smart mobile phone A and described reception smart mobile phone B include information editing's module 11, texts and pictures conversion module 12, key algorithm module 13, embedding/extraction module 14, sending/receiving module 15 and information display module 16 as shown in Figure 1.In concrete enforcement, the information display module 16 of described transmission smart mobile phone A and reception smart mobile phone B, for example for to only have the LCDs of Presentation Function or the liquid crystal display touch screen that existing demonstration also has touch controllable function, be take liquid crystal display touch screen temporarily as example in the present embodiment.Described information editing's module 11 is such as for comprising mechanical keyboard or dummy keyboard, for the display screen, sensing circuit at user's input/output interface interface etc. are provided, information editing's module 11 of described transmission smart mobile phone A detects user while transferring short message editing program, for user provides inputting interface, and when the editor who user detected inputs, according to the information of output, on liquid crystal display touch screen, show the text message of input.
When user inputs a complete text message, for example described text message is " how do you do? " described transmission smart mobile phone A can point out user by text information " how do you do? " encrypted transmission, when the encryption transmission instruction of user's input being detected, 12 pairs of liquid crystal display screen displays of described texts and pictures conversion module this paper information " how do you do? " carry out sectional drawing, described text message is converted into message bit pattern.Described key algorithm module 13 detects after user's encrypted instruction, extract and receive the facility information of smart mobile phone B or extract default protocol information, the facility information of described smart mobile phone B is for example SIM card information, described default protocol information is finger print information or voice messaging for example, and described voice example information is as being the Chinese speeches such as Chinese mandarin, country dialect or comprising the foreign language voice such as English, French, Japanese; In the present embodiment, extract the SIM card information of described smart mobile phone B, and according to the Information generation embedded key extracting; Described embedding/extraction module 14 is according to the encrypted instruction of user's input, and according to the embedded key detecting, generating watermark embeds algorithm, according to the prompting of the electric terminal 1 of described smart mobile phone, from mobile phone, choose at random a pictures or choose a default picture, described message bit pattern is embedded in picture according to the watermarking algorithm of least significant bit; The capacity of described picture, much larger than the capacity of described message bit pattern, while making described message bit pattern embed in picture, can not be differentiated by naked eyes; The described sending/receiving module 15 of described transmission smart mobile phone A sends instruction according to user's encryption, the picture of message bit pattern is stated in the embedding that reception sends over from described embedding/extraction module 14 to some extent, now on touching display screen, point out user whether to send this message, when the instruction that user confirms to send being detected, will embed the picture of stating to some extent message bit pattern and send to the described sending/receiving module 15 of described reception smart mobile phone B;
Described reception smart mobile phone B prompting user receives an enciphered message, and point out user whether to receive this enciphered message, user being detected inputs after reception instruction, the sending/receiving module 15 of described reception smart mobile phone B receives and embeds the picture of stating to some extent message bit pattern, when user wants to check the content of text of described encrypted information, according to the prompting on liquid crystal display touch screen, the picture that selection is stated message bit pattern to some extent to described embedding is decrypted, the described key algorithm module 13 of described reception smart mobile phone B is according to decryption instructions, the SIM card Information generation that detects described reception smart mobile phone B extracts key, described embedding/extraction module 14 of described reception smart mobile phone B detects after decryption instructions, according to described extraction key, generate the watermark extracting algorithm of least significant bit, according to described watermark extracting algorithm, extract the message bit pattern embedding in described picture, the described texts and pictures conversion module 12 of described reception smart mobile phone B is according to decryption instructions, by the described message bit pattern transmitting from described embedding/extraction module 14 be converted into described text message " how do you do? ", and show on the liquid crystal display touch screen of described reception smart mobile phone B.
The invention allows for a kind of SMS encryption method, be applied to include in the network system of transmitting terminal and receiving terminal, in the present embodiment, described transmitting terminal and described receiving terminal are for example smart mobile phone, panel computer, notebook computer and MP3 etc. have information storage, transmission, the electronic installation of function of exchange, the hardware that described electronic installation comprises comprises CPU (central processing unit), memory (being for example FLASH memory), microphone, loud speaker, display screen (being for example touch-sensitive display screen), player, voicefrequency circuit, communication module, system bus and input/output port etc.Refer to Fig. 2, the SMS encryption method that is shown as a kind of electric terminal of the present invention schematic flow sheet in a preferred embodiment, described SMS encryption method S1 comprises:
S11: described transmitting terminal generates text message and shown according to the edit instruction of input, and in the present embodiment, described text message is for example txt form;
S12: described transmitting terminal is extracted described text message and described text message is converted into message bit pattern;
S13: described transmitting terminal generates embedded key according to the facility information of described receiving terminal or default protocol information; In the present embodiment, the facility information of preferred described receiving terminal is the SIM card information of automatic acquisition, described default protocol information is finger print information or the voice messaging that needs receiving terminal user input, and described voice example information is as being the Chinese speeches such as Chinese mandarin, country dialect or comprising the foreign language voice such as English, French, Japanese.
S14: described transmitting terminal embeds algorithm according to described embedded key generating watermark, is embedded into described message bit pattern in one picture according to described watermarking algorithm; Preferably, described watermarking algorithm adopts least significant bit algorithm; Preferably, described picture is to choose immediately or preset; Described picture capacity is much larger than described message bit pattern, and while making described message bit pattern embed in picture, naked eyes can not be told the described message bit pattern embedding in described picture.
S15: the picture that message bit pattern is stated in described transmitting terminal transmission embedding is to some extent to described receiving terminal.
Referring again to Fig. 4, be shown as the system configuration schematic diagram of application a kind of electric terminal of the present invention and SMS encryption decryption method thereof, comprise transmitting terminal and receiving terminal, in this specific embodiment, the short message of take between smart mobile phone is temporarily example alternately, described transmitting terminal and described receiving terminal are respectively and send smart mobile phone A and receive smart mobile phone B, described smart mobile phone is for example for installing Android operating system or iOS operating system, or Palm OS, Symbian (Saipan), or Black Berry (blackberry, blueberry) OS6.0, the smart mobile phone of the operating systems such as Windows Phone8.The hardware that described transmission smart mobile phone A and reception smart mobile phone B comprise comprises CPU (central processing unit), memory (being for example FLASH memory), microphone, loud speaker, display screen (being for example touch-sensitive display screen), player, voicefrequency circuit, communication module, system bus and input/output port etc.
When described transmission smart mobile phone A detects user and transfers short message editing program, for user provides inputting interface, and when the editor who user detected inputs, according to the information of output, on display screen, shows the text message of inputting.When user inputs a complete text message, for example described text message is " how do you do? " described transmission smart mobile phone A can point out user by text information " how do you do? " encrypted transmission, when the encryption transmission instruction of user's input being detected, described transmission smart mobile phone A to show screen display this paper information " how do you do? " carry out sectional drawing, described text message is converted into message bit pattern.Described transmission smart mobile phone A detects after user's encrypted instruction, extract and receive the facility information of smart mobile phone B or extract default protocol information, the facility information of described smart mobile phone B is for example SIM card information, described default protocol information is finger print information or voice messaging for example, and described voice example information is as being the Chinese speeches such as Chinese mandarin, country dialect or comprising the foreign language voice such as English, French, Japanese; In the present embodiment, extract the SIM card information of described smart mobile phone B, and according to the Information generation embedded key extracting; Described transmission smart mobile phone A is according to the encrypted instruction of user's input, and according to the embedded key detecting, generating watermark embeds algorithm, according to prompting, from mobile phone, choose at random a pictures or choose a default picture, described message bit pattern is embedded in picture according to the watermarking algorithm of least significant bit; The capacity of described picture, much larger than the capacity of described message bit pattern, while making described message bit pattern embed in picture, can not be differentiated by naked eyes; User, according to the prompting of described transmission smart mobile phone A, is confirmed whether to send the image information of this encryption, when the instruction that user confirms to send being detected, by embedding the picture of stating to some extent message bit pattern, sends to described reception smart mobile phone B.
Described reception smart mobile phone B prompting receives the enciphered message sending over from described transmission smart mobile phone A, on display screen, point out user whether to receive this enciphered message, user being detected inputs after reception instruction, described reception smart mobile phone B receives and embeds the picture that has message bit pattern, when user wants to check the content of text of described encrypted information, according to the prompting of display screen, selection has the picture of message bit pattern to be decrypted to described embedding, described reception smart mobile phone B is according to decryption instructions, the SIM card Information generation that detects described reception smart mobile phone B extracts key, described reception smart mobile phone B is according to decryption instructions, utilize and extract the watermark extracting algorithm that key generates least significant bit, the message bit pattern embedding in described picture is extracted, and be translated into text message " how do you do? ", and it is shown.
The invention allows for a kind of note decryption method, be applied to include in the network system of transmitting terminal and receiving terminal, in the present embodiment, described transmitting terminal and described receiving terminal are for example smart mobile phone, panel computer, notebook computer and MP3 etc. have information storage, transmission, the electronic installation of function of exchange, the hardware that described electronic installation comprises comprises CPU (central processing unit), memory (being for example FLASH memory), microphone, loud speaker, display screen (being for example touch-sensitive display screen), player, voicefrequency circuit, communication module, system bus and input/output port etc.Refer to Fig. 3, the note decryption method that is shown as a kind of electric terminal of the present invention schematic flow sheet in a preferred embodiment, described note decryption method S2 comprises:
S21: described receiving terminal receives the picture that embedding that described transmitting terminal sends over has message bit pattern;
S22: facility information or default protocol information according to described receiving terminal generate extraction key; In the present embodiment, the facility information of preferred described receiving terminal is the SIM card information of automatic acquisition, described default protocol information is finger print information or the voice messaging that needs receiving terminal user input, and described voice example information is as being the Chinese speeches such as Chinese mandarin, country dialect or comprising the foreign language voice such as English, French, Japanese.
S23: described receiving terminal generates least significant bit watermark extracting algorithm according to described extraction key, extracts according to described watermark extracting algorithm the message bit pattern embedding in described picture; Preferably, described watermarking algorithm adopts least significant bit algorithm; Preferably, described picture is to choose immediately or preset; Described picture capacity is much larger than described message bit pattern, and while making described message bit pattern embed in picture, naked eyes can not be told the described message bit pattern embedding in described picture.
S24: described receiving terminal is converted into described message bit pattern described text message and is shown.
Referring again to Fig. 4, be shown as the system configuration schematic diagram of application a kind of electric terminal of the present invention and SMS encryption decryption method thereof, comprise transmitting terminal and receiving terminal, in this specific embodiment, the short message of take between smart mobile phone is temporarily example alternately, described transmitting terminal and described receiving terminal are respectively and send smart mobile phone A and receive smart mobile phone B, described smart mobile phone is for example for installing Android operating system or iOS operating system, or Palm OS, Symbian (Saipan), or Black Berry (blackberry, blueberry) OS6.0, the smart mobile phone of the operating systems such as Windows Phone8.The hardware that described transmission smart mobile phone A and reception smart mobile phone B comprise comprises CPU (central processing unit), memory (being for example FLASH memory), microphone, loud speaker, display screen (being for example touch-sensitive display screen), player, voicefrequency circuit, communication module, system bus and input/output port etc.
When described transmission smart mobile phone A detects user and transfers short message editing program, for user provides inputting interface, and when the editor who user detected inputs, according to the information of output, on display screen, shows the text message of inputting.When user inputs a complete text message, for example described text message is " how do you do? " described transmission smart mobile phone A can point out user by text information " how do you do? " encrypted transmission, when the encryption transmission instruction of user's input being detected, described transmission smart mobile phone A by show screen display this paper information " how do you do? " carry out sectional drawing, described text message is converted into message bit pattern.Described transmission smart mobile phone A detects after user's encrypted instruction, extract and receive the facility information of smart mobile phone B or extract default protocol information, the facility information of described smart mobile phone B is for example SIM card information, described default protocol information is finger print information or voice messaging for example, and described voice example information is as being the Chinese speeches such as Chinese mandarin, country dialect or comprising the foreign language voice such as English, French, Japanese; In the present embodiment, extract the SIM card information of described smart mobile phone B, and according to the Information generation embedded key extracting; Described transmission smart mobile phone A is according to the encrypted instruction of user's input, and according to the embedded key detecting, generating watermark embeds algorithm, according to prompting, from mobile phone, choose at random a pictures or choose a default picture, described message bit pattern is embedded in picture according to the watermarking algorithm of least significant bit; The capacity of described picture, much larger than the capacity of described message bit pattern, while making described message bit pattern embed in picture, can not be differentiated by naked eyes; User, according to the prompting of described transmission smart mobile phone A, is confirmed whether to send the image information of this encryption, when the instruction that user confirms to send being detected, by embedding the picture of stating to some extent message bit pattern, sends to described reception smart mobile phone B.
Described reception smart mobile phone B prompting receives the enciphered message sending over from described transmission smart mobile phone A, on display screen, point out user whether to receive this enciphered message, user being detected inputs after reception instruction, described reception smart mobile phone B receives and embeds the picture that has message bit pattern, when user wants to check the content of text of described encrypted information, according to the prompting of display screen, selection has the picture of message bit pattern to be decrypted to described embedding, described reception smart mobile phone B is according to decryption instructions, the SIM card Information generation that detects described reception smart mobile phone B extracts key, described reception smart mobile phone B is according to decryption instructions, utilize and extract the watermark extracting algorithm that key generates least significant bit, the message bit pattern embedding in described picture is extracted, and be translated into text message " how do you do? ", and it is shown.
In sum, the beneficial effect that a kind of electric terminal that the present invention proposes and SMS encryption decryption method thereof have is:
Utilize the watermarking inset and distill algorithm of least significant bit, the text message of transmission is converted in message bit pattern embedding picture and is sent, the fail safe of guarantee information;
Utilize targeted customer's facility information or default protocol information that note is encrypted and is deciphered, in the time of can guaranteeing to be kidnapped by third party in note transmitting procedure, safety that still can guarantee information;
Utilize default protocol information that note is encrypted and is deciphered, not only can guarantee the fail safe in note transmitting procedure, can also prevent that the information that mobile phone is stored in while losing in equipment from exposing.
So the present invention has effectively overcome various shortcoming of the prior art and tool high industrial utilization.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all can, under spirit of the present invention and category, modify or change above-described embodiment.Therefore, such as in affiliated technical field, have and conventionally know that the knowledgeable, not departing from all equivalence modifications that complete under disclosed spirit and technological thought or changing, must be contained by claim of the present invention.