0

Got sha1 checksum in hexadecimal format(40 characters). Need help to convert hex chars to byte array in mysql.

Thanks.

1

There is no such thing as an "array" in MySQL.

Perhaps you want UNHEX(SHA1("stuff")) ? That will provide a 20 bytes, and could be stored, for example, into a BINARY(20) column.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.