CN106022151B - Information transferring method and device - Google Patents

Information transferring method and device Download PDF

Info

Publication number
CN106022151B
CN106022151B CN201610379387.5A CN201610379387A CN106022151B CN 106022151 B CN106022151 B CN 106022151B CN 201610379387 A CN201610379387 A CN 201610379387A CN 106022151 B CN106022151 B CN 106022151B
Authority
CN
China
Prior art keywords
file
picture file
information
network view
view control
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
CN201610379387.5A
Other languages
Chinese (zh)
Other versions
CN106022151A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610379387.5A priority Critical patent/CN106022151B/en
Publication of CN106022151A publication Critical patent/CN106022151A/en
Application granted granted Critical
Publication of CN106022151B publication Critical patent/CN106022151B/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/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)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure is directed to information transferring method and devices, the described method includes: when receiving the load request of network view control transmission in local service, by the local service using pre-arranged code algorithm by the corresponding information coding to be loaded of the load request at picture file, be concealed with the information to be loaded in the picture file;The picture file is transmitted to the network view control by the local service;When the network view control receives the picture file, the picture file is decoded according to default decoding algorithm by the network view control, the default decoding algorithm is the corresponding decoding algorithm of pre-arranged code algorithm, to realize Information hiding to be loaded in picture file, information to be loaded is transmitted by picture file, it avoids attacker from directly reading information to be loaded, improves the safety of transmission information.

Description

Information transferring method and device
Technical field
This application involves field of communication technology more particularly to information transferring methods and device.
Background technique
With in intelligent terminal application program it is universal, in intelligent terminal other than browser may browse through the page, more Application program be set to web page browsing function.When the function of web page access can be carried out to application setting, Can embed a network view control (Webview) in the application, application program can by network view control from Load and displayed page content in web server can also load simultaneously displayed page content from local service.
For the message transmitting procedure of network view control and local service, Webview according to IP address and port numbers to Local service sends load request, and local service passes through outer net hypertext transfer protocol (HTTP, Hyper Text Transfer Protocol the corresponding data to be loaded of load request) are transmitted to Webview.Believe since http protocol is transmitted with clear-text way Breath does not provide the data encryption of any mode, and attacker can read transmission information by interception transmitting message, to cause to pacify Full hidden danger.Alternatively, it is also possible to use security socket layer hypertext transfer protocol (HTTPS, Hyper Text Transfer Protocol over Secure Socket Layer) it is transmitted, SSL association can be added in HTTPS on the basis of HTTP View, SSL come the identity of authentication server, and the communication encryption between browser and server by certificate.However, due to being Private key is stored in local, attacker can obtain private key from local, to cause letter using local IP by local service Cease unsafe problem.
Summary of the invention
To overcome the problems in correlation technique, present disclose provides information transferring method and devices.
According to the first aspect of the embodiments of the present disclosure, a kind of information transferring method is provided, which comprises
When receiving the load request of network view control transmission in local service, by the local service using in advance If encryption algorithm at picture file, hides the corresponding information coding to be loaded of the load request in the picture file State information to be loaded;
The picture file is transmitted to the network view control by the local service;
When the network view control receives the picture file, by the network view control by the picture File is decoded according to default decoding algorithm, and the default decoding algorithm is the corresponding decoding algorithm of pre-arranged code algorithm.
Optionally, described using pre-arranged code algorithm that the corresponding information coding to be loaded of the load request is literary at picture Part, comprising:
The corresponding information to be loaded of the load request is converted into multi-system file;
It is corresponded to according to preset digital utilize number different in the multi-system file from the corresponding relationship of color value Color value replacement, obtain picture file.
Optionally, it is described according to it is preset it is digital from the corresponding relationship of color value by number different in the multi-system file Code is replaced using corresponding color value, obtains picture file, comprising:
The multi-system file is subjected to shifting processing;
Number different in file after displacement is utilized into corresponding face from the corresponding relationship of color value according to preset number Color value replacement, obtains picture file.
It is optionally, described to be decoded the picture file according to default decoding algorithm, comprising:
The picture file is converted into multi-system file according to the digital corresponding relationship with color value;
The multi-system file is converted into binary file;
The method also includes: the content in the binary file is rendered by the network view control, Obtain the page to be presented.
Optionally, described using pre-arranged code algorithm that the corresponding information coding to be loaded of the load request is literary at picture Part, comprising:
The corresponding information to be loaded of the load request is converted into multi-system file;
The multi-system file is subjected to shifting processing;
File after displacement is converted into two dimensional code using default two dimensional code encryption algorithm.
It is optionally, described that the picture file is transmitted to the network view control, comprising:
The picture file is transmitted to network view control using security socket layer hypertext transfer protocol.
According to the second aspect of an embodiment of the present disclosure, a kind of information carrying means is provided, comprising:
Coding module passes through when being configured as receiving the load request of network view control transmission in local service The local service utilizes pre-arranged code algorithm by the corresponding information coding to be loaded of the load request at picture file, described The information to be loaded is concealed in picture file;
Transmission module is configured as that the picture file is transmitted to the network view control by the local service Part;
Decoder module is configured as passing through the network when the network view control receives the picture file The picture file is decoded by view control according to default decoding algorithm, and the default decoding algorithm is pre-arranged code algorithm Corresponding decoding algorithm.
Optionally, the coding module includes:
First multi-system transform subblock is configured as receiving the load of network view control transmission in local service When request, the corresponding information to be loaded of the load request is converted by multi-system file by the local service;
First encoding submodule is configured as through the local service based on preset number pass corresponding with color value System replaces number different in the multi-system file using corresponding color value, obtains picture file.
Optionally, the first encoding submodule concrete configuration are as follows:
The multi-system file is subjected to shifting processing by the local service, according to preset digital and color value Corresponding relationship replaces number different in file after displacement using corresponding color value, obtains picture file.
Optionally, the decoder module includes:
Decoding sub-module is configured as passing through the net when the network view control receives the picture file The picture file is converted into multi-system file based on the digital corresponding relationship with color value by network view control, will be described Multi-system file is converted into binary file;
Described device further includes rendering module, and being configured as will be in the binary file by the network view control Content rendered, obtain the page to be presented.
Optionally, the coding module includes:
Second multi-system transform subblock is configured as receiving the load of network view control transmission in local service When request, the corresponding information to be loaded of the load request is converted by multi-system file by the local service;
Submodule is shifted, is configured as that the multi-system file is carried out shifting processing by the local service;
Second encoding submodule will be configured as after being shifted by the local service based on default two dimensional code encryption algorithm File is converted into two dimensional code.
Optionally, the transmission module includes:
Submodule is transmitted, is configured as being transmitted to the picture file using security socket layer hypertext transfer protocol Network view control.
According to the third aspect of an embodiment of the present disclosure, a kind of information carrying means is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
When receiving the load request of network view control transmission in local service, by the local service using in advance If encryption algorithm at picture file, hides the corresponding information coding to be loaded of the load request in the picture file State information to be loaded;
The picture file is transmitted to the network view control by the local service;
When the network view control receives the picture file, by the network view control by the picture File is decoded according to default decoding algorithm, and the default decoding algorithm is the corresponding decoding algorithm of pre-arranged code algorithm.
The technical scheme provided by this disclosed embodiment can include the following benefits:
The disclosure is calculated when receiving the load request of network view control transmission, through local service using pre-arranged code The corresponding information coding to be loaded of load request is transmitted to network view control at picture file, and by picture file by method, When network view control receives picture file, picture file is solved according to default decoding algorithm by network view control Code transmits information to be loaded by picture file, avoids attacker to realize Information hiding to be loaded in picture file Information to be loaded is directly read, the safety of transmission information is improved.
The disclosure is and corresponding with color value according to preset number by the way that information to be loaded is converted into multi-system file Relationship replaces number different in multi-system file using corresponding color value, to obtain the picture text with specific content Part can not read information to be loaded, to improve since attacker can not confirm number representated by each color value Transmit the safety of information.
Shifting processing can be carried out to multi-system file in the disclosure, since attacker can not know that multi-system file carries out Shifting processing and mobile digit and direction are crossed, therefore correct information to be loaded can not be obtained, to improve transmission process In information to be loaded safety.
The disclosure is not necessarily to multi-system file being reduced to information to be loaded in decoding, so that decoding efficiency is improved, and And directly rendered the content in binary file by network view control, it no longer needs to information to be loaded being converted to two System improves rendering efficiency.
Multi-system file is carried out shifting processing by the disclosure, and is turned file after displacement using default two dimensional code encryption algorithm Change two dimensional code into, since attacker can not know that multi-system file carried out shifting processing and mobile digit and direction, Attacker can not by general two dimensional code decoding algorithm obtain correctly information to be loaded, thus improve in transmission process to The safety of load information.
Picture file is transmitted to network view control using security socket layer hypertext transfer protocol by the disclosure, thus Improve the safety of information to be loaded in transmission process.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of disclosure flow chart of information transferring method shown according to an exemplary embodiment.
Fig. 2 is a kind of disclosure block diagram of information carrying means shown according to an exemplary embodiment.
Fig. 3 is the block diagram of the disclosure another information carrying means shown according to an exemplary embodiment.
Fig. 4 is the block diagram of the disclosure another information carrying means shown according to an exemplary embodiment.
Fig. 5 is the block diagram of the disclosure another information carrying means shown according to an exemplary embodiment.
Fig. 6 is the block diagram of the disclosure another information carrying means shown according to an exemplary embodiment.
Fig. 7 is a kind of disclosure block diagram for information carrying means shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
It is only to be not intended to be limiting the disclosure merely for for the purpose of describing particular embodiments in the term that the disclosure uses. The "an" of the singular used in disclosure and the accompanying claims book, " described " and "the" are also intended to including majority Form, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and wraps It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the disclosure A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from In the case where disclosure range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determination ".
Webview (network view control) is critically important component in Android and ios platform, can under Android platform With referred to as Webview, UI Webview is properly termed as under ios platform.Webview is a subclass of View class, for showing Show the page.Using Webview, application program (app) can embed a simple and powerful browser wherein.Webview Many application programming interfaces are provided, the JavaScript code in the Java code invoking web page of application program is allowed, The event for allowing the event information for obtaining other side or changing them, on the contrary it is still feasible.
Application program can be loaded from web server and displayed page content by network view control, can also be from Load and displayed page content in local service.For example, the app of PDF reader is directed to, in the app of local PDF reader When opening another local app content, need to access the local service in the app of another local by network view control, from Load and displayed page content in local service.
In network view control and the message transmitting procedure of local service, Webview according to IP address and port numbers to Local service sends load request, and the corresponding data to be loaded of load request can be transmitted to by local service by http protocol Webview.Since http protocol transmits information with clear-text way, attacker can read transmission letter by interception transmitting message Breath, to cause security risk.Alternatively, it is also possible to be transmitted using HTTPS agreement, although improving biography to a certain extent Defeated safety, but due to, using local IP, private key being stored in local, attacker can obtain from local in local service Private key is taken, to cause the unsafe problem of information.
In order to avoid the unsafe problem of information in transmission process, the disclosure provides a kind of information transferring method, this method Information hiding will be transmitted in picture file by pre-arranged code algorithm, to ensure that the safety of information in transmission process. As shown in Figure 1, Fig. 1 is a kind of disclosure flow chart of information transferring method shown according to an exemplary embodiment, this method It can be used in terminal, comprising the following steps:
In a step 101, when receiving the load request of network view control transmission in local service, pass through described Ground service is using pre-arranged code algorithm by the corresponding information coding to be loaded of the load request at picture file, the picture text The information to be loaded is concealed in part.
In a step 102, the picture file is transmitted to by the network view control by the local service.
In step 103, when the network view control receives the picture file, pass through the network view control The picture file is decoded by part according to default decoding algorithm, and the default decoding algorithm is that pre-arranged code algorithm is corresponding Decoding algorithm.
In the embodiment of the present disclosure, terminal can be smart phone, tablet computer, PDA (PersonalDigital Assistant, personal digital assistant), E-book reader, computer, smartwatch, the electronic equipments such as Intelligent bracelet.
It is provided with application program in the terminal, the function of the browsable page can be provided in application program, user can point Some webpage link address in application program is hit, application program can receive when acting on webpage link address in the application program The browsing instructions of generation arouse network view control according to browsing instructions, and network view control is according to address and port numbers to originally Ground service sends load request.Local service can determine that this adds when receiving the load request of network view control transmission It carries and requests corresponding information to be loaded.In order to avoid information to be loaded is read in transmission process by attacker, can use pre- If encryption algorithm is by information coding to be loaded at picture file.
Wherein, pre-arranged code algorithm can be the pre-set algorithm by Information hiding to be loaded in picture file, It at the purpose of picture file is in order to which Information hiding to be loaded in picture file, is passed through picture file by information coding to be loaded Information to be loaded is transmitted, attacker is avoided to directly read information to be loaded.
In an optional implementation, the corresponding information to be loaded of the load request can be converted into multi-system Number different in the multi-system file is utilized corresponding face from the corresponding relationship of color value according to preset number by file Color value replacement, obtains picture file.
Wherein, number is the number in multi-system.For example, number in binary system is 0 and 1, the number in octal system is 0~ 7.In this embodiment it is possible to which the default digital corresponding relationship with color value, different numbers are corresponding with different color values, use Different colours distinguish different numbers.Multi-system file can be binary file, octal system file, decimal system file or 16 into File processed.By taking binary file as an example, binary system is therefore the data with 0 and 1 the two numbers to indicate can be set in advance 0 the first corresponding color is set, the corresponding information to be loaded of load request is then being converted into multi-system by 1 corresponding second of color After file, the first color of the number 0 in multi-system file can be replaced, by 1 in multi-system file, second of face Color replacement, to obtain picture file.By taking octal system file as an example, octal system is the number with 0 to 7 this eight numbers to indicate According to, therefore eight digital are arranged can be corresponded into eight kinds of different colors in advance.
As it can be seen that in this embodiment, by the way that information to be loaded is converted into multi-system file, and according to it is preset it is digital with The corresponding relationship of color value replaces number different in multi-system file using corresponding color value, to obtain with specific The picture file of content can not read information carrying to be added since attacker can not confirm number representated by each color value Breath, to improve the safety of transmission information.
Correspondingly, can use pre-arranged code algorithm pair when being decoded by network view control to picture file The default decoding algorithm answered is decoded picture file.Default decoding algorithm can be the inverse process of pre-arranged code algorithm, then It is described to be decoded the picture file according to default decoding algorithm, comprising: to be closed according to the number is corresponding with color value The picture file is converted into multi-system file by system.
As one of implementation, multi-system file can be converted directly into information to be loaded, then by network Information to be loaded is converted to binary system and rendered by view control.
Since network view control needs information to be loaded being converted to binary system when being executed, it is based on this, as another Kind implementation, it is corresponding with color value according to the number when being decoded using default decoding algorithm to picture file The picture file is converted into multi-system file by relationship, when multi-system file is binary file, directly passes through the net Network view control renders the content in the binary file, obtains the page to be presented.When multi-system file is not two When binary file, the multi-system file is converted into binary file, and by the network view control by described two into Content in file processed is rendered, and the page to be presented is obtained.
As it can be seen that in decoding it is not necessary that multi-system file is reduced to information to be loaded, to improve decoding efficiency.
It is understood that malfunctioning, decoding in order to avoid network view control renders when information to be loaded is more complex When multi-system file can be first reduced to information to be loaded, then information to be loaded is converted into binary system and is rendered, specifically It sets according to demand.
In order to further improve the security, shifting processing can also be carried out to multi-system file, to improve information carrying to be added The safety of breath, then it is described using pre-arranged code algorithm that the corresponding information coding to be loaded of the load request is literary at picture Part, comprising: the corresponding information to be loaded of the load request is converted into multi-system file;The multi-system file is moved Position processing;Number different in file after displacement is utilized into corresponding color from the corresponding relationship of color value according to preset number Value replacement, obtains picture file.
Wherein, when multi-system file being carried out shifting processing, mobile digit and direction can be preset, for example, can be with It is redefined for left one.
As seen from the above-described embodiment, since attacker can not know that multi-system file carried out shifting processing and mobile position Several and direction, therefore correct information to be loaded can not be obtained, to improve the safety of information to be loaded in transmission process.
Correspondingly, can will be moved according to the shifting processing in cataloged procedure when being decoded by network view control File is reduced to multi-system file behind position.
It is described using pre-arranged code algorithm that the load request is corresponding to be added in another optional implementation Information carrying breath is encoded into picture file, comprising: the corresponding information to be loaded of the load request is converted into multi-system file;It utilizes The multi-system file is converted into two dimensional code by default two dimensional code encryption algorithm.
Wherein, two dimensional code is with certain specific geometric figure according to certain rules in the chequered with black and white figure of plane distribution Data symbol information is recorded, " 0 ", " 1 " bit stream for constituting computer-internal logical foundations are dexterously utilized in code compilation Concept, indicate text numerical information using several geometrical bodies corresponding with binary system.Also, every kind of code system is corresponding There is specific character set.
In order to ensure the safety of information to be loaded in transmission process, the default two dimensional code encryption algorithm in the embodiment is Customized two dimensional code encryption algorithm, the encryption algorithm are the encryption algorithms different from Versatile two-dimension code encryption algorithm, for example, In default two dimensional code encryption algorithm, set the corresponding character set of every kind of code system to and code system pair in Versatile two-dimension code encryption algorithm The character set answered is different.
As it can be seen that since attacker can not identify the two dimensional code by general two dimensional code decoding algorithm, to improve The safety of information to be loaded in transmission process.
It is described using pre-arranged code algorithm that the load request is corresponding to be added in another optional implementation Information carrying breath is encoded into picture file, comprising: the corresponding information to be loaded of the load request is converted into multi-system file;By institute It states multi-system file and carries out shifting processing;File after displacement is converted into two dimensional code using default two dimensional code encryption algorithm.
Wherein, presetting two dimensional code encryption algorithm can be conventional two dimensional code encryption algorithm, be also possible to customized two Tie up code encryption algorithm.
As seen from the above-described embodiment, since attacker can not know that multi-system file carried out shifting processing and mobile position Several and direction, therefore correct information to be loaded can not be obtained, to improve the safety of information to be loaded in transmission process.
It is understood that pre-arranged code algorithm can also be that other can be by Information hiding to be loaded in picture file Algorithm, this is no longer going to repeat them.
After being encoded into picture file, the picture file can be transmitted to by network view control by local service.For The safety in transmission process is improved, in the optional implementation, security socket layer hypertext is can use and passes Defeated agreement (HTTPS, Hyper Text Transfer Protocol over Secure Socket Layer) is by the picture File is transmitted to network view control, to improve the safety of information to be loaded in transmission process.
When network view control receives picture file, can by network view control by picture file according to default Decoding algorithm is decoded.Wherein, default decoding algorithm is the corresponding decoding algorithm of pre-arranged code algorithm.Network view control can To render decoded information, to show the page to be loaded.The specific rendering method of network view control can use Rendering method in the related technology, is not limited thereto.
As seen from the above-described embodiment, when receiving the load request of network view control transmission, pass through local service benefit The corresponding information coding to be loaded of load request is transmitted to network at picture file, and by picture file with pre-arranged code algorithm View control, when network view control receives picture file, by network view control by picture file according to default solution Code algorithm is decoded, to realize Information hiding to be loaded in picture file, transmits information carrying to be added by picture file Breath, avoids attacker from directly reading information to be loaded, improves the safety of transmission information.
Various technical characteristics in embodiment of above can be arbitrarily combined, as long as the combination between feature is not present Conflict or contradiction, but as space is limited, it is not described one by one, therefore the various technical characteristics in above embodiment is any It is combined the range for also belonging to this disclosure.
Corresponding with the embodiment of aforementioned information transmission method, the disclosure additionally provides information carrying means and its is applied Terminal embodiment.
As shown in Fig. 2, Fig. 2 is a kind of disclosure block diagram of information carrying means shown according to an exemplary embodiment, Described device includes: coding module 210, transmission module 220 and decoder module 230.
Wherein, coding module 210 are configured as receiving the load request of network view control transmission in local service When, it is using pre-arranged code algorithm that the corresponding information coding to be loaded of the load request is literary at picture by the local service Part is concealed with the information to be loaded in the picture file.
Transmission module 220 is configured as that the picture file is transmitted to the network view by the local service Control.
Decoder module 230 is configured as passing through the net when the network view control receives the picture file The picture file is decoded by network view control according to default decoding algorithm, and the default decoding algorithm is that pre-arranged code is calculated The corresponding decoding algorithm of method.
As seen from the above-described embodiment, when receiving the load request of network view control transmission, pass through local service benefit The corresponding information coding to be loaded of load request is transmitted to network at picture file, and by picture file with pre-arranged code algorithm View control, when network view control receives picture file, by network view control by picture file according to default solution Code algorithm is decoded, to realize Information hiding to be loaded in picture file, transmits information carrying to be added by picture file Breath, avoids attacker from directly reading information to be loaded, improves the safety of transmission information.
As shown in figure 3, Fig. 3 is the frame of the disclosure another information carrying means shown according to an exemplary embodiment Figure, for the embodiment on the basis of aforementioned embodiment illustrated in fig. 2, the coding module 210 includes: the first multi-system conversion submodule Block 211 and the first encoding submodule 212.
Wherein, the first multi-system transform subblock 211 is configured as receiving network view control hair in local service When the load request sent, the corresponding information to be loaded of the load request is converted by multi-system text by the local service Part.
First encoding submodule 212 is configured as through the local service based on preset digital pair with color value It should be related to and replace number different in the multi-system file using corresponding color value, obtain picture file.
As seen from the above-described embodiment, by the way that information to be loaded is converted into multi-system file, and according to it is preset it is digital with The corresponding relationship of color value replaces number different in multi-system file using corresponding color value, to obtain with specific The picture file of content can not read information carrying to be added since attacker can not confirm number representated by each color value Breath, to improve the safety of transmission information.
In an optional implementation, 212 concrete configuration of the first encoding submodule are as follows: pass through the local clothes The multi-system file is carried out shifting processing by business, after being shifted according to the preset digital corresponding relationship with color value in file Different numbers is replaced using corresponding color value, obtains picture file.
As seen from the above-described embodiment, can to multi-system file carry out shifting processing, due to attacker can not know mostly into File processed carried out shifting processing and mobile digit and direction, therefore can not obtain correct information to be loaded, to improve The safety of information to be loaded in transmission process.
As shown in figure 4, Fig. 4 is the frame of the disclosure another information carrying means shown according to an exemplary embodiment Figure, for the embodiment on the basis of aforementioned embodiment illustrated in fig. 3, the decoder module 230 includes decoding sub-module 231.
Wherein, decoding sub-module 231 are configured as when the network view control receives the picture file, are led to It crosses the network view control and the picture file is converted by multi-system text based on the digital corresponding relationship with color value The multi-system file is converted into binary file by part.
Described device further includes rendering module 240, is configured as by the network view control that the binary system is literary Content in part is rendered, and the page to be presented is obtained.
As seen from the above-described embodiment, in decoding it is not necessary that multi-system file is reduced to information to be loaded, to improve Decoding efficiency, and directly rendered the content in binary file by network view control, no longer needing to will be to be loaded Information is converted to binary system, improves rendering efficiency.
As shown in figure 5, Fig. 5 is the frame of the disclosure another information carrying means shown according to an exemplary embodiment Figure, for the embodiment on the basis of aforementioned embodiment illustrated in fig. 2, the coding module 210 includes: the second multi-system conversion submodule Block 213, displacement submodule 214 and the second encoding submodule 215.
Wherein, the second multi-system transform subblock 213 is configured as receiving network view control hair in local service When the load request sent, the corresponding information to be loaded of the load request is converted by multi-system text by the local service Part.
Submodule 214 is shifted, is configured as that the multi-system file is carried out shifting processing by the local service.
Second encoding submodule 215 is configured as being based on default two dimensional code encryption algorithm by the local service for shifting File is converted into two dimensional code behind position.
As seen from the above-described embodiment, multi-system file is subjected to shifting processing, and will using default two dimensional code encryption algorithm File is converted into two dimensional code after displacement, since attacker can not know that multi-system file carried out shifting processing and mobile digit And direction, therefore attacker can not obtain correctly information to be loaded by general two dimensional code decoding algorithm, to improve The safety of information to be loaded in transmission process.
As shown in fig. 6, Fig. 6 is the frame of the disclosure another information carrying means shown according to an exemplary embodiment Figure, for the embodiment on the basis of aforementioned embodiment illustrated in fig. 2, the transmission module 220 includes transmission submodule 221.
Wherein, submodule 221 is transmitted, is configured as using security socket layer hypertext transfer protocol that the picture is literary Part is transmitted to network view control.
As seen from the above-described embodiment, picture file is transmitted to network video using security socket layer hypertext transfer protocol Figure control, to improve the safety of information to be loaded in transmission process.
Correspondingly, the disclosure also provides a kind of information carrying means, described device includes processor;It is handled for storage The memory of device executable instruction;Wherein, the processor is configured to:
When receiving the load request of network view control transmission in local service, by the local service using in advance If encryption algorithm at picture file, hides the corresponding information coding to be loaded of the load request in the picture file State information to be loaded;
The picture file is transmitted to the network view control by the local service;
When the network view control receives the picture file, by the network view control by the picture File is decoded according to default decoding algorithm, and the default decoding algorithm is the corresponding decoding algorithm of pre-arranged code algorithm.
The specific details of the realization process of the function of each unit and effect, which are shown in, in above-mentioned apparatus corresponds to step in the above method Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual The purpose for needing to select some or all of the modules therein to realize disclosure scheme.Those of ordinary skill in the art are not paying Out in the case where creative work, it can understand and implement.
As shown in fig. 7, Fig. 7 is that the disclosure is shown according to an exemplary embodiment a kind of for information carrying means 700 Block diagram.The device 700 can be the mobile phone with routing function, computer, digital broadcast terminal, and information receiving and transmitting is set It is standby, game console, tablet device, Medical Devices, body-building equipment, the terminals such as personal digital assistant.
Referring to Fig. 7, device 700 may include following one or more components: processing component 702, memory 704, power supply Component 706, multimedia component 708, audio component 710, the interface 712 of input/output (I/O), sensor module 714, and Communication component 716.
The integrated operation of the usual control device 700 of processing component 702, such as with display, telephone call, data communication, phase Machine operation and record operate associated operation.Processing component 702 may include that one or more processors 720 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 702 may include one or more modules, just Interaction between processing component 702 and other assemblies.For example, processing component 702 may include multi-media module, it is more to facilitate Interaction between media component 708 and processing component 702.
Memory 704 is configured as storing various types of data to support the operation in device 700.These data are shown Example includes the instruction of any application or method for operating on device 700, contact data, and telephone book data disappears Breath, picture, video etc..Memory 704 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 706 provides electric power for the various assemblies of device 700.Power supply module 706 may include power management system System, one or more power supplys and other with for device 700 generate, manage, and distribute the associated component of electric power.
Multimedia component 708 includes the screen of one output interface of offer between described device 700 and user.One In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers Body component 708 includes a front camera and/or rear camera.When device 700 is in operation mode, such as screening-mode or When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 710 is configured as output and/or input audio signal.For example, audio component 710 includes a Mike Wind (MIC), when device 700 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched It is set to reception external audio signal.The received audio signal can be further stored in memory 704 or via communication set Part 716 is sent.In some embodiments, audio component 710 further includes a loudspeaker, is used for output audio signal.
I/O interface 712 provides interface between processing component 702 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock Determine button.
Sensor module 714 includes one or more sensors, and the state for providing various aspects for device 700 is commented Estimate.For example, sensor module 714 can detecte the state that opens/closes of device 700, and the relative positioning of component, for example, it is described Component is the display and keypad of device 700, and sensor module 714 can be with a group in detection device 700 or device 700 The position change of part, the existence or non-existence that user contacts with device 700,700 orientation of device or acceleration/deceleration and device 700 Temperature change.Sensor module 714 may include proximity sensor, be configured to examine without any physical contact Survey presence of nearby objects.Sensor module 714 can also include that optical sensor is used for such as CMOS or ccd image sensor It is used in imaging applications.In some embodiments, which can also include acceleration transducer, and gyroscope passes Sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 716 is configured to facilitate the communication of wired or wireless way between device 700 and other equipment.Device 700 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation In example, communication component 716 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 716 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 700 can be believed by one or more application specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 704 of instruction, above-metioned instruction can be executed by the processor 720 of device 700 to complete the above method.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
Wherein, when the instruction in the storage medium is executed by the processor, so that device 700 is able to carry out one kind Information transferring method, comprising:
When receiving the load request of network view control transmission in local service, by the local service using in advance If encryption algorithm at picture file, hides the corresponding information coding to be loaded of the load request in the picture file State information to be loaded.
The picture file is transmitted to the network view control by the local service.
When the network view control receives the picture file, by the network view control by the picture File is decoded according to default decoding algorithm, and the default decoding algorithm is the corresponding decoding algorithm of pre-arranged code algorithm.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.The disclosure is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.
The foregoing is merely the preferred embodiments of the disclosure, not to limit the disclosure, all essences in the disclosure Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of disclosure protection.

Claims (14)

1. a kind of information transferring method, which is characterized in that the method is applied to terminal, which comprises
The stage is transmitted in the information of network view control Webview and local service, if receiving network view in local service It is using pre-arranged code algorithm that the load request is corresponding to be added by the local service when load request that control is sent Information carrying breath is encoded into picture file, and the information to be loaded, the network view control and sheet are concealed in the picture file Ground service is set to terminal;
The picture file is transmitted to the network view control by the local service;
When the network view control receives the picture file, by the network view control by the picture file It is decoded according to default decoding algorithm, the default decoding algorithm is the corresponding decoding algorithm of pre-arranged code algorithm.
2. the method according to claim 1, wherein described utilize pre-arranged code algorithm by the load request pair The information coding to be loaded answered is at picture file, comprising:
The corresponding information to be loaded of the load request is converted into multi-system file;
Number different in the multi-system file is utilized into corresponding face from the corresponding relationship of color value according to preset number Color value replacement, obtains picture file.
3. according to the method described in claim 2, it is characterized in that, described according to the preset digital corresponding relationship with color value Number different in the multi-system file is replaced using corresponding color value, obtains picture file, comprising:
The multi-system file is subjected to shifting processing;
Number different in file after displacement is utilized into corresponding color value from the corresponding relationship of color value according to preset number Replacement obtains picture file.
4. according to the method described in claim 2, it is characterized in that, it is described by the picture file according to default decoding algorithm into Row decoding, comprising:
The picture file is converted into multi-system file according to the digital corresponding relationship with color value;
The multi-system file is converted into binary file;
The method also includes: the content in the binary file is rendered by the network view control, is obtained The page to be presented.
5. the method according to claim 1, wherein described utilize pre-arranged code algorithm by the load request pair The information coding to be loaded answered is at picture file, comprising:
The corresponding information to be loaded of the load request is converted into multi-system file;
The multi-system file is subjected to shifting processing;
File after displacement is converted into two dimensional code using default two dimensional code encryption algorithm.
6. the method according to claim 1, wherein described be transmitted to the network view for the picture file Control, comprising:
The picture file is transmitted to network view control using security socket layer hypertext transfer protocol.
7. a kind of information carrying means, which is characterized in that described device is applied to terminal, and described device includes:
Coding module is configured as transmitting the stage in the information of network view control Webview and local service, if local service In when receiving the load request of network view control transmission, by the local service using pre-arranged code algorithm will it is described plus It carries and requests corresponding information coding to be loaded at picture file, be concealed with the information to be loaded in the picture file, it is described Network view control and local service are set to terminal;
Transmission module is configured as that the picture file is transmitted to the network view control by the local service;
Decoder module is configured as passing through the network view when the network view control receives the picture file The picture file is decoded by control according to default decoding algorithm, and the default decoding algorithm is that pre-arranged code algorithm is corresponding Decoding algorithm.
8. device according to claim 7, which is characterized in that the coding module includes:
First multi-system transform subblock is configured as receiving the load request of network view control transmission in local service When, the corresponding information to be loaded of the load request is converted by multi-system file by the local service;
First encoding submodule, being configured as will based on the preset digital corresponding relationship with color value by the local service Different numbers is replaced using corresponding color value in the multi-system file, obtains picture file.
9. device according to claim 8, which is characterized in that the first encoding submodule concrete configuration are as follows:
The multi-system file is subjected to shifting processing by the local service, it is corresponding with color value according to preset number Relationship replaces number different in file after displacement using corresponding color value, obtains picture file.
10. device according to claim 8, which is characterized in that the decoder module includes:
Decoding sub-module is configured as passing through the network video when the network view control receives the picture file The picture file is converted into multi-system file based on the digital corresponding relationship with color value by figure control, by it is described mostly into File processed is converted into binary file;
Described device further includes rendering module, and being configured as will be in the binary file by the network view control Appearance is rendered, and the page to be presented is obtained.
11. device according to claim 7, which is characterized in that the coding module includes:
Second multi-system transform subblock is configured as receiving the load request of network view control transmission in local service When, the corresponding information to be loaded of the load request is converted by multi-system file by the local service;
Submodule is shifted, is configured as that the multi-system file is carried out shifting processing by the local service;
Second encoding submodule is configured as being based on default two dimensional code encryption algorithm by the local service for file after displacement It is converted into two dimensional code.
12. device according to claim 7, which is characterized in that the transmission module includes:
Submodule is transmitted, is configured as that the picture file is transmitted to network using security socket layer hypertext transfer protocol View control.
13. a kind of information carrying means characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
The stage is transmitted in the information of network view control Webview and local service, if receiving network view in local service It is using pre-arranged code algorithm that the load request is corresponding to be added by the local service when load request that control is sent Information carrying breath is encoded into picture file, and the information to be loaded, the network view control and sheet are concealed in the picture file Ground service is set to terminal;
The picture file is transmitted to the network view control by the local service;
When the network view control receives the picture file, by the network view control by the picture file It is decoded according to default decoding algorithm, the default decoding algorithm is the corresponding decoding algorithm of pre-arranged code algorithm.
14. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The step of any one of claim 1 to 6 the method is realized when execution.
CN201610379387.5A 2016-05-31 2016-05-31 Information transferring method and device Active CN106022151B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610379387.5A CN106022151B (en) 2016-05-31 2016-05-31 Information transferring method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610379387.5A CN106022151B (en) 2016-05-31 2016-05-31 Information transferring method and device

Publications (2)

Publication Number Publication Date
CN106022151A CN106022151A (en) 2016-10-12
CN106022151B true CN106022151B (en) 2019-08-30

Family

ID=57092083

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610379387.5A Active CN106022151B (en) 2016-05-31 2016-05-31 Information transferring method and device

Country Status (1)

Country Link
CN (1) CN106022151B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110533338A (en) * 2019-09-03 2019-12-03 杭州安恒信息技术股份有限公司 Public security system network security field surveillance inspection method and device
CN111091018B (en) * 2019-10-30 2023-08-22 武汉船用机械有限责任公司 Cross-network data interaction system and method
CN112118017B (en) * 2020-11-18 2021-02-19 北京一起教育科技有限责任公司 Serial number encoding and decoding methods and devices and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103020682A (en) * 2012-11-30 2013-04-03 中企永联数据交换技术(北京)有限公司 Two-dimension code identification generating device, two-dimension code identification recognition device and two-dimension code identification system of book
CN103559251A (en) * 2013-11-03 2014-02-05 广西师范大学 Data security protection method based on data hiding

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102285850B1 (en) * 2013-12-24 2021-08-05 삼성전자주식회사 User terminal apparatus, communication system and control method thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103020682A (en) * 2012-11-30 2013-04-03 中企永联数据交换技术(北京)有限公司 Two-dimension code identification generating device, two-dimension code identification recognition device and two-dimension code identification system of book
CN103559251A (en) * 2013-11-03 2014-02-05 广西师范大学 Data security protection method based on data hiding

Also Published As

Publication number Publication date
CN106022151A (en) 2016-10-12

Similar Documents

Publication Publication Date Title
US9717002B2 (en) Mobile device digital communication and authentication methods
EP3001640B1 (en) Secure information exchange methods and wearable device
CN103916233B (en) A kind of information ciphering method and device
CN104283876A (en) Operation authorization method and device
CN104852911B (en) Safe verification method, apparatus and system
KR101502249B1 (en) Device communication
CN104125055B (en) Encryption and decryption method and electronic equipment
CN103905903B (en) A kind of communication partner method of digital TV terminal, terminal and system
CN105260673A (en) Short message reading method and apparatus
CN106060098B (en) Processing method, processing unit and the processing system of identifying code
KR101642019B1 (en) Method, apparatus, program, and recording medium of verifying terminal
CN106022151B (en) Information transferring method and device
CN106204029B (en) The method and apparatus of two dimensional code payment
CN104993936A (en) Anti-counterfeiting validation method and device for filter element of water purifier and electronic equipment
CN104468581B (en) The method and device of login application program
KR20210071055A (en) Access control method and device, electronic device and storage medium
CN104537526B (en) Method, terminal and the device of numerical value transfer
CN109858274A (en) The method and apparatus that message is shown
US20170068946A1 (en) User equipment, service providing device, pos terminal, payment system including the same, control method thereof, and non-transitory computer-readable storage medium storing computer program recorded thereon
CN104219053A (en) Information displaying method, information concealing method and information concealing device
CN109246110A (en) data sharing method and device
JP2022508230A (en) Information transmission / reception method, device and system using QR code
CN104331672A (en) Method and device for performing confidential treatment on pictures upon bracelet
CN105120452B (en) Transmit the method, apparatus and system of information
CN106961664A (en) Communicate to connect control method, device and bluetooth keyboard

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant