Patent attributes
A two-dimensional code generation method includes: performing a multiple system barcode encoding on hidden information to generate multiple system barcode of hidden encoded information; selecting a corresponding two-dimensional code version to encode standard information to generate to-be-determined standard encoded information; selecting a corresponding mask to generate a bit matrix of a two-dimensional code, and extracting the number of black dots in the bit matrix; updating the selected mask and the two-dimensional code version according to the number of black dots and the length of the hidden encoded information to determine a finally selected mask and two-dimensional code version; generating standard encoded information according to the finally selected mask and two-dimensional code version; and generating a two-dimensional code according to the hidden encoded information and the standard encoded information.