CN109508551B - Safe system switching method and device, electronic equipment and storage medium - Google Patents

Safe system switching method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN109508551B
CN109508551B CN201811325184.3A CN201811325184A CN109508551B CN 109508551 B CN109508551 B CN 109508551B CN 201811325184 A CN201811325184 A CN 201811325184A CN 109508551 B CN109508551 B CN 109508551B
Authority
CN
China
Prior art keywords
state information
information
preset requirement
information input
control switch
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811325184.3A
Other languages
Chinese (zh)
Other versions
CN109508551A (en
Inventor
袁健
黄世勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Electronics Technology Network Security Technology Co ltd
Original Assignee
Chengdu Westone Information Industry Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu Westone Information Industry Inc filed Critical Chengdu Westone Information Industry Inc
Priority to CN201811325184.3A priority Critical patent/CN109508551B/en
Publication of CN109508551A publication Critical patent/CN109508551A/en
Application granted granted Critical
Publication of CN109508551B publication Critical patent/CN109508551B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/606Protecting data by securing the transmission between two devices or processes

Abstract

The invention relates to a safe system switching method, a device, an electronic device and a readable storage medium, wherein the system switching method is applied to the electronic device with double systems, different from the prior art, the method simultaneously adopts a plurality of parameters with different sources as judgment conditions for judging whether to be separated from a safety system to a general system, specifically, state information output by a virtual control switch and state information output by an entity control switch, if the system is separated from the safety system, the state information output by the two types of switches must be simultaneously tampered, the two types of switches are respectively provided from the aspects of software and hardware, and simultaneously, different tampering modes must be used for different types of control switches, and the purpose of separating the electronic device from the safety system cannot be realized only by a single tampering mode, so that data transmission is safer. The device, the electronic equipment and the readable storage medium applying the system switching method also have the same beneficial effects.

Description

Safe system switching method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of data security transmission technologies, and in particular, to a secure system switching method and apparatus, an electronic device, and a computer-readable storage medium.
Background
Under the existing mobile communication mechanism, electronic devices such as mobile terminals generally transmit information collected by information input devices to a communication opposite end in a plaintext form without any processing, so that plaintext data can be directly obtained when a third party steals or intercepts the information. Since it is impossible to prevent third parties from stealing or intercepting due to the characteristics of mobile communication technology, research has been conducted only on how to make the stolen or intercepted data meaningless.
Encryption is a simple and easy method with obvious effect, data transmitted under a mobile communication mechanism is encrypted in a certain mode before transmission, so that the data is transmitted under a mobile communication network in a form of ciphertext, and even if the data is stolen or intercepted by a third party, a stack of meaningless messy codes can be obtained due to the fact that a correct decryption mode is not available.
In the related art, an electronic device capable of transmitting data in a ciphertext form is usually obtained by a built-in encryption program or an additional encryption chip, and can select an encryption mode or an non-encryption mode according to actual conditions, but another problem to be faced by an electronic device having two data processing modes is how to safely switch between an encryption mode and a non-encryption mode. Once the switching mode is set badly or a bug exists, the encryption mode is easy to separate from the encryption mode in a mode that the user does not know the malicious program, and therefore an attacker can conveniently obtain plaintext data.
Therefore, how to separate the encryption mode from the non-encryption mode in a more secure and reliable scheme to ensure the secure transmission of data as much as possible is a problem to be solved by those skilled in the art.
Disclosure of Invention
The invention aims to provide a safe system switching method, which is applied to an electronic device with double systems, namely a safe system for transmitting information acquired by an information input device in a ciphertext mode and a general system for transmitting the information in a plaintext mode.
In order to achieve the above object, the present disclosure provides a secure system switching method applied to an electronic device, the system switching method including:
respectively acquiring state information output by a virtual control switch and an entity control switch to obtain first state information and second state information;
determining whether to switch a system in which an information input device in the electronic device is located from a security system to a general system or not according to the first state information and the second state information;
the electronic equipment under the safety system sends the information acquired by the information input equipment to a communication opposite terminal in a ciphertext mode; and the electronic equipment under the general system sends the information acquired by the information input device to the opposite communication terminal in a plaintext form.
Optionally, determining whether to switch a system in which an information input device in the electronic device is located from a security system to a general system according to the first state information and the second state information at the same time includes:
judging whether the first state information and the second state information simultaneously and correspondingly meet a first preset requirement and a second preset requirement;
if the first state information and the second state information correspondingly meet the first preset requirement and the second preset requirement at the same time, switching the system where the information input equipment is located from the safety system to the general system;
if the first state information and the second state information do not simultaneously and correspondingly meet the first preset requirement and the second preset requirement, keeping the system where the information input equipment is located as the safety system unchanged.
Optionally, the system switching method further includes:
when the system where the information input device is currently located is the general system, judging whether the first state information and the second state information correspondingly meet the first preset requirement and the second preset requirement at the same time;
and if the first state information and the second state information do not simultaneously and correspondingly meet the first preset requirement and the second preset requirement, switching the system where the information input equipment is located from the general system back to the safety system.
Optionally, the system switching method further includes:
acquiring an identification mark of the interface where the electronic equipment is located currently;
and adjusting the state information output by the virtual control switch according to the identification mark.
Optionally, the status information includes at least one of a character string, an electrical signal, and a control instruction for representing different statuses.
Optionally, determining whether to switch a system in which an information input device in the electronic device is located from a security system to a general system according to the first state information and the second state information at the same time includes:
when the state information is an electric signal for representing different states, the first electric signal and the second electric signal are respectively used as an input signal of an OR gate circuit;
and determining whether to switch the system in which the information input device is positioned from the safety system to the general system according to the output signal of the OR gate circuit.
Optionally, determining whether to switch the system in which the information input device is located from the security system to the general system according to the output signal of the or gate circuit includes:
determining to switch the system in which the information input device is located from the security system to the general system according to whether the output signal is at a low level; wherein the or gate circuit outputs a low level only when both input signals are low level.
To achieve the above object, the present disclosure also provides a secure system switching apparatus, including:
the state information acquisition unit is used for respectively acquiring state information output by the virtual control switch and the entity control switch to obtain first state information and second state information;
the safety system disengagement judging unit is used for determining whether to switch the system where the information input equipment in the electronic equipment is located from the safety system to a general system or not according to the first state information and the second state information;
the electronic equipment under the security system sends the information acquired by the information input equipment to a communication opposite terminal in a ciphertext mode; and the electronic equipment under the general system sends the information acquired by the information input device to the opposite communication terminal in a plaintext form.
Optionally, the security system detachment determining unit includes:
the requirement satisfaction judging subunit is used for judging whether the first state information and the second state information simultaneously and correspondingly meet a first preset requirement and a second preset requirement;
the safety system deionization unit is used for switching the system where the information input equipment is located from the safety system to the general system when the first state information and the second state information correspondingly meet the first preset requirement and the second preset requirement at the same time;
and the safety system maintaining subunit is configured to, when the first state information and the second state information do not simultaneously and correspondingly meet the first preset requirement and the second preset requirement, keep the system where the information input device is currently located as the safety system unchanged.
Optionally, the system switching system further includes:
a general system maintenance judging unit, configured to, when a system in which the information input device is currently located is the general system, judge whether the first state information and the second state information simultaneously and correspondingly meet the first preset requirement and the second preset requirement;
and the general system separation unit is used for switching the system where the information input equipment is located from the general system to the safety system when the first state information and the second state information do not simultaneously and correspondingly meet the first preset requirement and the second preset requirement.
Optionally, the system switching system further includes:
the interface identification mark acquisition unit is used for acquiring an identification mark of the interface where the electronic equipment is located;
and the virtual control switch state information adjusting unit is used for adjusting the state information output by the virtual control switch according to the identification mark.
Optionally, the security system detachment determining unit includes:
the OR gate circuit uses the subunit, is used in when the stated state information is the electric signal used for representing different states, regard first electric signal and second electric signal as an input signal of the OR gate circuit separately;
and the OR gate circuit characteristic judging subunit is used for determining whether to switch the system in which the information input device is positioned from the safety system to the general system according to the output signal of the OR gate circuit.
Optionally, the or gate characteristic determining subunit includes:
the output signal low level judging module is used for determining whether the system where the information input equipment is located is switched to the general system from the safety system according to whether the output signal is in a low level; wherein the or gate circuit outputs a low level only when both input signals are low level.
To achieve the above object, the present disclosure also provides an electronic device, including:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the system switching method as described above.
To achieve the above object, the present disclosure also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the system switching method as described above.
According to the technical scheme, the system switching method is applied to electronic equipment with double systems, namely a safety system for transmitting information acquired by information input equipment in a ciphertext mode and a general system for transmitting the information in a plaintext mode.
The present disclosure also provides a secure system switching device, an electronic device, and a computer-readable storage medium, which have the same advantages and are not described herein again.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a system switching method applied to an electronic device according to an embodiment of the present disclosure;
fig. 2 is a flowchart of another system switching method applied to an electronic device according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an or gate circuit for implementing that an electronic device can safely switch between different systems according to an embodiment of the present disclosure;
FIG. 4 is a flow chart of a method for OR gate based switching according to an embodiment of the present disclosure;
fig. 5 is a block diagram of a system switching device applied to an electronic device according to an embodiment of the present disclosure;
fig. 6 is a detailed block diagram of a security system detachment determination unit 200 according to an embodiment of the present disclosure;
fig. 7 is a block diagram of an electronic device 300 provided in an embodiment of the disclosure.
Detailed Description
The core of the application is to provide a secure system switching method, a device, an electronic device and a computer readable storage medium, the system switching method is applied to an electronic device with dual systems, namely a secure system for transmitting information acquired by an information input device in a ciphertext mode and a general system for transmitting the information in a plaintext mode, and is different from the prior art.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
Example one
Referring to fig. 1, fig. 1 is a flowchart of a system switching method applied to an electronic device according to an embodiment of the present disclosure, and it should be noted that the electronic device applied in the scheme provided in this embodiment is an electronic device having two systems, namely, a security system and a general system, specifically, the electronic device in the security system sends information acquired by an information input device to a correspondent node in a form of a ciphertext; the electronic equipment under the general system can send the information collected by the information input device to the opposite communication terminal in a plaintext form. Of course, the electronic device can be used not only as an information sending device, but also as an information receiving device, namely, the received ciphertext is decrypted by using the security system, and the received plaintext is directly transmitted to the user by using the general system. Namely, the electronic device can be flexibly switched between an encryption system and a non-encryption system in different application scenes, and the scheme is a method for switching between the two systems more safely, and comprises the following steps:
s101: respectively acquiring state information output by a virtual control switch and an entity control switch to obtain first state information and second state information;
the step aims to acquire state information respectively output by a virtual control switch and an entity control switch on the electronic equipment, wherein the state information output by the virtual control switch is represented by using first state information and the state information output by the entity control switch is represented by using second state information.
Wherein the virtual control switch is a control switch provided by an operating system installed in the electronic device and used for switching between the security system and the general system. Specifically, the virtual control switch may be provided by a pre-installed operating system itself, or may be provided by an application program, a plug-in, an executable script, and the like installed in the operating system at a later stage; the entity control switch is any one of an entity pressing control switch, a touch control switch, a sliding control switch and the like arranged on the electronic equipment, can be an accessory entity control switch which is developed by an interface (such as a Mini-USB, a Type-C, a 3.5mm earphone interface and the like) capable of establishing physical data connection with the electronic equipment and can be arranged at any position of the electronic equipment flexibly according to the requirements of actual application scenes.
The specific implementation forms of the virtual control switch and the virtual control switch are not particularly limited, whether the physical hardware is a defining condition for distinguishing the virtual control switch from the physical control switch or not is determined, the number of the virtual control switch and the physical control switch is not limited, and the most appropriate specific parameters can be selected according to the actual application scene.
The expression form of the state information is various, and may be at least one of various forms such as a character string, an electrical signal, and a control instruction, which can be used to represent different states.
S102: and simultaneously, determining whether to switch the system in which the information input device in the electronic equipment is positioned from the security system to the general system or not according to the first state information and the second state information.
On the basis of S101, in this step, it is determined whether a system in which the information input device is located needs to be switched from the security system to the general system according to the specific state parameters of the acquired first state information and the acquired second state information, so that the system can be switched only when the state information output by the two control switches both meets the corresponding preset requirements, and further encrypted transmission is realized under the security system, and plaintext transmission is realized under the general system.
The information input device is various devices used for collecting externally input information in the electronic device, and comprises a camera, a microphone and a keyboard, and correspondingly, the types of the information which can be respectively collected are image information, voice information and character information. The purpose of changing the system where the information input device is located is to change the subsequent processing mode of various output information, because the security system is additionally provided with an encryption step and other auxiliary steps related to encryption processing compared with a general system, namely, the system is switched to, the processing mode of which system is used to process the information acquired by the information input device and finally the information is transmitted to the opposite communication terminal.
Specifically, the judgment condition of whether the system in which the information input device is located can be switched from the security system to the general system can be preset, for example, the same preset requirement can be set for specific parameters of the state information output by the virtual control switch and the entity control switch, that is, when the first state information and the second state information are consistent with the unified preset requirement, the security system can be switched to the general system; different preset requirements can be set for specific parameters of the state information output by the virtual control switch and the entity control switch respectively, and the safety system can be switched to the general system only when the first state information and the second state information correspondingly meet the corresponding preset requirements at the same time. The specific selection is flexible according to the requirements in the actual application scenario, and is not specifically limited herein.
It should be noted that, in order to ensure that data of the user of the electronic device can be transmitted safely as much as possible, the electronic device is in the security system by default, that is, the information input device is connected to the security system by default, and encrypts the information acquired by the information input device by default, and transmits the information to the correspondent node in the form of a ciphertext. Therefore, this step will focus on how to break away from the security system to a general-purpose system that does not perform encryption processing with stricter requirements.
Further, if the condition of breaking away from the safety system to the general system is met through judgment, the judgment is continuously carried out, and if the condition of breaking away from the safety system is not met any more, the safety system is switched back in time to ensure the safety of data transmission.
Based on the above technical solution, the system switching method provided in this embodiment of the present application is applied to an electronic device with dual systems, which are a secure system for transmitting information acquired by an information input device in a ciphertext form and a general system for transmitting information in a plaintext form, and is different from the prior art, the present disclosure simultaneously adopts a plurality of parameters with different sources as determination conditions for determining whether to disengage from a secure system to the general system, specifically, state information output by a virtual control switch and state information output by an entity control switch, and if to disengage from the secure system, the state information output by the two types of switches must be tampered simultaneously, and the two types of switches are provided from software and hardware angles, and meanwhile, different tampering modes must be used for different types of control switches, and the purpose of disengaging from the secure system cannot be achieved only by a single tampering mode, so that data transmission is safer.
Example two
Referring to fig. 2, fig. 2 is a flowchart of another system switching method applied to an electronic device according to an embodiment of the present disclosure, and compared with the first embodiment, the present embodiment provides a specific way for determining whether inter-system switching can be performed, which specifically includes the following steps:
s201: respectively acquiring state information output by a virtual control switch and an entity control switch to obtain first state information and second state information;
the procedure S101 is the same and has no change, and the related description information can refer to S101, which is not described herein again.
S202: judging whether the first state information and the second state information simultaneously and correspondingly meet a first preset requirement and a second preset requirement;
that is, one of the two preconditions preset for judging whether the state information output by the virtual control switch satisfies the disengagement safety system is a first preset requirement, and the other one of the two preconditions preset for judging whether the state information output by the entity control switch satisfies the disengagement safety system is a second preset requirement. In other words, the first status information corresponds to a first predetermined requirement, the second status information corresponds to a second predetermined requirement, and the step is to determine whether the first status information satisfies the first predetermined requirement, whether the second status information satisfies the second predetermined requirement, and whether both of the first status information and the second status information satisfy the first predetermined requirement and the second predetermined requirement.
S203: switching the system in which the information input device is located from the security system to a general system;
this step is established on the basis that the two determinations are simultaneously satisfied as a result of the determination in S202, that is, the condition for switching the system in which the information input device is located from the security system to the general system is satisfied, which indicates that the user of the electronic device has undergone double authentication, and needs to change the data transmission method by himself or herself with a high probability, so that the operation of switching the system in which the information input device is located from the security system to the general system can be performed.
S204: keeping the system where the information input equipment is currently located as a safety system unchanged;
this step is established on the basis that the judgment result of S202 is that the two judgments are not simultaneously satisfied, and specifically includes the following possibilities: the first state information does not meet a first preset requirement, and the second state information meets a second preset requirement; the first state information meets a first preset requirement, and the second state information does not meet the second state information; the first state information does not meet the first preset requirement, and the second state information does not meet the second preset requirement. The condition that the system where the information input device is located is switched from the security system to the general system is not met, and the condition that the state information output by the virtual control switch is tampered after the electronic device is maliciously invaded or the state information output by the entity control switch is maliciously adjusted by other people, so that the scheme can fully defend the maliciously modifying the data processing mode of the electronic device in the existing stealing or intercepting mode.
S205: judging whether the first state information and the second state information simultaneously and correspondingly meet a first preset requirement and a second preset requirement;
in step S203, the present step monitors whether or not the condition for switching the security system to the general-purpose system is continuously satisfied (the condition is consistent with the judgment condition in step S202), and if not, switches back to the security system again.
S206: keeping the current system of the information input equipment as a general system unchanged;
this step is based on the result of the determination in S205 that both determinations are satisfied at the same time, that is, it is said that the condition for switching the security system to the general system is currently well maintained, and therefore the system where the information input device is currently located is kept unchanged.
S207: and switching the system where the information input device is located from the general system back to the security system.
This step is based on the result of the determination in S205 that the two determinations are not simultaneously satisfied, that is, it is described that the condition for switching the security system to the general system is not well maintained, and thus it is described that the condition for switching the security system to the general system is no longer satisfied, and it is necessary to switch the system where the information input device is located from the general system back to the security system, so as to ensure the secure transmission of data as much as possible.
The embodiment provides a mode for comprehensively judging whether the system where the information input device is located can be switched from the safety system to the general system by combining the virtual control switch and the entity control switch at the same time through the technical scheme, and timely switches the system where the information input device is located back to the safety system by monitoring whether the judgment condition after the information input device is switched to the general system is changed or not in real time, so that a safer system switching method is provided, and the safe transmission of data is more fully guaranteed.
EXAMPLE III
Referring to fig. 3 and fig. 4, fig. 3 is a schematic structural diagram of an or gate circuit for enabling an electronic device to safely switch between different systems according to an embodiment of the present disclosure; fig. 4 is a flowchart of a switching method based on an or gate circuit according to an embodiment of the present disclosure, and this embodiment is a specific implementation manner of the second embodiment, and achieves this purpose by means of a special characteristic of the or gate circuit, including the following steps:
s401: the first electric signal and the second electric signal are respectively used as an input signal of an OR gate circuit;
as shown in fig. 3, the state information output by the virtual control switch will serve as a first electrical signal when embodied as an electrical signal, the state information output by the physical control switch will serve as a second electrical signal when embodied as an electrical signal, and the first electrical signal and the second electrical signal are respectively used as one input signal of the or gate circuit.
The special characteristics of the or gate circuit to be used in the present embodiment will be described herein, the or gate circuit is a logic circuit in the form of the or gate circuit labeled in fig. 3, which exists as a specific gate circuit for implementing the or operation in the logic operation process, or when the or operation is applied to the representation of the electrical signal, the or gate circuit has the characteristics that, of two input terminals, as long as the electrical signal input at any one input terminal is at a high level (logic "1"), the or gate circuit has a unique output terminal which outputs an electrical signal at a high level (logic "1"); only when the electrical signals input at the two input terminals are all low (logic "0"), the electrical signal output at the output terminal is low (logic "0"), as shown in table 1:
TABLE 1 OR gate output correspondence table
Virtual control switch output Physically controlled switch output Output of OR gate circuit
High level of voltage High level High level
High level of voltage Low level of electricity High level
Low level of electricity High level High level of voltage
Low level of electricity Low level of electricity Low level of electricity
S402: judging whether the output signal of the OR gate circuit is at a low level;
on the basis of S401, in this embodiment, whether the electrical signal output by the or gate circuit is at a low level is used as a determination condition for determining whether the system in which the information input device is located can be switched from the security system to the general system, which can be obtained according to table 1, the or gate circuit outputs a low level and requires the virtual control switch and the physical control switch to output a low level, it should be noted that the electrical signals output by the virtual control switch and the physical control switch are both at a high level by default, that is, to switch the system to the general system, the virtual control switch and the physical control switch are required to simultaneously adjust the level states of the electrical signals output by the virtual control switch and the physical control switch to a low level, thereby implementing double verification and stricter system switching.
S403: switching the system in which the information input device is located from the security system to a general system;
this step is based on the determination result of S402 being that the electrical signal output by the or gate circuit is at a low level, and therefore satisfies the condition for switching the system in which the information input device is located from the security system to the general system.
S404: keeping the system where the information input equipment is currently located as a safety system unchanged;
this step is based on the determination result of S402 being that the electrical signal output by the or gate circuit is at a high level, and therefore the condition for switching the system in which the information input device is located from the security system to the general system is not satisfied, and the system in which the information input device is currently located will continue to be kept unchanged as the security system.
S405: judging whether the output signal of the OR gate circuit is at a low level;
this step is based on S403 and is intended to determine whether or not a condition that does not satisfy the hold under the general-purpose system has occurred, i.e., whether or not the output signal of the or gate circuit is low level is still determined.
S406: keeping the current system of the information input equipment as a general system unchanged;
this step is established on the basis that the determination result of S405 is that the electrical signal output by the or gate circuit is still at the low level, which indicates that the condition for continuing to be maintained in the general system is satisfied, and therefore the system in which the information input device is currently located will be maintained as the general system.
S407: and switching the system in which the information input device is positioned from the general system back to the safety system.
This step is based on the determination result in S405 that the electrical signal output by the or gate circuit is no longer at the low level but is changed to the high level, which indicates that the condition for continuing to remain in the general-purpose system is no longer satisfied, and therefore the step of switching the system in which the information input device is located from the general-purpose system back to the security system is performed.
The present embodiment provides a specific implementation manner in a lower embodiment of the second embodiment by means of the characteristics of the or gate circuit.
Example four
On the basis of any of the above embodiments, this embodiment will describe the above process in combination with the influence of the difference of the interface where the electronic device is located on the state information output by the virtual control switch, and it should be understood that, taking the intelligent mobile terminal as an example, the following interface scenarios are included: the screen locking state, the standby state, and the use state may be further subdivided according to the mode (for example, a silent mode, a ready mode, a ring mode, and the like), that is, the specific parameter of the state information output by the virtual control switch is related to the interface and the scene where the electronic device is located, and specifically, the specific parameter of the state information output by the virtual control switch may be adjusted according to the identification mark of the interface where the virtual control switch is located. Furthermore, in order to realize automatic switching, different identification marks can be preset for different interfaces and scenes in advance, the identification marks are used for reference conditions when the virtual control switch outputs state information, and a corresponding relation table comprising corresponding relations between each identification mark and corresponding state information output by the virtual control switch is established, so that the state information output by the virtual control switch can be automatically adjusted subsequently according to the corresponding relation table.
The following use scenarios may be specifically included: when a user does not use the mobile phone, the mobile phone is in a standby state and a screen locking state, dials a private phone or performs private service processing, the state information output by the virtual control switch is controlled to be a high-level electric signal, no matter what state information is output by the entity control switch, the high-level electric signal is always output under the action of an OR gate circuit, and at the moment, information input equipment such as a camera and a microphone of the mobile phone is taken over by a security system, the acquired information is encrypted under the security system, and the information is transmitted to a communication opposite end in a ciphertext mode. And the switch is switched to the general system only when the state information output by the manual adjustment virtual control switch is in a low level and the physical control switch outputs the low level through the manual adjustment.
Because the situation is complicated and cannot be illustrated by a list, a person skilled in the art can realize that many examples exist according to the basic method principle provided by the application and the practical situation, and the protection scope of the application should be protected without enough inventive work.
EXAMPLE five
Referring to fig. 5, fig. 5 is a block diagram illustrating a system switching device applied to an electronic device according to an embodiment of the present disclosure, where the system switching device may include:
a state information obtaining unit 100, configured to obtain state information output by the virtual control switch and the entity control switch, respectively, to obtain first state information and second state information;
a security system detachment judgment unit 200, configured to determine whether to switch a system in which an information input device in the electronic device is located from a security system to a general system according to the first state information and the second state information;
the electronic equipment under the safety system sends the information acquired by the information input equipment to the communication opposite terminal in a ciphertext mode; the electronic equipment under the general system sends the information collected by the information input device to the opposite communication terminal in a plaintext form.
The security system detachment judging unit 200 may include (see fig. 6):
the requirement satisfaction judging subunit is used for judging whether the first state information and the second state information simultaneously and correspondingly meet a first preset requirement and a second preset requirement;
the safety system deionization unit is used for switching the system where the information input equipment is located from the safety system to a general system when the first state information and the second state information simultaneously and correspondingly meet the first preset requirement and the second preset requirement;
and the safety system maintaining subunit is used for keeping the system where the information input device is currently located as the safety system unchanged when the first state information and the second state information do not simultaneously and correspondingly meet the first preset requirement and the second preset requirement.
Further, the system switching system may further include:
the general system maintaining and judging unit is used for judging whether the first state information and the second state information simultaneously and correspondingly meet a first preset requirement and a second preset requirement when the system where the information input equipment is located is a general system;
and the general system separation unit is used for switching the system where the information input equipment is positioned back to the safety system from the general system when the first state information and the second state information do not simultaneously and correspondingly meet the first preset requirement and the second preset requirement.
Further, the system switching system may further include:
the interface identification mark acquisition unit is used for acquiring an identification mark of the current interface of the electronic equipment;
and the virtual control switch state information adjusting unit is used for adjusting the state information output by the virtual control switch according to the identification mark.
The security system detachment determination unit 200 may include:
the OR gate circuit uses the subunit, is used in when the state information is the electric signal used for representing different states, regard first electric signal and second electric signal as an input signal of the OR gate circuit separately;
and an OR gate characteristic judging subunit for determining whether to switch the system in which the information input device is located from the security system to the general system, based on the output signal of the OR gate.
Wherein the or gate characteristic determining subunit may include:
the output signal low level judging module is used for determining whether the system where the information input equipment is located is switched from the safety system to the general system according to whether the output signal is low level; wherein the or gate circuit outputs a low level only when both input signals are low level.
With regard to the apparatus in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be described in detail here.
Fig. 7 is a block diagram illustrating an electronic device 300 in accordance with an example embodiment. As shown in fig. 7, the electronic device 300 may include: a processor 301 and a memory 302. The electronic device 300 may also include one or more of a multimedia component 303, an information input/information output (I/O) interface 304, and a communication component 305.
The processor 301 is configured to control the overall operation of the electronic device 300, so as to complete all or part of the steps in the data transmission method applied to the electronic device; the memory 302 is used to store various types of data to support operation at the electronic device 300, such as instructions for any application or method operating on the electronic device 300 and application-related data, such as contact data, messaging, pictures, audio, video, and the like. The Memory 302 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically Erasable Programmable Read-Only Memory (EEPROM), erasable Programmable Read-Only Memory (EPROM), programmable Read-Only Memory (PROM), read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk or optical disk.
The multimedia component 303 may include a screen and an audio component. Wherein the screen may be, for example, a touch screen and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may further be stored in the memory 302 or transmitted through the communication component 305. The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 304 provides an interface between the processor 301 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 305 is used for wired or wireless communication between the electronic device 300 and other devices. Wireless Communication, such as Wi-Fi, bluetooth, near Field Communication (NFC), 2G, 3G or 4G, or a combination of one or more of them, so that the corresponding Communication component 305 may include: wi-Fi module, bluetooth module, NFC module.
In an exemplary embodiment, the electronic Device 300 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the data transmission methods set forth above.
In another exemplary embodiment, a computer readable storage medium comprising program instructions which, when executed by a processor, implement the steps of the above-described data transmission method is also provided. For example, the computer readable storage medium may be the memory 302 storing program instructions executable by the processor 301 of the electronic device 300 to perform the system switching method.

Claims (9)

1. A safe system switching method is applied to electronic equipment, and is characterized in that the system switching method comprises the following steps:
respectively acquiring state information output by a virtual control switch and an entity control switch to obtain first state information and second state information;
determining whether to switch a system in which an information input device in the electronic device is located from a security system to a general system or not according to the first state information and the second state information;
the electronic equipment under the safety system sends the information acquired by the information input equipment to a communication opposite terminal in a ciphertext mode; the electronic equipment under the general system sends the information acquired by the information input device to the communication opposite terminal in a plaintext form;
determining whether to switch a system in which an information input device in the electronic device is located from a security system to a general system according to the first state information and the second state information, including:
judging whether the first state information and the second state information simultaneously and correspondingly meet a first preset requirement and a second preset requirement;
if the first state information and the second state information correspondingly meet the first preset requirement and the second preset requirement at the same time, switching the system where the information input equipment is located from the safety system to the general system;
if the first state information and the second state information do not correspondingly meet the first preset requirement and the second preset requirement at the same time, keeping the system where the information input device is located at present as the safety system unchanged.
2. The system switching method according to claim 1, further comprising:
when the system where the information input device is currently located is the general system, judging whether the first state information and the second state information correspondingly meet the first preset requirement and the second preset requirement at the same time;
and if the first state information and the second state information do not correspondingly meet the first preset requirement and the second preset requirement at the same time, switching the system where the information input equipment is located from the general system back to the safety system.
3. The system switching method according to claim 1, further comprising:
acquiring an identification mark of the interface where the electronic equipment is located;
and adjusting the state information output by the virtual control switch according to the identification mark.
4. The system switching method according to any one of claims 1 to 3, wherein the status information includes at least one of a character string, an electrical signal, and a control instruction for indicating different statuses.
5. The system switching method according to claim 4, wherein determining whether to switch a system in which an information input device is located in the electronic device from a security system to a general system based on the first status information and the second status information at the same time comprises:
when the state information is an electric signal for representing different states, the first electric signal and the second electric signal are respectively used as an input signal of an OR gate circuit;
and determining whether to switch the system in which the information input device is positioned from the safety system to the general system according to the output signal of the OR gate circuit.
6. The system switching method according to claim 5, wherein determining whether to switch the system in which the information input device is located from the security system to the general-purpose system based on the output signal of the or gate circuit comprises:
determining to switch the system in which the information input device is located from the security system to the general system according to whether the output signal is at a low level; wherein the or gate circuit outputs a low level only when both input signals are low level.
7. A secure system switching device, the system switching device comprising:
the state information acquisition unit is used for respectively acquiring state information output by the virtual control switch and the entity control switch to obtain first state information and second state information;
the safety system disengagement judging unit is used for determining whether a system where the information input equipment in the electronic equipment is located is switched from the safety system to a general system or not according to the first state information and the second state information;
the electronic equipment under the security system sends the information acquired by the information input equipment to a communication opposite terminal in a ciphertext mode; the electronic equipment under the general system sends the information acquired by the information input device to the communication opposite terminal in a plaintext form;
the security system detachment judgment unit is specifically configured to:
judging whether the first state information and the second state information simultaneously and correspondingly meet a first preset requirement and a second preset requirement;
if the first state information and the second state information correspondingly meet the first preset requirement and the second preset requirement at the same time, switching the system where the information input equipment is located from the safety system to the general system;
if the first state information and the second state information do not correspondingly meet the first preset requirement and the second preset requirement at the same time, keeping the system where the information input device is located at present as the safety system unchanged.
8. An electronic device, comprising:
the virtual control switch and the entity control switch are used for outputting state information;
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the system switching method of any one of claims 1 to 6.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the system switching method according to any one of claims 1 to 6.
CN201811325184.3A 2018-11-08 2018-11-08 Safe system switching method and device, electronic equipment and storage medium Active CN109508551B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811325184.3A CN109508551B (en) 2018-11-08 2018-11-08 Safe system switching method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811325184.3A CN109508551B (en) 2018-11-08 2018-11-08 Safe system switching method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109508551A CN109508551A (en) 2019-03-22
CN109508551B true CN109508551B (en) 2023-01-06

Family

ID=65747846

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811325184.3A Active CN109508551B (en) 2018-11-08 2018-11-08 Safe system switching method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109508551B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108681677A (en) * 2018-05-14 2018-10-19 深圳市永达电子信息股份有限公司 Based on the double net computer methods of USB interface security isolation, apparatus and system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101770561B (en) * 2008-12-29 2012-05-16 郑州大学 Switching method and control switching system thereof of radio frequency identification device (RFID) multi-protocol reader-writer
CN101893684B (en) * 2010-02-10 2012-06-06 哈尔滨工业大学 BIST general basic test module based on system on chip SOC and test system thereof and test method applying same
CN104680089B (en) * 2013-11-29 2019-02-05 联想(北京)有限公司 A kind of electronic equipment and system switching method
CN104079414A (en) * 2014-07-18 2014-10-01 成都卫士通信息产业股份有限公司 Encryptor authentication method and device with identity authentication mechanism
CN104486336A (en) * 2014-12-12 2015-04-01 冶金自动化研究设计院 Device for safely isolating and exchanging industrial control networks
CN106095629A (en) * 2016-06-01 2016-11-09 李素霞 A kind of self-help multifunctional computer troubleshooting system
US10108800B1 (en) * 2017-01-10 2018-10-23 Gbs Laboratories, Llc ARM processor-based hardware enforcement of providing separate operating system environments for mobile devices with capability to employ different switching methods

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108681677A (en) * 2018-05-14 2018-10-19 深圳市永达电子信息股份有限公司 Based on the double net computer methods of USB interface security isolation, apparatus and system

Also Published As

Publication number Publication date
CN109508551A (en) 2019-03-22

Similar Documents

Publication Publication Date Title
US8548417B2 (en) Secure control for desktop secure video teleconferencing
KR102295661B1 (en) Method and apparatus for secured communication and multimedia device adopting the same
US10511601B2 (en) Security control method for social network user, social application device and terminal
CN106888206B (en) Key exchange method, device and system
EP3182746A1 (en) Method and apparatus for transmitting routing information
CN105635084A (en) Apparatus and method for authenticating terminal
US20140071225A1 (en) Transmission system, relay apparatus and transmission terminal
CN109246110B (en) Data sharing method and device and computer readable storage medium
CN110738778A (en) control forbidding method, device, equipment and storage medium
CN114666048A (en) Data processing method and device, electronic equipment and storage medium
EP3139564B1 (en) Encryption coding module
CN104852800A (en) Data transmission method and device
CN113055169B (en) Data encryption method and device, electronic equipment and storage medium
CN109508551B (en) Safe system switching method and device, electronic equipment and storage medium
CN113076362A (en) Service execution method and device
US10205686B2 (en) Communication terminal, communication system, and output method
KR100789668B1 (en) Mobile communications terminal having both general communication mode and secret communication service mode
KR20150090817A (en) User terminal Device and Method for secured communication therof
US9467428B2 (en) Information security attachment device for voice communication and information security method for voice communication using the same
WO2016165312A1 (en) Encryption method, decryption method and device therefor
US20160219053A1 (en) Intelligent terminal and interactive control system and interactive control method using same
CN106878964B (en) Authentication system and method based on short message channel
CN114867010A (en) Communication method, communication apparatus, communication medium, and electronic device
CN109561224B (en) Call processing method and call terminal
CN112512097A (en) Information processing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: No. 333, Yunhua Road, high tech Zone, Chengdu, Sichuan 610041

Patentee after: China Electronics Technology Network Security Technology Co.,Ltd.

Address before: No. 333, Yunhua Road, high tech Zone, Chengdu, Sichuan 610041

Patentee before: CHENGDU WESTONE INFORMATION INDUSTRY Inc.

CP01 Change in the name or title of a patent holder