This is a created article in which the information may have evolved or changed.
Background is Jiangzi, to a string of strings did AES decryption obtained ciphertext, from the ciphertext to intercept the signature, and before the existence of the signature in the database to compare verification, has been unsuccessful, print two signature values out of view, the same ...
Google found this in a blog post, ' String values are compared Byte-wise (lexically). ' and ' zero value for String is ' "', probably means that the string is more than Compared to the corresponding byte array, after printing the two signed byte value, the mystery appears, the ciphertext in the signature value finally has 7,7,7,7,7] such value, visual inspection is the AES encryption when the encryption algorithm to complement the position caused by ...
Solution, according to the length of the signature value in the database to intercept the signature in the ciphertext, and then compare, and then ...
Recommended reading: AES graphic detail, Golang string comparison