CN109688289A - A kind of transmission of image encryption, image decryption method and device - Google Patents
A kind of transmission of image encryption, image decryption method and device Download PDFInfo
- Publication number
- CN109688289A CN109688289A CN201811595385.5A CN201811595385A CN109688289A CN 109688289 A CN109688289 A CN 109688289A CN 201811595385 A CN201811595385 A CN 201811595385A CN 109688289 A CN109688289 A CN 109688289A
- Authority
- CN
- China
- Prior art keywords
- data
- fragment
- string
- binary characters
- serial number
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/44—Secrecy systems
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Multimedia (AREA)
- Information Transfer Between Computers (AREA)
- Facsimile Transmission Control (AREA)
Abstract
The present invention provides a kind of transmission of image encryption, image decryption method and device, wherein the image encryption transmission method includes: the fragment that multiple electronic images are respectively cut into the first predetermined number negotiated in advance with receiving end;The fragment is converted into string of binary characters, and each string of binary characters is encrypted, while marking the serial number of the fragment;By the corresponding storage of the serial number of the encrypted string of binary characters and the fragment into database;The data extracted from the database are transmitted to the receiving end in batches, wherein, out-of-order multiple strings of binary characters are carried in the data, therefore, it can solve and the problem for the safety difference transmitted after ciphered compressed is passed through to multiple images in the related technology, by the way that the cutting of multiple images fragmentates, fragment is converted into string of binary characters and encrypts and upset batchwise transfer after sequence, improves the safety of image transmitting.
Description
Technical field
The present invention relates to the communications fields, in particular to a kind of transmission of image encryption, image decryption method and device.
Background technique
Currently, the encrypted transmission of image is usually in the transmission of concerning security matters contract electronic image, the transmission of concerning security matters data electronic image etc.
Scene is widely applied.Papery data is fabricated to electronic image by scanning, then encrypted transmission, mesh are carried out to electronic image
Mark audient is decrypted after receiving electronic image, goes back original electronic image and obtains original version.
Ciphered compressed is carried out to multiple electronic images with tools of compression such as WinRAR or WinZip, will be compressed by internet
Packet is sent to target audience, and provides decompression password, and target audience obtains electronic image original version by decompression.It is this
Encryption file can be decrypted by the method for " Brute Force ", and " Brute Force " cost is relatively low, so safety ratio
It is poor.
For in the related technology to multiple images by the problem for the safety difference transmitted after ciphered compressed, not yet propose
Solution.
Summary of the invention
The embodiment of the invention provides a kind of transmission of image encryption, image decryption method and device, at least to solve correlation
The problem for the safety difference transmitted after ciphered compressed is passed through to multiple images in technology.
According to one embodiment of present invention, a kind of image encryption transmission method is provided, comprising:
Multiple electronic images are respectively cut into the fragment for the first predetermined number negotiated in advance with receiving end;
The fragment is converted into string of binary characters, and each string of binary characters is encrypted, while marking institute
State the serial number of fragment;
By the corresponding storage of the serial number of the encrypted string of binary characters and the fragment into database;
The data extracted from the database are transmitted to the receiving end in batches, wherein carry unrest in the data
Multiple strings of binary characters of sequence.
Optionally, each string of binary characters is carried out encryption includes:
Each string of binary characters is encrypted respectively by the number of electronic image and the serial number of the fragment.
Optionally, the database is arrived into the corresponding storage of the serial number of the encrypted string of binary characters and the fragment
In include:
The corresponding storage of the serial number of the encrypted string of binary characters and the fragment is arrived in a manner of data slot
In the database, wherein the 1st field of the data slot is the number of the electronic image, the data slot
2nd field is the serial number of the fragment, and the 3rd field of the data slot is the encrypted string of binary characters.
Optionally, include: to the data that receiving end transmission is extracted from the database in batches
Extract data from the database in batches, wherein carry the preparatory and receiving end in the data and negotiate
The second predetermined number string of binary characters, second predetermined number be less than first predetermined number;
Give the data batchwise transfer extracted to the receiving end.
Optionally, include: to the receiving end by the data batchwise transfer extracted
By the multiple strings of binary characters extracted every time by separators, a data are spliced into, respectively to spelling
The data after connecing are encrypted;
The encrypted data are transferred to the receiving end respectively.
Optionally, the method also includes:
While transmitting the data extracted from the database to the receiving end in batches, by mail or short
The Crypted password for encrypting the data is sent to the receiving end by letter mode.
Optionally, preparatory first predetermined number negotiated with the receiving end is respectively cut into multiple electronic images
Fragment include:
Multiple described electronic images are respectively cut into the fragment of first predetermined number by contour transverse direction;
Multiple described electronic images are respectively cut into the fragment of first predetermined number by wide longitudinal direction.
According to another embodiment of the invention, a kind of image decryption method is additionally provided, comprising:
The data of transmitting terminal batchwise transfer are received, out-of-order multiple strings of binary characters are carried in the data;
The data are pre-processed according to separators to obtain multiple data slots, wherein each data slot
One string of binary characters of middle carrying;
Respectively the multiple data slot is decoded to obtain according to the preparatory cipher mode negotiated with the transmitting terminal
Out-of-order the multiple string of binary characters;
The multiple string of binary characters is converted to the fragment of multiple electronic images;
The number of tiles for the every electronic image negotiated according to the serial number of the fragment and in advance with the transmitting terminal will
The fragment is reduced into multiple complete electronic images.
Optionally, described before being pre-processed to obtain multiple data slots to the data according to separators
Method further include:
In the case where the data pass through encryption, by the Crypted password that is previously received respectively to receiving
The data are decoded.
Optionally, the multiple data slot is solved respectively according to the preparatory cipher mode negotiated with the transmitting terminal
Code obtains out-of-order the multiple string of binary characters
From the 1st field of each data slot obtain electronic image number, the 2nd of each data slot the
A field obtains the serial number of the fragment;
According to the number of the electronic image of each data slot and the serial number of the fragment to each number
It is decoded to obtain the multiple string of binary characters according to the string of binary characters in the 3rd field of segment.
Optionally, the fragment for the every electronic image negotiated according to the serial number of the fragment and in advance with the transmitting terminal
The fragment is reduced into multiple complete electronic images by quantity
Classification processing is carried out to the multiple string of binary characters according to the number of the electronic image, wherein identical volume
It number is classified as one kind, the corresponding electronic image of every class, the quantity of every class string of binary characters is to negotiate in advance with the transmitting terminal
Number of tiles;
Respectively according to the serial number of the fragment by every class string of binary characters be reduced into complete electronic image obtain it is described
Multiple electronic images.
According to another embodiment of the invention, a kind of image encryption transmitting device is additionally provided, comprising:
Cutting module, for the first predetermined number negotiated in advance with receiving end to be respectively cut into multiple electronic images
Fragment;
Encrypting module for the fragment to be converted to string of binary characters, and each string of binary characters is added
It is close, while marking the serial number of the fragment;
Memory module, for data to be arrived in the corresponding storage of the serial number of the encrypted string of binary characters and the fragment
In library;
Transmission module, for transmitting the data extracted from the database to the receiving end in batches, wherein the number
Out-of-order multiple strings of binary characters are carried in.
Optionally, the encrypting module, is also used to
Each string of binary characters is encrypted respectively by the number of electronic image and the serial number of the fragment.
Optionally, the memory module, is also used to
The corresponding storage of the serial number of the encrypted string of binary characters and the fragment is arrived in a manner of data slot
In the database, wherein the 1st field of the data slot is the number of the electronic image, the data slot
2nd field is the serial number of the fragment, and the 3rd field of the data slot is the encrypted string of binary characters.
Optionally, the transmission module includes:
Extraction unit, for extracting data from the database in batches, wherein carried in the data in advance and institute
The string of binary characters of the second predetermined number of receiving end negotiation is stated, second predetermined number is less than described first predetermined
Number;
Transmission unit, for giving the data batchwise transfer extracted to the receiving end.
Optionally, the transmission unit, is also used to
By the multiple strings of binary characters extracted every time by separators, a data are spliced into, respectively to spelling
The data after connecing are encrypted;
The encrypted data are transferred to the receiving end respectively.
Optionally, described device further include:
Transmission unit, for the same of the data extracted from the database to receiving end transmission in batches
When, the Crypted password for encrypting the data is sent to by the receiving end by mail or short message mode.
Optionally, the cutting module, is also used to
Multiple described electronic images are respectively cut into the fragment of first predetermined number by contour transverse direction;
Multiple described electronic images are respectively cut into the fragment of first predetermined number by wide longitudinal direction.
According to another embodiment of the invention, a kind of image decrypting device is additionally provided, comprising:
Receiving module, for receiving the data of transmitting terminal batchwise transfer, carried in the data out-of-order multiple two into
Character string processed;
Processing module obtains multiple data slots for being pre-processed according to separators to the data, wherein
A string of binary characters is carried in each data slot;
First decoder module, for according in advance with the transmitting terminal negotiate cipher mode respectively to the multiple data
Segment is decoded to obtain out-of-order the multiple string of binary characters;
Conversion module, for the multiple string of binary characters to be converted to the fragment of multiple electronic images;
Recovery module, every electronic image for negotiating according to the serial number of the fragment and in advance with the transmitting terminal
Number of tiles the fragment is reduced into multiple complete electronic images.
Optionally, described device further include:
Second decoder module, for passing through the encryption being previously received in the case where the data pass through encryption
Password is respectively decoded the data received.
Optionally, first decoder module includes:
Acquiring unit, it is each described for obtaining the number of electronic image from the 1st field of each data slot
2nd field of data slot obtains the serial number of the fragment;
Decoding unit, for according to the number of the electronic image of each data slot and the serial number of the fragment
String of binary characters in 3rd field of each data slot is decoded to obtain the multiple string of binary characters.
Optionally, the recovery module includes:
Sort out unit, for carrying out at classification according to the number of the electronic image to the multiple string of binary characters
Reason, wherein identical number is classified as one kind, the corresponding electronic image of every class, the quantity of every class string of binary characters be in advance with
The number of tiles that the transmitting terminal is negotiated;
Reduction unit, for every class string of binary characters to be reduced into complete electronics according to the serial number of the fragment respectively
Image obtains multiple described electronic images.
According to still another embodiment of the invention, a kind of storage medium is additionally provided, meter is stored in the storage medium
Calculation machine program, wherein the computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
According to still another embodiment of the invention, a kind of electronic device, including memory and processor are additionally provided, it is described
Computer program is stored in memory, the processor is arranged to run the computer program to execute any of the above-described
Step in embodiment of the method.
Through the invention, multiple electronic images are respectively cut into the broken of the first predetermined number negotiated in advance with receiving end
Piece;The fragment is converted into string of binary characters, and each string of binary characters is encrypted, while marking the fragment
Serial number;By the corresponding storage of the serial number of the encrypted string of binary characters and the fragment into database;In batches to institute
It states receiving end and transmits the data extracted from the database, wherein carry out-of-order multiple binary words in the data
Therefore symbol string can solve in the related technology to multiple images by the problem for the safety difference transmitted after ciphered compressed, lead to
It crosses and the cutting of multiple images fragmentates, fragment is converted into string of binary characters and encrypt and upset batchwise transfer after sequence, raising
The safety of image transmitting.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is a kind of hardware block diagram of the mobile terminal of image encryption transmission method of the embodiment of the present invention;
Fig. 2 is the flow chart of image encryption transmission method according to an embodiment of the present invention;
Fig. 3 is the flow chart of image decryption method according to an embodiment of the present invention;
Fig. 4 is the block diagram of image encryption transmitting device according to an embodiment of the present invention;
Fig. 5 is the block diagram of image encryption transmitting device according to the preferred embodiment of the invention;
Fig. 6 is the block diagram of image decrypting device according to an embodiment of the present invention.
Specific embodiment
Hereinafter, the present invention will be described in detail with reference to the accompanying drawings and in combination with Examples.It should be noted that not conflicting
In the case of, the features in the embodiments and the embodiments of the present application can be combined with each other.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.
Embodiment 1
Embodiment of the method provided by the embodiment of the present application one can be in mobile terminal, terminal or similar fortune
It calculates and is executed in device.For running on mobile terminals, Fig. 1 is a kind of image encryption transmission method of the embodiment of the present invention
The hardware block diagram of mobile terminal, as shown in Figure 1, mobile terminal 10 may include that one or more (only shows one in Fig. 1
It is a) (processor 102 can include but is not limited to the processing of Micro-processor MCV or programmable logic device FPGA etc. to processor 102
Device) and memory 104 for storing data, optionally, above-mentioned mobile terminal can also include the biography for communication function
Transfer device 106 and input-output equipment 108.It will appreciated by the skilled person that structure shown in FIG. 1 is only to show
Meaning, does not cause to limit to the structure of above-mentioned mobile terminal.For example, mobile terminal 10 may also include it is more than shown in Fig. 1
Perhaps less component or with the configuration different from shown in Fig. 1.
Memory 104 can be used for storing computer program, for example, the software program and module of application software, such as this hair
The corresponding computer program of message method of reseptance in bright embodiment, processor 102 are stored in memory 104 by operation
Computer program realizes above-mentioned method thereby executing various function application and data processing.Memory 104 may include
High speed random access memory, may also include nonvolatile memory, as one or more magnetic storage device, flash memory or its
His non-volatile solid state memory.In some instances, memory 104 can further comprise remotely setting relative to processor 102
The memory set, these remote memories can pass through network connection to mobile terminal 10.The example of above-mentioned network includes but not
It is limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Transmitting device 106 is used to that data to be received or sent via a network.Above-mentioned network specific example may include
The wireless network that the communication providers of mobile terminal 10 provide.In an example, transmitting device 106 includes a Network adaptation
Device (Network Interface Controller, referred to as NIC), can be connected by base station with other network equipments to
It can be communicated with internet.In an example, transmitting device 106 can for radio frequency (Radio Frequency, referred to as
RF) module is used to wirelessly be communicated with internet.
Based on above-mentioned mobile terminal, a kind of image encryption transmission method is present embodiments provided, Fig. 2 is according to the present invention
The flow chart of the image encryption transmission method of embodiment, as shown in Fig. 2, the process includes the following steps:
The broken of the first predetermined number negotiated in advance with receiving end is respectively cut into multiple electronic images by step S202
Piece;
The fragment is converted to string of binary characters, and each string of binary characters is encrypted by step S204, together
When mark the serial number of the fragment;
The corresponding storage of the serial number of the encrypted string of binary characters and the fragment is arrived database by step S206
In;
Step S208 transmits the data extracted from the database, wherein in the data to the receiving end in batches
Carry out-of-order multiple strings of binary characters.
By step S202 to S208, first negotiated in advance with receiving end is respectively cut into multiple electronic images and is made a reservation for
The fragment of number;The fragment is converted into string of binary characters, and each string of binary characters is encrypted, is marked simultaneously
The serial number of the fragment;By the corresponding storage of the serial number of the encrypted string of binary characters and the fragment into database;
The data extracted from the database are transmitted to the receiving end in batches, wherein the multiple of random ordering are carried in the data
String of binary characters, therefore, it is poor by the safety transmitted after ciphered compressed to multiple images in the related technology to can solve
The problem of, by the way that the cutting of multiple images fragmentates, fragment is converted into string of binary characters and encrypts and upsets after sequence in batches
Transmission, improves the safety of image transmitting.
In the embodiment of the present invention, in above-mentioned steps S204, it is by the mode that each string of binary characters encrypts
It consults, can specifically include with receiving end in advance: by the number of electronic image and the serial number of the fragment to each institute
String of binary characters is stated to be encrypted respectively.
Optionally, above-mentioned steps S206 can specifically include:
The corresponding storage of the serial number of the encrypted string of binary characters and the fragment is arrived in a manner of data slot
In the database, wherein the 1st field of the data slot is the number of the electronic image, the data slot
2nd field is the serial number of the fragment, and the 3rd field of the data slot is the encrypted string of binary characters.
Optionally, above-mentioned steps S208 can specifically include:
S2081 extracts data from the database in batches, wherein the preparatory and reception is carried in the data
The string of binary characters for the second predetermined number negotiated is held, second predetermined number is less than first predetermined number;
S2082 gives the data batchwise transfer extracted to the receiving end.
Further, above-mentioned steps S2082 can specifically include:
By the multiple strings of binary characters extracted every time by separators, a data are spliced into, respectively to spelling
The data after connecing are encrypted;
The encrypted data are transferred to the receiving end respectively.
In an alternative embodiment, the number extracted from the database is being transmitted to the receiving end in batches
According to while, the Crypted password for encrypting the data is sent to by the receiving end by mail or short message mode, convenient for receive
Termination is decoded after receiving data according to Crypted password.
In the embodiment of the present invention, in above-mentioned steps S201, the cutting mode of image is consulted with receiving end in advance,
It can specifically include:
Multiple described electronic images are respectively cut into the fragment of first predetermined number by contour transverse direction;
Multiple described electronic images are respectively cut into the fragment of first predetermined number by wide longitudinal direction.
The electronic image encrypted transmission of the embodiment of the present invention can be can specifically include by software realization:
Electronic image sender installs the software tool to local computer, imports the electronic image original version for needing to transmit
This.
By every electronic image by the contour fragment for being cut transversely into both sides and arranging number, as both sides arrange this fragment number
It is 40, then electronic image will be cut into 40 fragments.Fragment is converted into string of binary characters, is arrived with AES encryption and storage
In database, while marking fragment sequence.Such as: Data Sheet Design is 3 fields, and the 1st field is electronic image number, such as
001;2nd field is electronic image fragment serial number, and such as F01, the 3rd field is the electronic image fragment binary word of encryption
Symbol, Advanced Encryption Standard (Advanced Encryption Standard, referred to as AES) Crypted password use " electronic image
The Crypted password of number+electronic image serial number ", i.e. " 001F01 ", data line every in this way is all different.
Data sequence is upset, then takes out data in batches, 100 row of every batch of or the configurable (electricity transmitted as needed
Subgraph quantity determines batch size, and avoiding batch too much causes decryption oprerations excessively cumbersome).
Data ", " separator that every batch of is taken out is spliced into a character string, using the outer layer Crypted password of configuration,
It is encrypted again with AES encryption method.
Target audience (i.e. receiving end) installs the software tool to local computer.
By multiple encrypted characters strings by batchwise transfer on line to target audience, while the software tool will be automatically by postal
Part or short message mode send outer layer Crypted password.
After target audience receives encrypted characters string, it is decrypted by inputting outer layer Crypted password.
After decryption, separates by ", " and pre-processed, the data line for being disturbed sequence can be obtained, and be stored in local data base.
By database sort, the data line of correct sequence is obtained.It is taken out in batches accordingly according still further to the number of tiles of agreement
The data line of quantity, such as arranging number of tiles is 40, then takes out by every 40 row data and reduction treatment is decrypted.
The data line that will be taken out in batches, use every row the 1st field and the splicing of the 2nd field contents as clear crytpographic key into
Row decryption, obtains the original binary character string of the 3rd field.The character string of 1 batch is subjected to image restoring, and in order
It is spliced into an electronic image, to obtain the original version of the electronic image.
Embodiment 2
The embodiment of the present invention, additionally provides a kind of image decryption method, and Fig. 3 is image decryption according to an embodiment of the present invention
The flow chart of method, as shown in Figure 3, comprising:
Step S302 receives the data of transmitting terminal batchwise transfer, out-of-order multiple binary words is carried in the data
Symbol string;
Step S304 pre-processes the data according to separators to obtain multiple data slots, wherein each
A string of binary characters is carried in data slot;
Step S306 respectively carries out the multiple data slot according to the preparatory cipher mode negotiated with the transmitting terminal
Decoding obtains out-of-order the multiple string of binary characters;
The multiple string of binary characters is converted to the fragment of multiple electronic images by step S308;
Step S310, it is according to the serial number of the fragment and broken with every electronic image of transmitting terminal negotiation in advance
The fragment is reduced into multiple complete electronic images by piece quantity.
In an alternative embodiment, before above-mentioned steps S304, the method can also include:
In the case where the data pass through encryption, by the Crypted password that is previously received respectively to receiving
The data are decoded.
In the embodiment of the present invention, above-mentioned steps S306 be can specifically include:
From the 1st field of each data slot obtain electronic image number, the 2nd of each data slot the
A field obtains the serial number of the fragment;
According to the number of the electronic image of each data slot and the serial number of the fragment to each number
It is decoded to obtain the multiple string of binary characters according to the string of binary characters in the 3rd field of segment.
In the embodiment of the present invention, above-mentioned steps S310 be can specifically include:
Classification processing is carried out to the multiple string of binary characters according to the number of the electronic image, wherein identical volume
It number is classified as one kind, the corresponding electronic image of every class, the quantity of every class string of binary characters is to negotiate in advance with the transmitting terminal
Number of tiles;
Respectively according to the serial number of the fragment by every class string of binary characters be reduced into complete electronic image obtain it is described
Multiple electronic images.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much
In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing
The part that technology contributes can be embodied in the form of software products, which is stored in a storage
In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate
Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Embodiment 3
Additionally provide a kind of image encryption transmitting device in the present embodiment, be applied to server, the device for realizing
Above-described embodiment and preferred embodiment, the descriptions that have already been made will not be repeated.As used below, term " module " can
To realize the combination of the software and/or hardware of predetermined function.Although device described in following embodiment is preferably come with software
It realizes, but the realization of the combination of hardware or software and hardware is also that may and be contemplated.
Fig. 4 is the block diagram of image encryption transmitting device according to an embodiment of the present invention, as shown in Figure 4, comprising:
Cutting module 42, for the first predetermined number negotiated in advance with receiving end to be respectively cut into multiple electronic images
Fragment;
Encrypting module 44 for the fragment to be converted to string of binary characters, and each string of binary characters is carried out
Encryption, while marking the serial number of the fragment;
Memory module 46, for number to be arrived in the corresponding storage of the serial number of the encrypted string of binary characters and the fragment
According in library;
Transmission module 48, for transmitting the data extracted from the database to the receiving end in batches, wherein described
Out-of-order multiple strings of binary characters are carried in data.
Optionally, the encrypting module 44, is also used to
Each string of binary characters is encrypted respectively by the number of electronic image and the serial number of the fragment.
Optionally, the memory module 46, is also used to
The corresponding storage of the serial number of the encrypted string of binary characters and the fragment is arrived in a manner of data slot
In the database, wherein the 1st field of the data slot is the number of the electronic image, the data slot
2nd field is the serial number of the fragment, and the 3rd field of the data slot is the encrypted string of binary characters.
Fig. 5 is the block diagram of image encryption transmitting device according to the preferred embodiment of the invention, as shown in figure 5, the transmission
Module 48 includes:
Extraction unit 52, for extracting data from the database in batches, wherein carried in the data in advance with
The string of binary characters for the second predetermined number that the receiving end is negotiated, second predetermined number are less than described first predetermined
Number;
Transmission unit 54, for giving the data batchwise transfer extracted to the receiving end.
Optionally, the transmission unit 54, is also used to
By the multiple strings of binary characters extracted every time by separators, a data are spliced into, respectively to spelling
The data after connecing are encrypted;
The encrypted data are transferred to the receiving end respectively.
Optionally, described device further include:
Transmission unit, for the same of the data extracted from the database to receiving end transmission in batches
When, the Crypted password for encrypting the data is sent to by the receiving end by mail or short message mode.
Optionally, the cutting module 42, is also used to
Multiple described electronic images are respectively cut into the fragment of first predetermined number by contour transverse direction;
Multiple described electronic images are respectively cut into the fragment of first predetermined number by wide longitudinal direction.
Embodiment 4
The embodiment of the present invention, additionally provides a kind of image decrypting device, and Fig. 6 is image decryption according to an embodiment of the present invention
The block diagram of device, as shown in Figure 6, comprising:
Receiving module 62 carries out-of-order multiple two for receiving the data of transmitting terminal batchwise transfer in the data
System character string;
Processing module 64 obtains multiple data slots for being pre-processed according to separators to the data,
In, a string of binary characters is carried in each data slot;
First decoder module 66, for according in advance with the transmitting terminal negotiate cipher mode respectively to the multiple number
It is decoded to obtain out-of-order the multiple string of binary characters according to segment;
Conversion module 68, for the multiple string of binary characters to be converted to the fragment of multiple electronic images;
Recovery module 610, every electronics for negotiating according to the serial number of the fragment and in advance with the transmitting terminal
The fragment is reduced into multiple complete electronic images by the number of tiles of image.
Optionally, described device further include:
Second decoder module, for passing through the encryption being previously received in the case where the data pass through encryption
Password is respectively decoded the data received.
Optionally, first decoder module 66 includes:
Acquiring unit, it is each described for obtaining the number of electronic image from the 1st field of each data slot
2nd field of data slot obtains the serial number of the fragment;
Decoding unit, for according to the number of the electronic image of each data slot and the serial number of the fragment
String of binary characters in 3rd field of each data slot is decoded to obtain the multiple string of binary characters.
Optionally, the recovery module 610 includes:
Sort out unit, for carrying out at classification according to the number of the electronic image to the multiple string of binary characters
Reason, wherein identical number is classified as one kind, the corresponding electronic image of every class, the quantity of every class string of binary characters be in advance with
The number of tiles that the transmitting terminal is negotiated;
Reduction unit, for every class string of binary characters to be reduced into complete electronics according to the serial number of the fragment respectively
Image obtains multiple described electronic images.
It should be noted that above-mentioned modules can be realized by software or hardware, for the latter, Ke Yitong
Following manner realization is crossed, but not limited to this: above-mentioned module is respectively positioned in same processor;Alternatively, above-mentioned modules are with any
Combined form is located in different processors.
Embodiment 5
The embodiments of the present invention also provide a kind of storage medium, computer program is stored in the storage medium, wherein
The computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
Optionally, in the present embodiment, above-mentioned storage medium can be set to store by executing based on following steps
Calculation machine program:
The fragment for the first predetermined number negotiated in advance with receiving end is respectively cut into multiple electronic images by S11;
The fragment is converted to string of binary characters, and each string of binary characters is encrypted, same markers by S12
Remember the serial number of the fragment;
S13, by the corresponding storage of the serial number of the encrypted string of binary characters and the fragment into database;
S14 transmits the data extracted from the database, wherein carry in the data to the receiving end in batches
There are out-of-order multiple strings of binary characters.
Optionally, in the present embodiment, above-mentioned storage medium may be also configured to store for executing following steps
Computer program:
S21 receives the data of transmitting terminal batchwise transfer, out-of-order multiple strings of binary characters is carried in the data;
S22 pre-processes the data according to separators to obtain multiple data slots, wherein each data
A string of binary characters is carried in segment;
S23 is respectively decoded the multiple data slot according to the preparatory cipher mode negotiated with the transmitting terminal
Obtain out-of-order the multiple string of binary characters;
The multiple string of binary characters is converted to the fragment of multiple electronic images by S24;
S25, the fragment number for the every electronic image negotiated according to the serial number of the fragment and in advance with the transmitting terminal
The fragment is reduced into multiple complete electronic images by amount.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (Read-
Only Memory, referred to as ROM), it is random access memory (Random Access Memory, referred to as RAM), mobile hard
The various media that can store computer program such as disk, magnetic or disk.
Embodiment 6
The embodiments of the present invention also provide a kind of electronic device, including memory and processor, stored in the memory
There is computer program, which is arranged to run computer program to execute the step in any of the above-described embodiment of the method
Suddenly.
Optionally, above-mentioned electronic device can also include transmission device and input-output equipment, wherein the transmission device
It is connected with above-mentioned processor, which connects with above-mentioned processor.
Optionally, in the present embodiment, above-mentioned processor can be set to execute following steps by computer program:
The fragment for the first predetermined number negotiated in advance with receiving end is respectively cut into multiple electronic images by S11;
The fragment is converted to string of binary characters, and each string of binary characters is encrypted, same markers by S12
Remember the serial number of the fragment;
S13, by the corresponding storage of the serial number of the encrypted string of binary characters and the fragment into database;
S14 transmits the data extracted from the database, wherein carry in the data to the receiving end in batches
There are out-of-order multiple strings of binary characters.
Optionally, in the present embodiment, above-mentioned processor may be also configured to execute following step by computer program
It is rapid:
S21 receives the data of transmitting terminal batchwise transfer, out-of-order multiple strings of binary characters is carried in the data;
S22 pre-processes the data according to separators to obtain multiple data slots, wherein each data
A string of binary characters is carried in segment;
S23 is respectively decoded the multiple data slot according to the preparatory cipher mode negotiated with the transmitting terminal
Obtain out-of-order the multiple string of binary characters;
The multiple string of binary characters is converted to the fragment of multiple electronic images by S24;
S25, the fragment number for the every electronic image negotiated according to the serial number of the fragment and in advance with the transmitting terminal
The fragment is reduced into multiple complete electronic images by amount.
Optionally, the specific example in the present embodiment can be with reference to described in above-described embodiment and optional embodiment
Example, details are not described herein for the present embodiment.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general
Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed
Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored
It is performed by computing device in the storage device, and in some cases, it can be to be different from shown in sequence execution herein
Out or description the step of, perhaps they are fabricated to each integrated circuit modules or by them multiple modules or
Step is fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific hardware and softwares to combine.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.It is all within principle of the invention, it is made it is any modification, etc.
With replacement, improvement etc., should all be included in the protection scope of the present invention.
Claims (15)
1. a kind of image encryption transmission method characterized by comprising
Multiple electronic images are respectively cut into the fragment for the first predetermined number negotiated in advance with receiving end;
The fragment is converted into string of binary characters, and each string of binary characters is encrypted, while being marked described broken
The serial number of piece;
By the corresponding storage of the serial number of the encrypted string of binary characters and the fragment into database;
The data extracted from the database are transmitted to the receiving end in batches, wherein random ordering is carried in the data
Multiple strings of binary characters.
2. the method according to claim 1, wherein by each string of binary characters carry out encryption include:
Each string of binary characters is encrypted respectively by the number of electronic image and the serial number of the fragment.
3. according to the method described in claim 2, it is characterized in that, by the encrypted string of binary characters and the fragment
The corresponding storage of serial number include: into the database
In a manner of data slot by the corresponding storage of the serial number of the encrypted string of binary characters and the fragment described in
In database, wherein the 1st field of the data slot is the number of the electronic image, the 2nd word of the data slot
Section is the serial number of the fragment, and the 3rd field of the data slot is the encrypted string of binary characters.
4. according to the method in any one of claims 1 to 3 in batches, which is characterized in that transmit to the receiving end from institute
Stating the data extracted in database includes:
Extract data from the database in batches, wherein preparatory the negotiated with the receiving end is carried in the data
The string of binary characters of two predetermined numbers, second predetermined number are less than first predetermined number;
Give the data batchwise transfer extracted to the receiving end.
5. according to the method described in claim 4, it is characterized in that, giving the data batchwise transfer extracted to the reception
End includes:
By the multiple strings of binary characters extracted every time by separators, be spliced into a data, respectively to splicing after
The data encrypted;
The encrypted data are transferred to the receiving end respectively.
6. according to the method described in claim 5, it is characterized in that, the method also includes:
While transmitting the data extracted from the database to the receiving end in batches, pass through mail or short message side
The Crypted password for encrypting the data is sent to the receiving end by formula.
7. according to claim 1 to method described in any one of 3,5,6, which is characterized in that cut multiple electronic images respectively
Being cut into the preparatory fragment with first predetermined number of receiving end negotiation includes:
Multiple described electronic images are respectively cut into the fragment of first predetermined number by contour transverse direction;
Multiple described electronic images are respectively cut into the fragment of first predetermined number by wide longitudinal direction.
8. a kind of image decryption method characterized by comprising
The data of transmitting terminal batchwise transfer are received, out-of-order multiple strings of binary characters are carried in the data;
The data are pre-processed according to separators to obtain multiple data slots, wherein take in each data slot
One string of binary characters of band;
Respectively the multiple data slot is decoded to obtain random ordering according to the preparatory cipher mode negotiated with the transmitting terminal
The multiple string of binary characters;
The multiple string of binary characters is converted to the fragment of multiple electronic images;
And it in advance will be described with the number of tiles of every electronic image of transmitting terminal negotiation according to the serial number of the fragment
Fragment is reduced into multiple complete electronic images.
9. according to the method described in claim 8, it is characterized in that, being pre-processed according to separators to the data
Before obtaining multiple data slots, the method also includes:
In the case where the data pass through encryption, by the Crypted password that is previously received respectively to described in receiving
Data are decoded.
10. according to the method described in claim 8, it is characterized in that, according to the preparatory cipher mode negotiated with the transmitting terminal
Being decoded to obtain out-of-order the multiple string of binary characters to the multiple data slot respectively includes:
The number of electronic image, the 2nd word of each data slot are obtained from the 1st field of each data slot
Section obtains the serial number of the fragment;
According to the number of the electronic image of each data slot and the serial number of the fragment to each data slice
String of binary characters in 3rd field of section is decoded to obtain the multiple string of binary characters.
11. according to the method described in claim 10, it is characterized in that, according to the serial number of the fragment and in advance with the hair
The fragment is reduced into multiple complete electronic images by the number of tiles for every electronic image that sending end is negotiated
Classification processing is carried out to the multiple string of binary characters according to the number of the electronic image, wherein identical number is returned
For one kind, the corresponding electronic image of every class, the quantity of every class string of binary characters is broken with transmitting terminal negotiation in advance
Piece quantity;
Respectively according to the serial number of the fragment by every class string of binary characters be reduced into complete electronic image obtain it is described multiple
Electronic image.
12. a kind of image encryption transmitting device characterized by comprising
Cutting module, for the broken of the first predetermined number negotiated in advance with receiving end to be respectively cut into multiple electronic images
Piece;
Encrypting module for the fragment to be converted to string of binary characters, and each string of binary characters is encrypted, together
When mark the serial number of the fragment;
Memory module, for database to be arrived in the corresponding storage of the serial number of the encrypted string of binary characters and the fragment
In;
Transmission module, for transmitting the data extracted from the database to the receiving end in batches, wherein in the data
Carry out-of-order multiple strings of binary characters.
13. a kind of image decrypting device characterized by comprising
Receiving module carries out-of-order multiple binary words for receiving the data of transmitting terminal batchwise transfer in the data
Symbol string;
Processing module obtains multiple data slots for being pre-processed according to separators to the data, wherein each
A string of binary characters is carried in data slot;
First decoder module, for according in advance with the transmitting terminal negotiate cipher mode respectively to the multiple data slot
It is decoded to obtain out-of-order the multiple string of binary characters;
Conversion module, for the multiple string of binary characters to be converted to the fragment of multiple electronic images;
Recovery module, every electronic image for negotiating according to the serial number of the fragment and in advance with the transmitting terminal it is broken
The fragment is reduced into multiple complete electronic images by piece quantity.
14. a kind of storage medium, which is characterized in that be stored with computer program in the storage medium, wherein the computer
Program is arranged to execute method described in any one of the claim 1 to 7,8 to 11 when operation.
15. a kind of electronic device, including memory and processor, which is characterized in that be stored with computer journey in the memory
Sequence, the processor are arranged to run the computer program to execute any one of the claim 1 to 7,8 to 11 institute
The method stated.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811595385.5A CN109688289B (en) | 2018-12-25 | 2018-12-25 | Image encryption transmission method, image decryption method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811595385.5A CN109688289B (en) | 2018-12-25 | 2018-12-25 | Image encryption transmission method, image decryption method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109688289A true CN109688289A (en) | 2019-04-26 |
CN109688289B CN109688289B (en) | 2021-05-25 |
Family
ID=66189463
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811595385.5A Active CN109688289B (en) | 2018-12-25 | 2018-12-25 | Image encryption transmission method, image decryption method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109688289B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111353166A (en) * | 2020-02-25 | 2020-06-30 | 南通大学 | Encryption method for converting picture into Chinese character |
CN111862412A (en) * | 2020-07-21 | 2020-10-30 | 上海茂声智能科技有限公司 | Picture obtaining method and device for intelligent door lock and intelligent door lock system |
CN111917630A (en) * | 2020-07-08 | 2020-11-10 | 北京艾智侠科技有限责任公司 | Data transmission method, data transmission device, storage medium and electronic device |
CN111914971A (en) * | 2020-08-17 | 2020-11-10 | 国网浙江杭州市余杭区供电有限公司 | Two-dimensional code-based data bidirectional transmission method and system |
CN112597520A (en) * | 2020-12-28 | 2021-04-02 | 德州正捷电气有限公司 | Data processing system and method based on data segmentation |
CN115378664A (en) * | 2022-08-02 | 2022-11-22 | 深圳市乐凡信息科技有限公司 | Data encryption transmission method, device, equipment and storage medium |
CN118586940A (en) * | 2024-08-07 | 2024-09-03 | 济宁职业技术学院 | Prefabricated vegetable quick traceability management system based on block chain |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI815298B (en) * | 2022-01-28 | 2023-09-11 | 莊連豪 | Anti-counterfeiting verification method and system for products |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100088268A1 (en) * | 2008-10-02 | 2010-04-08 | International Business Machines Corporation | Encryption of data fragments in a peer-to-peer data backup and archival network |
CN104954890A (en) * | 2015-06-24 | 2015-09-30 | 深圳市世文通文化传播有限公司 | Cloud storage image smashing and uniform sending method |
CN105049877A (en) * | 2015-06-02 | 2015-11-11 | 阔地教育科技有限公司 | Encryption method and device for live and recorded broadcast interaction system |
CN105279440A (en) * | 2015-07-06 | 2016-01-27 | 深圳市美贝壳科技有限公司 | Photo file encryption method |
CN107018132A (en) * | 2017-03-29 | 2017-08-04 | 宁夏煜隆科技有限公司 | Cloud platform encrypting and decrypting method and system based on open network environment |
CN108881276A (en) * | 2018-07-10 | 2018-11-23 | 北京贞宇科技有限公司 | Data encryption and transmission method |
-
2018
- 2018-12-25 CN CN201811595385.5A patent/CN109688289B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100088268A1 (en) * | 2008-10-02 | 2010-04-08 | International Business Machines Corporation | Encryption of data fragments in a peer-to-peer data backup and archival network |
CN105049877A (en) * | 2015-06-02 | 2015-11-11 | 阔地教育科技有限公司 | Encryption method and device for live and recorded broadcast interaction system |
CN104954890A (en) * | 2015-06-24 | 2015-09-30 | 深圳市世文通文化传播有限公司 | Cloud storage image smashing and uniform sending method |
CN105279440A (en) * | 2015-07-06 | 2016-01-27 | 深圳市美贝壳科技有限公司 | Photo file encryption method |
CN107018132A (en) * | 2017-03-29 | 2017-08-04 | 宁夏煜隆科技有限公司 | Cloud platform encrypting and decrypting method and system based on open network environment |
CN108881276A (en) * | 2018-07-10 | 2018-11-23 | 北京贞宇科技有限公司 | Data encryption and transmission method |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111353166A (en) * | 2020-02-25 | 2020-06-30 | 南通大学 | Encryption method for converting picture into Chinese character |
CN111353166B (en) * | 2020-02-25 | 2021-10-26 | 南通大学 | Encryption method for converting picture into Chinese character |
CN111917630A (en) * | 2020-07-08 | 2020-11-10 | 北京艾智侠科技有限责任公司 | Data transmission method, data transmission device, storage medium and electronic device |
CN111917630B (en) * | 2020-07-08 | 2022-09-02 | 北京蓝灯鱼智能科技有限公司 | Data transmission method, data transmission device, storage medium and electronic device |
CN111862412A (en) * | 2020-07-21 | 2020-10-30 | 上海茂声智能科技有限公司 | Picture obtaining method and device for intelligent door lock and intelligent door lock system |
CN111914971A (en) * | 2020-08-17 | 2020-11-10 | 国网浙江杭州市余杭区供电有限公司 | Two-dimensional code-based data bidirectional transmission method and system |
CN112597520A (en) * | 2020-12-28 | 2021-04-02 | 德州正捷电气有限公司 | Data processing system and method based on data segmentation |
CN112597520B (en) * | 2020-12-28 | 2023-01-17 | 中咨数据有限公司 | Data processing system and method based on data segmentation |
CN115378664A (en) * | 2022-08-02 | 2022-11-22 | 深圳市乐凡信息科技有限公司 | Data encryption transmission method, device, equipment and storage medium |
CN115378664B (en) * | 2022-08-02 | 2023-07-18 | 深圳市乐凡信息科技有限公司 | Data encryption transmission method, device, equipment and storage medium |
CN118586940A (en) * | 2024-08-07 | 2024-09-03 | 济宁职业技术学院 | Prefabricated vegetable quick traceability management system based on block chain |
Also Published As
Publication number | Publication date |
---|---|
CN109688289B (en) | 2021-05-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109688289A (en) | A kind of transmission of image encryption, image decryption method and device | |
CN100525180C (en) | Method and apparatus for logging wireless subscription to wireless terminal, wireless terminal and adscription system | |
CN104734844B (en) | Secure communication channel is established among the nodes to allow the inspection of encrypted communication performed between node | |
CN102103669A (en) | Automated security control using encoded security information | |
CN101145914B (en) | Automatic management of security information for a security token access device with multiple connections | |
RU2003135411A (en) | TERMINAL, DATA DISTRIBUTION SYSTEM CONTAINING SUCH TERMINAL, AND METHOD OF DIGITAL RELAY OF DIGITAL DATA | |
EP3337200A1 (en) | Short message transmission and reception method and device | |
CN102473214A (en) | Collaborative agent encryption and decryption | |
WO2008018318A1 (en) | Encryption device, decryption device, encryption method, and decryption method | |
CN114615354B (en) | Method and device for processing message | |
CN112883388B (en) | File encryption method and device, storage medium and electronic device | |
CN115695051B (en) | Data center transmission management system based on remote network platform architecture | |
CN107395603A (en) | The encryption and decryption method of control instruction transmission, terminal device/server | |
CN109831775A (en) | A kind of processor, baseband chip and SIM card information transmission method | |
CN104995866A (en) | Message authentication using a universal hash function computed with carryless multiplication | |
CN104883682A (en) | WIFI hotspot connecting and selecting method, communication terminal and system | |
CN115277094A (en) | Block chain-based communication method, terminal, system and storage medium | |
US9292992B2 (en) | Simplified smartcard personalization method, and corresponding device | |
CN113179229A (en) | Verification method, verification device, storage medium and electronic equipment | |
CN113114648A (en) | Method and device for realizing encrypted communication | |
CN111556496A (en) | Wireless communication method and transceiver | |
CN113302961B (en) | Safety beacon | |
CN113411283B (en) | Bidirectional authentication method, device and system | |
EP3070629A1 (en) | Method and device to protect a decrypted media content before transmission to a consumption device | |
CN113573306A (en) | 5G-fused heterogeneous networking gateway encryption 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |