CN110738791A - Data information processing method, computer readable storage medium and data information processing system for server networked with vending machine - Google Patents

Data information processing method, computer readable storage medium and data information processing system for server networked with vending machine Download PDF

Info

Publication number
CN110738791A
CN110738791A CN201911056912.XA CN201911056912A CN110738791A CN 110738791 A CN110738791 A CN 110738791A CN 201911056912 A CN201911056912 A CN 201911056912A CN 110738791 A CN110738791 A CN 110738791A
Authority
CN
China
Prior art keywords
vending machine
data information
server
power failure
information processing
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.)
Pending
Application number
CN201911056912.XA
Other languages
Chinese (zh)
Inventor
傅峰峰
康志勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Fugang Wanjia Intelligent Technology Co Ltd
Original Assignee
Guangzhou Fugang Wanjia Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Fugang Wanjia Intelligent Technology Co Ltd filed Critical Guangzhou Fugang Wanjia Intelligent Technology Co Ltd
Priority to CN201911056912.XA priority Critical patent/CN110738791A/en
Publication of CN110738791A publication Critical patent/CN110738791A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
    • H04L9/0618Block ciphers, i.e. encrypting groups of characters of a plain text message using fixed encryption transformation
    • H04L9/0631Substitution permutation network [SPN], i.e. cipher composed of a number of stages or rounds each involving linear and nonlinear transformations, e.g. AES algorithms

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Control Of Vending Devices And Auxiliary Devices For Vending Devices (AREA)

Abstract

The invention provides data information processing method, computer readable storage medium and data information processing system of a server networked with a vending machine, wherein the method comprises the following steps of carrying out data information interaction with the vending machine, encrypting and storing data information uploaded by the vending machine before power failure recently if the vending machine is accidentally powered off, wherein the data information uploaded by the vending machine after power failure is recovered by the vending machine is not encrypted, so that the data information before power failure in the server and the data information after power failure is recovered are not confused, and the encrypted data information before power failure is not covered by the data information after power failure is recovered because the encryption process has the operation of providing confusion and nonlinear functions, so that the data information before power failure fed back to the vending machine by the server is accurate after the power failure is recovered by the vending machine.

Description

Data information processing method, computer readable storage medium and data information processing system for server networked with vending machine
Technical Field
The invention relates to the technical field of Internet of things, in particular to a data information processing method, a computer readable storage medium and a data information processing system of servers networked with vending machines.
Background
The vending machine on the market is usually networked with the server, so that the vending machine can perform data information interaction with the server in the normal working process, and series encryption and decryption can be performed on the data information in the data information interaction process so as to avoid interruption, interception, tampering or counterfeiting of the data information, thereby eliminating security threats.
If the vending machine fails to receive the data information uploaded by the vending machine in the transaction process (under the condition that transaction completion information is not received) in the transaction process due to accidental power failure, the server can automatically store the data information uploaded by the vending machine before power failure, the vending machine uploads the data information to the server after power is recovered, the data information before power failure and the data information after power is recovered are easily confused, or the data information before power failure is covered, so that the data information which is uploaded recently and fed back to the vending machine by the server is inaccurate before power failure.
Disclosure of Invention
The invention aims to solve the technical problem of how to ensure that the latest uploaded data information of the vending machine fed back by a server is accurate before power failure after the vending machine is powered off accidentally and power is recovered.
In order to solve the technical problem, the invention provides data information processing method of a server networked with a vending machine, which comprises the following steps:
A. performing data information interaction with the vending machine;
B. if the vending machine is accidentally powered off, storing the data information uploaded by the vending machine recently before the power off;
and B, encrypting and storing the data information uploaded by the vending machine recently before power failure.
Preferably, in the step B, the data information uploaded by the vending machine recently before power failure is stored by AES encryption.
Preferably, the method further comprises a step c, after the vending machine is informed of the unexpected power failure, if the vending machine is also informed of the power restoration, the pre-power-failure data information which is subjected to the encrypted storage is sent to the vending machine.
Preferably, the pre-power-off data information includes transaction information and vending machine status information.
The present invention also provides computer-readable storage media having stored thereon a computer program of a server networked with a vending machine, which computer program, when being executed by a processor, carries out the steps of the above-mentioned data-information processing method.
The invention also provides an data information processing system, which comprises a server and a vending machine, wherein the server and the vending machine mutually perform data information interaction, if the server learns that the vending machine is accidentally powered off, the server stores the data information uploaded by the vending machine recently before the power failure, the vending machine uploads the data information to the server again after power is recovered, and the server encrypts and stores the data information uploaded by the vending machine recently before the power failure.
Preferably, the server performs AES encryption storage on the data information uploaded by the vending machine recently before power failure through an AES encryption standard.
Preferably, after the server knows that the vending machine is powered off unexpectedly, if the server knows that the vending machine recovers the power, the server sends the pre-power-off data information which is encrypted and stored to the vending machine.
Preferably, the server performs AES encryption storage on the data information uploaded by the vending machine recently before power failure through the AES encryption standard; and after receiving the data information before power failure which is encrypted and stored, the vending machine carries out AES decryption on the data information before power failure which is encrypted and stored.
Preferably, the pre-power-off data information includes transaction information and vending machine status information.
The invention has the following beneficial effects: because the server encrypts the data information uploaded by the vending machine recently after knowing that the vending machine is powered off, and the data information uploaded by the vending machine to the server after power is recovered is not encrypted, the data information before the power is off and the data information after the power is recovered in the server cannot be mixed; and because the encryption process has the operation of providing confusion and nonlinear functions, the encrypted data information before power failure cannot be covered by the data information after power restoration, so that after the power of the vending machine is restored, the server feeds back the latest uploaded data information before power failure in the vending machine to be accurate.
Detailed Description
Exemplary embodiments of the present application will be described in more detail below. While exemplary embodiments of the present application have been described, it should be understood that the present application may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
In this embodiment, the data information processing system includes a server and a vending machine (e.g., a juice maker), and the vending machine is networked with the server, so that the vending machine performs data information interaction with the server during normal operation, and performs series encryption and decryption on data information during the data information interaction process to avoid interruption, interception, tampering or counterfeiting of the data information, thereby eliminating security threats.
If the vending machine fails to receive the data information uploaded by the vending machine in the transaction process (under the condition that transaction completion information is not received) in the time exceeding the specified time due to unexpected power failure in the transaction process, the server can automatically encrypt and store the data information uploaded by the vending machine recently before power failure, specifically, the server carries out AES encryption and storage on the data information before power failure through an AES encryption standard, and the data information before power failure comprises the transaction information and the status information of the vending machine.
The AES encryption standard is used in an encryption process for converting plaintext into ciphertext, in which plaintext of every 16 bytes of data information, ciphertext, and round key are represented by matrices of 4x4, where the round key is parameters, which is data input during conversion of plaintext into ciphertext or conversion of ciphertext into plaintext.
The AES encryption process involves four operations, byte Substitution, row shifting, column obfuscation, and round key plus byte Substitution, the function of which is to map the internal bytes of the 4x4 matrix to another bytes through an S-box (Substistition-box), the function of row shifting is to achieve a permutation between the internal bytes of the 4x4 matrix, the specific operations are that the th row is left-shifted, the second row is left-shifted circularly by 1 byte, the third row is left-shifted circularly by 2 bytes, and the fourth row is left-shifted circularly by 3 bytes, the column obfuscation is specifically to substitute the column vector of the internal bytes of the 4x4 matrix with an arithmetic property over a field GF (28), wherein the field GF (28) is a set of bits over which addition, subtraction, multiplication, and division operations can be performed without the result exceeding the field, the round key plus is specifically to XOR the input of each round with the round key times in the encryption process.
The AES encryption standard undergoes packets of xor encryption (round key addition), then diffusion of the packet obfuscation (the other three stages), followed by xor encryption (round key addition), and so on, alternating such that the AES encryption standard is very efficient and secure.
The automatic vending machine uploads the data information to the server again after recovering the electric power, the server feeds back the encrypted data information before power failure to the automatic vending machine, and the series encryption and decryption can be carried out in the feedback process.
Because the data information stored by the server and uploaded recently before the power failure is encrypted, and the data information uploaded by the vending machine to the server after the power is recovered is not encrypted, the data information before the power failure and the data information after the power is recovered in the server cannot be mixed; and because the data information before power failure after the AES encryption is carried out by the AES encryption standard is subjected to three operations of byte replacement, row shifting and column obfuscation to provide obfuscation and nonlinear functions, the encrypted data information before power failure cannot be covered by the data information after power recovery. Because data information before the outage and data information after recovering electric power can not obscure, and encrypted data information before the outage in the server can not be covered, so after the automatic vending machine recovers electric power, the server feeds back that the data information before the outage in the automatic vending machine is accurate, namely the data information before the outage after AES decryption in the automatic vending machine is accurate. Because the data information before power failure comprises the transaction information and the state information of the vending machine, the vending machine can display the state information before power failure after decrypting the data information before power failure, and can recover incomplete transaction orders.
Finally, it should be noted that the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the protection scope of the present application, and although the present application is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions can be made on the technical solutions of the present application without departing from the spirit and scope of the technical solutions of the present application.

Claims (10)

1. The data information processing method of the server networked with the vending machine comprises the following steps:
A. performing data information interaction with the vending machine;
B. if the vending machine is accidentally powered off, storing the data information uploaded by the vending machine recently before the power off;
the method is characterized in that: and B, encrypting and storing the data information uploaded by the vending machine recently before power failure.
2. The data information processing method of a server networked with a vending machine according to claim 1, wherein: and B, performing AES encryption storage on the data information uploaded by the vending machine recently before power failure through the AES encryption standard.
3. The data information processing method of a server networked with a vending machine according to claim 1, wherein: and C, after the unexpected power failure of the automatic vending machine is known, if the electric power of the automatic vending machine is also known to be recovered, sending the data information before the power failure, which is subjected to the encrypted storage, to the automatic vending machine.
4. The data information processing method of a server networked with a vending machine according to claim 1, wherein: the pre-power-off data information includes transaction information and vending machine state information.
Computer-readable storage medium , on which a computer program of a server networked with a vending machine is stored, wherein the computer program, when being executed by a processor, carries out the steps of the data-information processing method according to any of claims 1 to 4 as .
6, data information processing system, including mutual server and the vending machine that carries out the data information interaction, if the server learns the accidental outage of vending machine, keep the last data information of uploading before the outage of vending machine, the vending machine uploads data information again to the server after resuming electric power, characterized by that, the server encrypts the last data information of uploading before the outage of vending machine and keeps.
7. The data-information processing system of claim 6, wherein: and the server carries out AES encryption storage on the data information uploaded by the vending machine recently before power failure through the AES encryption standard.
8. The data-information processing system of claim 6, wherein: and after the server learns that the vending machine is powered off unexpectedly, if the server learns that the vending machine recovers the electric power, the server sends the encrypted and stored data information before the power failure to the vending machine.
9. The data-information processing system of claim 8, wherein: the server carries out AES encryption storage on the data information uploaded by the vending machine recently before power failure through the AES encryption standard; and after receiving the data information before power failure which is encrypted and stored, the vending machine carries out AES decryption on the data information before power failure which is encrypted and stored.
10. The internet of things embedded vending machine-based data information processing system as claimed in claim 6, wherein: the pre-power-off data information includes transaction information and vending machine state information.
CN201911056912.XA 2019-10-31 2019-10-31 Data information processing method, computer readable storage medium and data information processing system for server networked with vending machine Pending CN110738791A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911056912.XA CN110738791A (en) 2019-10-31 2019-10-31 Data information processing method, computer readable storage medium and data information processing system for server networked with vending machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911056912.XA CN110738791A (en) 2019-10-31 2019-10-31 Data information processing method, computer readable storage medium and data information processing system for server networked with vending machine

Publications (1)

Publication Number Publication Date
CN110738791A true CN110738791A (en) 2020-01-31

Family

ID=69271988

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911056912.XA Pending CN110738791A (en) 2019-10-31 2019-10-31 Data information processing method, computer readable storage medium and data information processing system for server networked with vending machine

Country Status (1)

Country Link
CN (1) CN110738791A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101183801A (en) * 2007-12-07 2008-05-21 杭州华三通信技术有限公司 Power-off protection method, system and device
CN101256606A (en) * 2007-02-19 2008-09-03 Arm有限公司 Securely saving a state of a processor during hibernation
CN108243181A (en) * 2017-10-09 2018-07-03 北京车和家信息技术有限公司 A kind of car networking terminal, data ciphering method and car networking server
CN108564420A (en) * 2018-05-02 2018-09-21 苏州玻泽物联网科技有限公司 A kind of intelligence retail trade system network
KR20190045498A (en) * 2017-10-24 2019-05-03 (주)신우엔그룹 Vending machine for issuable cash receipt, system for managing the vending machine and recognition machine for the vending machine

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101256606A (en) * 2007-02-19 2008-09-03 Arm有限公司 Securely saving a state of a processor during hibernation
CN101183801A (en) * 2007-12-07 2008-05-21 杭州华三通信技术有限公司 Power-off protection method, system and device
CN108243181A (en) * 2017-10-09 2018-07-03 北京车和家信息技术有限公司 A kind of car networking terminal, data ciphering method and car networking server
KR20190045498A (en) * 2017-10-24 2019-05-03 (주)신우엔그룹 Vending machine for issuable cash receipt, system for managing the vending machine and recognition machine for the vending machine
CN108564420A (en) * 2018-05-02 2018-09-21 苏州玻泽物联网科技有限公司 A kind of intelligence retail trade system network

Similar Documents

Publication Publication Date Title
US11728983B2 (en) Apparatus, system and method for generating and managing cryptographic keys for a symmetric cryptographic system
US7742601B2 (en) Encryption method using synchronized continuously calculated pseudo-random key
EP2697931B1 (en) Qkd key management system
CN111555872B (en) Communication data processing method, device, computer system and storage medium
CN105681031B (en) A kind of storage encryption gateway key management system and method
US8767959B2 (en) Block encryption
US9648026B2 (en) Cryptographic method for securely exchanging messages and device and system for implementing this method
CN103368975B (en) A kind of method and system of batch data safe transmission
CN111385084A (en) Key management method and device for digital assets and computer readable storage medium
CN104639561A (en) Method for safely obtaining secret key
CN104660590A (en) Cloud storage scheme for file encryption security
CN110505066A (en) A kind of data transmission method, device, equipment and storage medium
CN111639348A (en) Management method and device of database keys
CN112332940B (en) Data transmission method based on time synchronization network and related equipment
CN113890731A (en) Key management method, key management device, electronic equipment and storage medium
CN112947967B (en) Software updating method, blockchain application store and software uploading terminal
US8856520B2 (en) Secure key management
CN110738791A (en) Data information processing method, computer readable storage medium and data information processing system for server networked with vending machine
CN100596350C (en) Method for encrypting and decrypting industrial control data
CN102622561A (en) Enciphering and deciphering method for invoking data in software
CN111556003A (en) Dual network encryption system
CN117857060B (en) Two-dimensional code offline verification method, system and storage medium
CN116366283B (en) File secure transmission method based on symmetric encryption
CN113691373B (en) Anti-quantum key escrow system and method based on alliance block chain
CN116192428A (en) Information double encryption method, device and system applied to edge node device

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