Self-encrypting self-checking two-dimensional code encoding and decoding method

2015 
The invention discloses a self-encrypting self-checking two-dimensional code encoding and decoding method, which comprises the steps of: selecting a record randomly from a data record sheet corresponding to a currently-used secret key batch number, wherein the record comprises salt and a secret key; connecting the salt and a product serial number into a character string, encrypting the character string via the secret key by using a symmetric key algorithm to obtain a ciphertext; connecting the key batch number, the salt and the ciphertext into a character string serving as a parameter; and combining a given address and the parameter to obtain a Url, which serves as a required two-dimensional code information code. The self-encrypting self-checking two-dimensional code encoding and decoding method can realize the self-encrypting self-checking encoding and decoding of two-dimensional code information, so that the two-dimensional code information is difficult to forge, and can directly judge whether the two-dimensional code is forged according to the two-dimensional code information.
    • Correction
    • Source
    • Cite
    • Save
    • Machine Reading By IdeaReader
    0
    References
    0
    Citations
    NaN
    KQI
    []