CN108595973A - Instruction determines method, apparatus control method, device and system - Google Patents

Instruction determines method, apparatus control method, device and system Download PDF

Info

Publication number
CN108595973A
CN108595973A CN201810392495.5A CN201810392495A CN108595973A CN 108595973 A CN108595973 A CN 108595973A CN 201810392495 A CN201810392495 A CN 201810392495A CN 108595973 A CN108595973 A CN 108595973A
Authority
CN
China
Prior art keywords
character string
sub
determines
correspondence
local device
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.)
Granted
Application number
CN201810392495.5A
Other languages
Chinese (zh)
Other versions
CN108595973B (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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Original Assignee
Guangzhou Rui Xin Electronic Technology Co Ltd
Guangzhou Shiyuan Electronics Thecnology Co Ltd
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 Guangzhou Rui Xin Electronic Technology Co Ltd, Guangzhou Shiyuan Electronics Thecnology Co Ltd filed Critical Guangzhou Rui Xin Electronic Technology Co Ltd
Priority to CN201810392495.5A priority Critical patent/CN108595973B/en
Publication of CN108595973A publication Critical patent/CN108595973A/en
Application granted granted Critical
Publication of CN108595973B publication Critical patent/CN108595973B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/602Providing cryptographic facilities or services
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Storage Device Security (AREA)

Abstract

The embodiment of the invention discloses a kind of instructions to determine that method, apparatus control method, device, system, equipment and storage medium, the instruction determine that method includes:Determining encryption data is encrypted in the random number that the Encryption Algorithm of application settings provides local device;It is corresponding decimal number by each byte conversion of the encryption data;Splice the decimal number and determines target string;It splits the target string and determines sub-goal character string;Determine the correspondence of the sub-goal character string and local device control instruction.Secondary encryption is carried out to the data after random number encryption to realize so that encrypted data are more intricate, and low according to repetitive rate when encrypted data determine instruction, encryption is good.

Description

Instruction determines method, apparatus control method, device and system
Technical field
The present invention relates to data transmission security technologies more particularly to a kind of instruction to determine method, apparatus control method, dress It sets, system, equipment and storage medium.
Background technology
The method of attention with people to information security, cryptoguard is more and more, the method for general cryptoguard It is confined to be encrypted using certain Encryption Algorithm mostly, this method relies solely on Encryption Algorithm itself to the protection of password, peace Whole step can not ensure.
In the application scenarios of smart machine interaction, in order to improve interactive safety, usually added using random number It is close, using encrypted data as between smart machine interaction password, wherein the use of random number provide it is dynamic because Element.
In the implementation of the present invention, inventor has found that at least there are the following problems in the prior art.By random number During being converted into instruction, commonly used the following two kinds mode is realized in the prior art:The first, it is calculated by existing encryption Random number is encrypted method, but the handling result of such algorithm is without the byte number for expanding number, and each byte represents one kind Instruction, due to without number is expanded, causing the instruction that this method determines seldom, and the random number itself that the quantity of the instruction determined depends on Size;The second, after random number being encrypted, the byte number for expanding number is got, but encrypts the data after expanding, is adopted A kind of mode of instruction is represented with each byte, this method causes multiple and different bytes to represent same instruction, and repetitive rate is big, Encryption is bad.
Invention content
A kind of instruction of offer of the embodiment of the present invention determines that method, apparatus control method, device, system, equipment and storage are situated between Matter carries out secondary encryption to realize to the data after random number encryption so that encrypted data are more intricate, according to adding Repetitive rate is low when data determine instruction after close, and encryption is good.
In a first aspect, an embodiment of the present invention provides a kind of instructions to determine that method, this method include:
Determining encryption data is encrypted in the random number that the Encryption Algorithm of application settings provides local device;
It is corresponding decimal number by each byte conversion of the encryption data;
Splice the decimal number and determines target string;
It splits the target string and determines sub-goal character string;
Determine the correspondence of the sub-goal character string and local device control instruction.
Second aspect, an embodiment of the present invention provides a kind of apparatus control method, this method includes:
The Encryption Algorithm of local device application settings is encrypted the random number currently shown and determines the first encryption data; It is corresponding decimal number by each byte conversion of first encryption data;Splice the decimal number and determines first object Character string;It splits the first object character string and determines the first sub-goal character string;Determine the first sub-goal character string with First correspondence of local device control instruction determines the second of the operating mode of the local control instruction and local device Correspondence;Second correspondence is sent to intelligent terminal;
The intelligent terminal receives the random number shown on the local device;The Encryption Algorithm of application settings is set to local The standby random number provided, which is encrypted, determines the second encryption data;It is to correspond to by each byte conversion of second encryption data Decimal number;Splice the decimal number and determines the second target string;It splits second target string and determines second Sub-goal character string;Determine the third correspondence of the second sub-goal character string and the local device control instruction;It connects Receive the second correspondence;
The intelligent terminal determines target operational mode, and the target operational mode is sent to the local device;
The intelligent terminal determines and the target operation according to second correspondence and the third correspondence The corresponding second sub-goal character string of pattern;
The local device receives the second sub-goal character string;
The local device determines that the second sub-goal character string is identical with the first sub-goal character string, then starts Operation;
Wherein, the local device determines and the target according to first correspondence and second correspondence The corresponding first sub-goal character string of operating mode.
The third aspect, an embodiment of the present invention provides a kind of instruction determining device, which includes:
Determination is encrypted in data encryption module, the random number that the Encryption Algorithm for application settings provides local device Encryption data;
Data conversion module, for being corresponding decimal number by each byte conversion of the encryption data;
String-concatenation module determines target string for splicing the decimal number;
Character string splits module, and sub-goal character string is determined for splitting the target string;
Correspondence determining module is closed for determining that the sub-goal character string is corresponding with local device control instruction System.
Fourth aspect, an embodiment of the present invention provides a kind of apparatus control system, which includes local device and intelligence Terminal:
The Encryption Algorithm of local device application settings is encrypted the random number currently shown and determines the first encryption data; It is corresponding decimal number by each byte conversion of first encryption data;Splice the decimal number and determines first object Character string;It splits the first object character string and determines the first sub-goal character string;Determine the first sub-goal character string with First correspondence of local device control instruction determines the second of the operating mode of the local control instruction and local device Correspondence;Second correspondence is sent to intelligent terminal;
The intelligent terminal receives the random number shown on the local device;The Encryption Algorithm of application settings is set to local The standby random number provided, which is encrypted, determines the second encryption data;It is to correspond to by each byte conversion of second encryption data Decimal number;Splice the decimal number and determines the second target string;It splits second target string and determines second Sub-goal character string;Determine the third correspondence of the second sub-goal character string and the local device control instruction;It connects Receive the second correspondence;
The intelligent terminal determines target operational mode, and the target operational mode is sent to the local device;Root The second specific item marking-up corresponding with the target operational mode is determined according to second correspondence and the third correspondence Symbol string;
The local device receives the second sub-goal character string;Determine the second sub-goal character string and described One sub-goal character string is identical, then starts operation;Wherein, it is determined according to first correspondence and second correspondence The first sub-goal character string corresponding with the target operational mode.
5th aspect, the embodiment of the present invention additionally provide a kind of computer equipment, including memory, processor and are stored in On memory and the computer program that can run on a processor, the processor are realized when executing described program as the present invention is real It applies any instruction in example and determines method or apparatus control method.
6th aspect, the embodiment of the present invention additionally provide a kind of computer readable storage medium, are stored thereon with computer Program realizes that the instruction as described in any in the embodiment of the present invention determines method or equipment control when the program is executed by processor Method.
In the embodiment of the present invention, determining add is encrypted in the random number that the Encryption Algorithm of application settings provides local device Ciphertext data;It is corresponding decimal number by each byte conversion of the encryption data;Splice the decimal number and determines target Character string;It splits the target string and determines sub-goal character string;Determine that the sub-goal character string is controlled with local device The correspondence of instruction.Secondary encryption is carried out to the data after random number encryption to realize so that encrypted data are more wrong Comprehensive complexity, low according to repetitive rate when encrypted data determine instruction, encryption is good.
Description of the drawings
Fig. 1 is the flow chart that a kind of instruction in the embodiment of the present invention one determines method;
Fig. 2 a are a kind of flow charts of apparatus control method in the embodiment of the present invention two;
Fig. 2 b are a kind of mobile phone being applicable in the embodiment of the present invention two and intelligent washing machine interaction schematic diagram;
Fig. 3 is a kind of structural schematic diagram of instruction determining device in the embodiment of the present invention three;
Fig. 4 is a kind of structural schematic diagram of apparatus control system in the embodiment of the present invention four;
Fig. 5 is a kind of structural schematic diagram of computer equipment in the embodiment of the present invention five.
Specific implementation mode
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limitation of the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
In the scene of certain smart device communications interaction, dynamic encrypted instruction is needed to carry out security control.Have with Machine number generates principle it is found that the latter random number and previous random number have no bearing on, therefore, random number provide it is dynamic because Element.One random number is converted into a plurality of instruction, each smart machine is controlled using different instructions, makes each intelligence Equipment completes interactive process.
Embodiment one
Fig. 1 is the flow chart that a kind of instruction that the embodiment of the present invention one provides determines method, and the present embodiment is applicable to need The case where determining a plurality of instruction according to a random number, this method can be by instruction determining devices provided in an embodiment of the present invention It executes, which can be used software and/or the mode of hardware is realized.With reference to figure 1, this method can specifically include following step Suddenly:
Determining encryption data is encrypted in S110, the random number that the Encryption Algorithm of application settings provides local device.
In practical application, local device provides a dynamic random number, by taking local device is intelligent washing machine as an example, Dynamic Announce random number on the intelligent washing machine, for example, once being updated every 1 minute.The Encryption Algorithm pair of application settings The random number currently shown is encrypted, and encrypted data are determined as encryption data.The Encryption Algorithm of setting can be MD5 (Message-Digest Algorithm 5) algorithm or DES (Data Encryption Standard) algorithm etc..Wherein, add Ciphertext data is the data obtained after being encrypted according to the Encryption Algorithm of setting, data mode and data characteristics of encryption data etc. It is related with the specific Encryption Algorithm used.
Optionally, the Encryption Algorithm of the application settings is AES encryption algorithm.AES(Advanced Encryption Standard) Encryption Algorithm is the Advanced Encryption Standard in cryptography, also known as Rijndael enciphered methods, AES encryption algorithm itself There is complement code mechanism, therefore, makes the instruction in the embodiment of the present invention determine that the ciphering process in method has the using the algorithm One time byte is expanded, and byte expands the repetitive rate for reducing data.It is logical to the data after random number encryption using AES encryption algorithm It is often the data of 16 bytes.
S120, by each byte conversion of the encryption data be corresponding decimal number.
It is decimal number by each byte conversion of encryption data specifically, being converted to encryption data.Have at one In the example of body, after the random number that local device is currently shown is encrypted using AES encryption algorithm, 16 bytes are got Encryption data, wherein encryption data is invisible to user, but exists in an encrypted form.If the encryption data is 16 Each byte conversion is corresponding decimal number, for example, first character section 0X02, then be converted into corresponding by the data of system Decimal number is 2, and second byte is 0X0A, then it is 10 to be converted into corresponding decimal number.
S130, the splicing decimal number determine target string.
The corresponding decimal number that each byte conversion in encryption data is is spliced, it optionally, can be according to Byte order is spliced, that is, by second byte conversion at decimal number splicing be converted into first character section ten System number back, by third byte conversion at decimal number splicing second byte conversion at decimal number after Side ..., by the N+1 byte conversion at decimal number splice in the decimal number back that nth byte is converted into, wherein N is positive integer, and N represents byte order.In a specific example, multiple decimal number splicing results are target character String, for example, 308255911243902180373566.
S140, the fractionation target string determine sub-goal character string.
Illustratively, the target string is split, a target string is split into multiple specific item marking-ups Symbol string.For example, chosen every a decimal number, every three decimal numbers are one group, as a sub- target string, If target string is 308255911243902180373566, sub-goal character string is 385,025,914,123 ....
S150, the correspondence for determining the sub-goal character string and local device control instruction.
Specifically, determine the correspondence of each sub-goal character string and local device control instruction, it is optionally, local to control System instruction include express, standard cleaning, strength cleaning, draining or drying etc..For example, 385 represent drying, 025 representative expresses, 123, which represent strength, cleans, and 914 represent standard cleaning etc..By selecting sub-goal character corresponding with local device control instruction String, then can control local device using the local device control instruction.
In the embodiment of the present invention, determining add is encrypted in the random number that the Encryption Algorithm of application settings provides local device Ciphertext data;It is corresponding decimal number by each byte conversion of the encryption data;Splice the decimal number and determines target Character string;It splits the target string and determines sub-goal character string;Determine that the sub-goal character string is controlled with local device The correspondence of instruction.Secondary encryption is carried out to the data after random number encryption to realize so that encrypted data are more wrong Comprehensive complexity, low according to repetitive rate when encrypted data determine instruction, encryption is good.
Based on the above technical solution, by each byte conversion of the encryption data be corresponding decimal number it Afterwards, further include:It determines that the decimal number is units, then the decimal number is handled according to setting rule, wherein The setting rule is that the number of setting is added before or after the decimal number, and the number includes the decimal number Serial number of the corresponding byte in the encryption data.
Illustratively, it is corresponding decimal number by each byte conversion of encryption data, to the decimal number of units It is handled according to the rule of setting, for example, the number of setting is added before or after the decimal number of the units, it should Number can be serial number of the corresponding byte of the decimal number in encryption data.
In a specific example, if the 5th byte is 0X08, it is 8 to be converted into corresponding decimal number, is a position Number, and the byte corresponding serial number in encryption data is 5, then it can be by 5 additions in 8 front, i.e., 58, as to this position The handling result of number 8 replaces 8 with 58.It realizes to instructing secondary byte of determination process to expand in the embodiment of the present invention, Keep call instruction more intricate, encryption is more preferable.
Optionally, it splits the target string and determines sub-goal character string, including:Since low byte, choose successively The character string of setting quantity splits the target string as sub-goal character string.
Wherein, if target string is 308255911243902180373566, since low byte, if choosing successively The character string of quantity is set as sub-goal character string, for example, the quantity of setting takes 4, then to the split result of target string It is 3082,5591,1243 ....Pass through secondary encryption so that encrypted data are more complicated, it is safer, reduce data Repetitive rate.
In the embodiment of the present invention, the existing ciphering process to data also has the expanding course to data, and realizing will be random Number is converted to the purpose of a variety of encrypted instructions, increases the complexity of encryption data, reduces the repetitive rate of data, has reached weight Multiple rate is low and the good purpose of encryption.
Embodiment two
Fig. 2 a be a kind of flow chart of apparatus control method provided by Embodiment 2 of the present invention, the present embodiment be applicable to The case where few two equipment are interacted based on control instruction, this method can be controlled by equipment provided in an embodiment of the present invention is It unites to execute, which includes local device and intelligent terminal.With reference to figure 2a, this method can specifically include following steps:
S210, local device application settings Encryption Algorithm to the random number currently shown be encrypted determine first encryption Data;It is corresponding decimal number by each byte conversion of first encryption data;Splice the decimal number and determines One target string;It splits the first object character string and determines the first sub-goal character string;Determine the first specific item marking-up First correspondence of symbol string and local device control instruction determines the operating mode of the local control instruction and local device The second correspondence.In a specific example, local device is clicking intelligent washing machine by taking intelligent washing machine as an example After a button, 4 random numbers, such as 3268 are shown on the display charactron of intelligent washing machine, which can be that power supply opens Dynamic key etc..It is encrypted using AES encryption algorithm pair 3268 and obtains the first encryption data, by each byte of the first encryption data Corresponding decimal number is converted to, these decimal numbers are carried out to splice determining first object character string, such as 308255911243902180373566, split first object character string determine the first sub-goal character string 3082,5591, 1243 ..., determine the first correspondence of the first sub-goal character string and local device control instruction, such as 3082 represent express, 5591 represent standard cleaning, 1243 represent strength cleaning, 9021 represent drying, 8037 represent draining.Local control instruction and sheet Second correspondence of the operating mode of ground equipment can be expressed, standard cleaning, strongly clean corresponding washing mode, drying Corresponding drying pattern drains corresponding discharging mode;Second correspondence is sent to intelligent terminal.In this specific example In son, intelligent terminal can be mobile phone, and user can control intelligent washing machine by mobile phone, complete washing process.
S220, second correspondence is sent to intelligent terminal.
S230, intelligent terminal receive the second correspondence
S240, the intelligent terminal receive the random number shown on the local device;The Encryption Algorithm pair of application settings The random number that local device provides, which is encrypted, determines the second encryption data;By each byte conversion of second encryption data For corresponding decimal number;Splice the decimal number and determines the second target string;It is true to split second target string Fixed second sub-goal character string;It determines that the second sub-goal character string is corresponding with the third of local device control instruction to close System;Receive the second correspondence.
In a specific example, intelligent terminal is by taking mobile phone as an example, built-in matched with intelligent washing machine the on mobile phone One application program realizes the interactive process of mobile phone and intelligent washing machine by first application program.In intelligent washing machine It shows and shows 4 random numbers on charactron, such as 3268, input 3268 in corresponding first application program of mobile phone, mobile phone is answered It is encrypted with AES encryption algorithm pair 3268 and obtains the second encryption data, be pair by each byte conversion of the second encryption data The decimal number answered carries out splicing to these decimal numbers and determines the second target string, such as 308255911243902180373566, split the second target string determine the second sub-goal character string 3082,5591, 1243 ..., determine the third correspondence of the second sub-goal character string and local device control instruction, such as 3082 represent express, 5591 represent standard cleaning, 1243 represent strength cleaning, 9021 represent drying, 8037 represent draining.
In a specific example, Fig. 2 b show a kind of mobile phone and intelligent washing machine interaction schematic diagram, and 291 indicate hands Machine, 292 indicate the display screen of intelligent washing machine, and display charactron is wherein integrated in display screen, intelligent washing machine is shown number The random number 3268 shown on code pipe is input to the first application program of mobile phone, then the first application program of mobile phone display interface is shown The operating mode of alternative intelligent washing machine, for that can determine target operational mode by the operations such as touching or clicking.
It should be noted that S240 can also be first carried out, then S230 is executed, is set that is, intelligent terminal receives the local The random number of standby upper display;The random number that the Encryption Algorithm of application settings provides local device, which is encrypted, determines the second encryption Data;It is corresponding decimal number by each byte conversion of second encryption data;Splice the decimal number and determines Two target strings;It splits second target string and determines the second sub-goal character string;Determine the second specific item marking-up Symbol string is receiving the second correspondence with after the third correspondence of the local device control instruction.Here specific limit is not done It is fixed.
S250, the intelligent terminal determine target operational mode.
In corresponding first application program of mobile phone after input 3268, multiple operating modes of intelligent washing machine are shown in this It on first Application Program Interface, such as expresses, standard cleaning, strongly cleaning, drying or draining etc., touches or click for passing through Deng operation, a kind of operating mode is selected on the first Application Program Interface, and after selecting a kind of means of payment, can be shown on mobile phone The second sub-goal character string corresponding with cleaning model, if for example, user has selected to express on mobile phone, target operational mode To express pattern.
S260, the target operational mode is sent to the local device.
In a specific example, target operational mode is that the pattern that expresses is sent by first application program by mobile phone To intelligent washing machine.
S270, the intelligent terminal determine and the target according to second correspondence and the third correspondence The corresponding second sub-goal character string of operating mode.
Specifically, mobile phone determines the second specific item corresponding with standard cleaning according to the second correspondence and third correspondence It is 3082 to mark character string.
S280, the local device receive the second sub-goal character string.
S290, the local device determine that the second sub-goal character string is identical with the first sub-goal character string, Then start operation.
Intelligent washing machine gets 3082 sent from mobile phone, determines and encrypted fast washing procedure on intelligent washing machine Corresponding first sub-goal character string is identical, then starts corresponding fast washing procedure.Intelligent washing machine is corresponded to according to described first and is closed System and second correspondence determine the first sub-goal character string corresponding with the target operational mode.
In the embodiment of the present invention, the method for determination is similarly instructed in local device and the intelligent terminal application embodiment of the present invention The relationship for determining local device control instruction and sub-goal character string, after intelligent terminal determines target operational mode, by target Operating mode is sent to local device, and intelligent terminal determines target operational mode according to the second correspondence and third correspondence Corresponding second sub-goal character string, local device receive the second sub-goal character string, and determine the second sub-goal character string and Start operation after first sub-goal character string is identical.Secondary encryption is carried out to the data after random number encryption to realize so that add Data after close are more intricate, and low according to repetitive rate when encrypted data determine instruction, encryption is good.So that local set The standby interaction between intelligent terminal is safer.
Optionally, the intelligent terminal determines and the mesh according to second correspondence and the third correspondence The corresponding second sub-goal character string of operating mode is marked, including:It is controlled according to the second sub-goal character string and local device First correspondence of instruction and the second of the local device control instruction and the operating mode of the local device corresponding Relationship determines the second sub-goal character string corresponding with the target operational mode.
Specifically, according to the first correspondence and the second sub-goal character string, determine and the second sub-goal character string pair The local device control instruction answered;Further according to the second correspondence and target operational mode, determine and target operational mode pair The the second sub-goal character string answered.For example, representing standard cleaning according to 5591, standard cleaning belongs to washing mode, determines washing The corresponding second sub-goal character string of standard cleaning pattern in pattern is 5591.
Optionally, the local device determines and the mesh according to first correspondence and second correspondence The corresponding first sub-goal character string of operating mode is marked, including:It is controlled according to the first sub-goal character string and local device First correspondence of instruction and the second of the local device control instruction and the operating mode of the local device corresponding Relationship determines the second sub-goal character string corresponding with the target operational mode.
Similarly, according to the first correspondence and the first sub-goal character string, determination is corresponding with the first sub-goal character string Local device control instruction;Further according to the second correspondence and target operational mode, determination is corresponding with target operational mode The second sub-goal character string.It is cleaned for example, representing strength according to 1243, strength cleaning belongs to washing mode, determines washing mould The corresponding second sub-goal character string of strength cleaning model in formula is 1243.
Embodiment three
Fig. 3 is a kind of structural schematic diagram for instruction determining device that the embodiment of the present invention three provides, which is suitable for holding A kind of instruction that the row embodiment of the present invention is supplied to determines method.As shown in figure 3, the device can specifically include:
Data encryption module 310, the random number that the Encryption Algorithm for application settings provides local device are encrypted Determine encryption data;
Data conversion module 320, for being corresponding decimal number by each byte conversion of the encryption data;
String-concatenation module 330 determines target string for splicing the decimal number;
Character string splits module 340, and sub-goal character string is determined for splitting the target string;
Correspondence determining module 350, for determining that the sub-goal character string is corresponding with local device control instruction Relationship.
Further, further include:
Data processing module is used for after by each byte conversion of the encryption data for corresponding decimal number, It determines that the decimal number is units, then the decimal number is handled according to setting rule, wherein the setting rule It is then the number that setting is added before or after the decimal number, the number includes the corresponding byte of the decimal number Serial number in the encryption data.
Further, character string splits module 340 and is specifically used for:
Since low byte, the character string for setting quantity is chosen successively as sub-goal character string to the target string It is split.
Further, the Encryption Algorithm of the application settings is AES encryption algorithm.
The instruction determination side that the executable any embodiment of the present invention of instruction determining device provided in an embodiment of the present invention provides Method has the corresponding function module of execution method and advantageous effect.
Example IV
Fig. 4 is a kind of structural schematic diagram for apparatus control system that the embodiment of the present invention four provides, which includes local Equipment 410 and intelligent terminal 420, the system are adapted for carrying out a kind of apparatus control method that the embodiment of the present invention is supplied to, ginseng Examine Fig. 4.
The random number currently shown, which is encrypted, in the Encryption Algorithm of 410 application settings of local device determines the first encryption number According to;It is corresponding decimal number by each byte conversion of first encryption data;Splice the decimal number and determines first Target string;It splits the first object character string and determines the first sub-goal character string;Determine the first sub-goal character First correspondence of string and local device control instruction determines the operating mode of the local control instruction and local device Second correspondence;Second correspondence is sent to intelligent terminal 420.
Intelligent terminal 420 receives the random number shown on the local device;The Encryption Algorithm of application settings is set to local The standby random number provided, which is encrypted, determines the second encryption data;It is to correspond to by each byte conversion of second encryption data Decimal number;Splice the decimal number and determines the second target string;It splits second target string and determines second Sub-goal character string;Determine the third correspondence of the second sub-goal character string and the local device control instruction;It connects Receive the second correspondence.
Intelligent terminal 420 determines target operational mode, and the target operational mode is sent to local device 410;According to Second correspondence and the third correspondence determine the second sub-goal character corresponding with the target operational mode String.
Local device 410 receives the second sub-goal character string;Determine the second sub-goal character string and described One sub-goal character string is identical, then starts operation;Wherein, it is determined according to first correspondence and second correspondence The first sub-goal character string corresponding with the target operational mode.
Specifically, intelligent terminal 420 determines and the mesh according to second correspondence and the third correspondence The corresponding second sub-goal character string of operating mode is marked, can be realized in the following way, according to the second sub-goal character String and the first correspondence of local device control instruction and the work of the local device control instruction and the local device Second correspondence of operation mode determines the second sub-goal character string corresponding with the target operational mode.
Specifically, local device 410 determines and the mesh according to first correspondence and second correspondence The corresponding first sub-goal character string of operating mode is marked, can be realized in the following way:According to the first sub-goal character String and the first correspondence of local device control instruction and the work of the local device control instruction and the local device Second correspondence of operation mode determines the second sub-goal character string corresponding with the target operational mode.
The embodiment of the present invention is realized carries out secondary encryption to the data after random number encryption so that encrypted data are more It is intricate to add, and low according to repetitive rate when encrypted data determine instruction, encryption is good.Make local device and intelligent terminal Between interaction it is safer.
Embodiment five
Fig. 5 is a kind of structural schematic diagram for computer equipment that the embodiment of the present invention five provides.Fig. 5 is shown suitable for being used for Realize the block diagram of the exemplary computer device 12 of embodiment of the present invention.The computer equipment 12 that Fig. 5 is shown is only one Example should not bring any restrictions to the function and use scope of the embodiment of the present invention.
As shown in figure 5, computer equipment 12 is showed in the form of universal computing device.The component of computer equipment 12 can be with Including but not limited to:One or more processor or processing unit 16, system storage 28 connect different system component The bus 18 of (including system storage 28 and processing unit 16).
Bus 18 indicates one or more in a few class bus structures, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor or the local bus using the arbitrary bus structures in a variety of bus structures.It lifts For example, these architectures include but not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC) Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Computer equipment 12 typically comprises a variety of computer system readable media.These media can be it is any can be by The usable medium that computer equipment 12 accesses, including volatile and non-volatile media, moveable and immovable medium.
System storage 28 may include the computer system readable media of form of volatile memory, such as arbitrary access Memory (RAM) 30 and/or cache memory 32.Computer equipment 12 may further include it is other it is removable/can not Mobile, volatile/non-volatile computer system storage medium.Only as an example, storage system 34 can be used for reading and writing not Movably, non-volatile magnetic media (Fig. 5 do not show, commonly referred to as " hard disk drive ").It, can be with although being not shown in Fig. 5 It provides for the disc driver to moving non-volatile magnetic disk (such as " floppy disk ") read-write, and to removable non-volatile The CD drive of CD (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases, each driving Device can be connected by one or more data media interfaces with bus 18.System storage 28 may include at least one journey There is one group of (for example, at least one) program module, these program modules to be configured to perform this hair for sequence product, the program product The function of bright each embodiment.
Program/utility 40 with one group of (at least one) program module 42 can be stored in such as system storage In device 28, such program module 42 include --- but being not limited to --- operating system, one or more first application program, Other program modules and program data may include the reality of network environment in each or certain combination in these examples It is existing.Program module 42 usually executes function and/or method in embodiment described in the invention.
Computer equipment 12 can also be with one or more external equipments 14 (such as keyboard, sensing equipment, display 24 Deng) communication, can also be enabled a user to one or more equipment interact with the computer equipment 12 communicate, and/or with make The computer equipment 12 any equipment (such as network interface card, the modulatedemodulate that can be communicated with one or more of the other computing device Adjust device etc.) communication.This communication can be carried out by input/output (I/O) interface 22.Also, computer equipment 12 may be used also To pass through network adapter 20 and one or more network (such as LAN (LAN), wide area network (WAN) and/or public network Network, such as internet) communication.As shown, network adapter 20 is logical by bus 18 and other modules of computer equipment 12 Letter.It should be understood that although being not shown in Fig. 5, other hardware and/or software module, packet can be used in conjunction with computer equipment 12 It includes but is not limited to:Microcode, device driver, redundant processing unit, external disk drive array, RAID system, magnetic tape drive Device and data backup storage system etc..
Processing unit 16 is stored in program in system storage 28 by operation, to perform various functions application and Data processing, such as realize that the instruction that the embodiment of the present invention is provided determines method:
That is, the processing unit is realized when executing described program:The Encryption Algorithm of application settings provides local device Random number determining encryption data is encrypted;It is corresponding decimal number by each byte conversion of the encryption data;It spells It connects the decimal number and determines target string;It splits the target string and determines sub-goal character string;Determine the specific item Mark the correspondence of character string and local device control instruction.
The apparatus control method that the embodiment of the present invention is provided can also be realized, that is, described in processing unit execution It is realized when program:
The Encryption Algorithm of local device application settings is encrypted the random number currently shown and determines the first encryption data; It is corresponding decimal number by each byte conversion of first encryption data;Splice the decimal number and determines first object Character string;It splits the first object character string and determines the first sub-goal character string;Determine the first sub-goal character string with First correspondence of local device control instruction determines the second of the operating mode of the local control instruction and local device Correspondence;Second correspondence is sent to intelligent terminal;
The intelligent terminal receives the random number shown on the local device;The Encryption Algorithm of application settings is set to local The standby random number provided, which is encrypted, determines the second encryption data;It is to correspond to by each byte conversion of second encryption data Decimal number;Splice the decimal number and determines the second target string;It splits second target string and determines second Sub-goal character string;Determine the third correspondence of the second sub-goal character string and the local device control instruction;It connects Receive the second correspondence;
The intelligent terminal determines target operational mode, and the target operational mode is sent to the local device;Institute It is corresponding with the target operational mode according to second correspondence and third correspondence determination to state intelligent terminal Second sub-goal character string;
The local device receives the second sub-goal character string;The local device determines the second specific item marking-up Symbol string is identical with the first sub-goal character string, then starts operation;Wherein, the local device is corresponded to according to described first and is closed System and second correspondence determine the first sub-goal character string corresponding with the target operational mode.
Embodiment six
The embodiment of the present invention six provides a kind of computer readable storage medium, is stored thereon with computer program, the journey For example realize that the instruction that the embodiment of the present invention is provided determines method when sequence is executed by processor:
That is, the processing unit is realized when executing described program:The Encryption Algorithm of application settings provides local device Random number determining encryption data is encrypted;It is corresponding decimal number by each byte conversion of the encryption data;It spells It connects the decimal number and determines target string;It splits the target string and determines sub-goal character string;Determine the specific item Mark the correspondence of character string and local device control instruction.
The apparatus control method that the embodiment of the present invention is provided can also be realized, that is, described in processing unit execution It is realized when program:
The Encryption Algorithm of local device application settings is encrypted the random number currently shown and determines the first encryption data; It is corresponding decimal number by each byte conversion of first encryption data;Splice the decimal number and determines first object Character string;It splits the first object character string and determines the first sub-goal character string;Determine the first sub-goal character string with First correspondence of local device control instruction determines the second of the operating mode of the local control instruction and local device Correspondence;Second correspondence is sent to intelligent terminal;
The intelligent terminal receives the random number shown on the local device;The Encryption Algorithm of application settings is set to local The standby random number provided, which is encrypted, determines the second encryption data;It is to correspond to by each byte conversion of second encryption data Decimal number;Splice the decimal number and determines the second target string;It splits second target string and determines second Sub-goal character string;Determine the third correspondence of the second sub-goal character string and the local device control instruction;It connects Receive the second correspondence;
The intelligent terminal determines target operational mode, and the target operational mode is sent to the local device;Institute It is corresponding with the target operational mode according to second correspondence and third correspondence determination to state intelligent terminal Second sub-goal character string;
The local device receives the second sub-goal character string;The local device determines the second specific item marking-up Symbol string is identical with the first sub-goal character string, then starts operation;Wherein, the local device is corresponded to according to described first and is closed System and second correspondence determine the first sub-goal character string corresponding with the target operational mode.
The arbitrary combination of one or more computer-readable media may be used.Computer-readable medium can be calculated Machine readable signal medium or computer readable storage medium.Computer readable storage medium for example can be --- but it is unlimited In --- electricity, system, device or the device of magnetic, optical, electromagnetic, infrared ray or semiconductor, or the arbitrary above combination.It calculates The more specific example (non exhaustive list) of machine readable storage medium storing program for executing includes:Electrical connection with one or more conducting wires, just It takes formula computer disk, hard disk, random access memory (RAM), read-only memory (ROM), erasable type and may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In this document, can be any include computer readable storage medium or storage journey The tangible medium of sequence, the program can be commanded the either device use or in connection of execution system, device.
Computer-readable signal media may include in a base band or as the data-signal that a carrier wave part is propagated, Wherein carry computer-readable program code.Diversified forms may be used in the data-signal of this propagation, including --- but It is not limited to --- electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be Any computer-readable medium other than computer readable storage medium, which can send, propagate or Transmission for by instruction execution system, device either device use or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited In --- wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
It can be write with one or more programming languages or combinations thereof for executing the computer that operates of the present invention Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++, Further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion Divide and partly executes or executed on a remote computer or server completely on the remote computer on the user computer. Be related in the situation of remote computer, remote computer can pass through the network of any kind --- including LAN (LAN) or Wide area network (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as carried using Internet service It is connected by internet for quotient).
Note that above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The present invention is not limited to specific embodiments described here, can carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out to the present invention by above example It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also May include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.

Claims (10)

1. a kind of instruction determines method, which is characterized in that including:
Determining encryption data is encrypted in the random number that the Encryption Algorithm of application settings provides local device;
It is corresponding decimal number by each byte conversion of the encryption data;
Splice the decimal number and determines target string;
It splits the target string and determines sub-goal character string;
Determine the correspondence of the sub-goal character string and local device control instruction.
2. according to the method described in claim 1, it is characterized in that, being corresponding by each byte conversion of the encryption data After decimal number, further include:
It determines that the decimal number is units, then the decimal number is handled according to setting rule, wherein described to set Set pattern is then the number that setting is added before or after the decimal number, and the number includes that the decimal number is corresponding Serial number of the byte in the encryption data.
3. according to the method described in claim 1, it is characterized in that, splitting the target string determines sub-goal character string, Including:
Since low byte, the character string for choosing setting quantity successively carries out the target string as sub-goal character string It splits.
4. according to claim 1-3 any one of them methods, which is characterized in that the Encryption Algorithm of the application settings is AES Encryption Algorithm.
5. a kind of apparatus control method, which is characterized in that including:
The Encryption Algorithm of local device application settings is encrypted the random number currently shown and determines the first encryption data;By institute The each byte conversion for stating the first encryption data is corresponding decimal number;Splice the decimal number and determines first object character String;It splits the first object character string and determines the first sub-goal character string;Determine the first sub-goal character string and local First correspondence of equipment control instruction determines that the second of the local control instruction and the operating mode of local device is corresponding Relationship;Second correspondence is sent to intelligent terminal;
The intelligent terminal receives the random number shown on the local device;The Encryption Algorithm of application settings carries local device The random number of confession, which is encrypted, determines the second encryption data;It is corresponding ten by each byte conversion of second encryption data System number;Splice the decimal number and determines the second target string;It splits second target string and determines the second specific item Mark character string;Determine the third correspondence of the second sub-goal character string and the local device control instruction;Receive the Two correspondences;
The intelligent terminal determines target operational mode, and the target operational mode is sent to the local device;
The intelligent terminal determines and the target operational mode according to second correspondence and the third correspondence Corresponding second sub-goal character string;
The local device receives the second sub-goal character string;
The local device determines that the second sub-goal character string is identical with the first sub-goal character string, then starts fortune Row;
Wherein, the local device determines and the target operation according to first correspondence and second correspondence The corresponding first sub-goal character string of pattern.
6. according to the method described in claim 5, it is characterized in that, the intelligent terminal is according to second correspondence and institute It states third correspondence and determines the second sub-goal character string corresponding with the target operational mode, including:
According to the first correspondence and the local device of the second sub-goal character string and local device control instruction Second correspondence of the operating mode of control instruction and the local device determines corresponding with the target operational mode the Two sub-goal character strings;
The local device determines and the target operational mode according to first correspondence and second correspondence Corresponding first sub-goal character string, including:
According to the first correspondence and the local device of the first sub-goal character string and local device control instruction Second correspondence of the operating mode of control instruction and the local device determines corresponding with the target operational mode the Two sub-goal character strings.
7. a kind of instruction determining device, which is characterized in that including:
Determining encryption is encrypted in data encryption module, the random number that the Encryption Algorithm for application settings provides local device Data;
Data conversion module, for being corresponding decimal number by each byte conversion of the encryption data;
String-concatenation module determines target string for splicing the decimal number;
Character string splits module, and sub-goal character string is determined for splitting the target string;
Correspondence determining module, the correspondence for determining the sub-goal character string and local device control instruction.
8. a kind of apparatus control system, which is characterized in that including local device and intelligent terminal:
The Encryption Algorithm of local device application settings is encrypted the random number currently shown and determines the first encryption data;By institute The each byte conversion for stating the first encryption data is corresponding decimal number;Splice the decimal number and determines first object character String;It splits the first object character string and determines the first sub-goal character string;Determine the first sub-goal character string and local First correspondence of equipment control instruction determines that the second of the local control instruction and the operating mode of local device is corresponding Relationship;Second correspondence is sent to intelligent terminal;
The intelligent terminal receives the random number shown on the local device;The Encryption Algorithm of application settings carries local device The random number of confession, which is encrypted, determines the second encryption data;It is corresponding ten by each byte conversion of second encryption data System number;Splice the decimal number and determines the second target string;It splits second target string and determines the second specific item Mark character string;Determine the third correspondence of the second sub-goal character string and the local device control instruction;Receive the Two correspondences;
The intelligent terminal determines target operational mode, and the target operational mode is sent to the local device;According to institute It states the second correspondence and the third correspondence determines the second sub-goal character string corresponding with the target operational mode;
The local device receives the second sub-goal character string;Determine the second sub-goal character string and first son Target string is identical, then starts operation;Wherein, according to first correspondence and second correspondence determination and institute State the corresponding first sub-goal character string of target operational mode.
9. a kind of computer equipment, including memory, processor and storage are on a memory and the meter that can run on a processor Calculation machine program, which is characterized in that the processor realizes the instruction as described in any in claim 1-4 when executing described program Determine method or any apparatus control methods of claim 5-6.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor When execution realize as described in any in claim 1-4 instruct determination method or claim 5-6 it is any as described in equipment control Method processed.
CN201810392495.5A 2018-04-27 2018-04-27 Instruction determination method, equipment control method, device and system Active CN108595973B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810392495.5A CN108595973B (en) 2018-04-27 2018-04-27 Instruction determination method, equipment control method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810392495.5A CN108595973B (en) 2018-04-27 2018-04-27 Instruction determination method, equipment control method, device and system

Publications (2)

Publication Number Publication Date
CN108595973A true CN108595973A (en) 2018-09-28
CN108595973B CN108595973B (en) 2021-03-23

Family

ID=63610744

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810392495.5A Active CN108595973B (en) 2018-04-27 2018-04-27 Instruction determination method, equipment control method, device and system

Country Status (1)

Country Link
CN (1) CN108595973B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111314184A (en) * 2018-12-12 2020-06-19 深圳市云海物联科技有限公司 Control method and system based on transparent transmission mechanism
CN113346999A (en) * 2021-08-09 2021-09-03 国网浙江省电力有限公司杭州供电公司 Splitting encryption-based brain central system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070266232A1 (en) * 2006-05-09 2007-11-15 Stephane Rodgers Method and System For Command Interface Protection To Achieve a Secure Interface
CN103901824A (en) * 2012-12-26 2014-07-02 海尔集团公司 Intelligent household control method and system, intelligent household control center and mobile terminal
CN104811298A (en) * 2015-05-14 2015-07-29 中国联合网络通信集团有限公司 Method and device for realizing encryption
CN105827582A (en) * 2015-09-14 2016-08-03 维沃移动通信有限公司 Communication encryption method, device and system
CN107395751A (en) * 2017-08-23 2017-11-24 绵阳美菱软件技术有限公司 A kind of remote control system of intelligent household electrical appliance and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070266232A1 (en) * 2006-05-09 2007-11-15 Stephane Rodgers Method and System For Command Interface Protection To Achieve a Secure Interface
CN103901824A (en) * 2012-12-26 2014-07-02 海尔集团公司 Intelligent household control method and system, intelligent household control center and mobile terminal
CN104811298A (en) * 2015-05-14 2015-07-29 中国联合网络通信集团有限公司 Method and device for realizing encryption
CN105827582A (en) * 2015-09-14 2016-08-03 维沃移动通信有限公司 Communication encryption method, device and system
CN107395751A (en) * 2017-08-23 2017-11-24 绵阳美菱软件技术有限公司 A kind of remote control system of intelligent household electrical appliance and method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111314184A (en) * 2018-12-12 2020-06-19 深圳市云海物联科技有限公司 Control method and system based on transparent transmission mechanism
CN111314184B (en) * 2018-12-12 2021-10-15 深圳市云海物联科技有限公司 Control method and system based on transparent transmission mechanism
CN113346999A (en) * 2021-08-09 2021-09-03 国网浙江省电力有限公司杭州供电公司 Splitting encryption-based brain central system

Also Published As

Publication number Publication date
CN108595973B (en) 2021-03-23

Similar Documents

Publication Publication Date Title
CN110827378A (en) Virtual image generation method, device, terminal and storage medium
CN110516462A (en) Method and apparatus for encryption data
CN114186256B (en) Training method, device, equipment and storage medium of neural network model
CN112416323B (en) Control code generation method, operation method, device, equipment and storage medium
CN110417641A (en) A kind of method and apparatus sending conversation message
US20160085717A1 (en) Calculator, recording medium and compute server
CN106951248A (en) Add method, device and the readable storage medium storing program for executing of code
CN110347493A (en) Processing method, display methods, device, equipment and the storage medium of page data
CN108595973A (en) Instruction determines method, apparatus control method, device and system
CN107678658A (en) Data inputting method and device for terminal device
CN109345242A (en) Key storage, update method, device, equipment and medium based on block chain
CN106844182A (en) Method, system and mobile terminal for recording user behavior
CN106182007A (en) A kind of card for intelligent robot pauses processing method and processing device
US10019072B2 (en) Imagined grid fingertip input editor on wearable device
CN113965313A (en) Model training method, device, equipment and storage medium based on homomorphic encryption
CN106383731B (en) A kind of data migration method and mobile terminal
CN114727032A (en) Signal source calling and controlling method and system
CN107770253A (en) Long-range control method and system
CN107862035A (en) Network read method, device, Intelligent flat and the storage medium of minutes
CN109560914A (en) Data ciphering method and device, storage medium, electronic equipment
KR20210033380A (en) Computing device that can provide virtual desktop environment based on user authentication
CN113158167B (en) Verification code implementation method, electronic equipment and computer readable storage medium
CN115550030A (en) Data encryption method and device, storage medium and electronic equipment
CN105389205B (en) A kind of information processing method and electronic equipment
CN114727033A (en) Signal source calling and controlling method and system

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200402

Address after: 510530 Guangdong city of Guangzhou province YUNPU Whampoa district four Road No. 6

Applicant after: GUANGZHOU SHIYUAN ELECTRONICS Co.,Ltd.

Address before: 510530, No. four, 6, Po Po Road, Yun Po Industrial Zone, Whampoa District, Guangzhou, Guangdong

Applicant before: GUANGZHOU SHIYUAN ELECTRONICS Co.,Ltd.

Applicant before: GUANGZHOU RUIXIN ELECTRONICS Co.,Ltd.

GR01 Patent grant
GR01 Patent grant