I'm running a service that is using SHA-256 on two sides of the application - one is a server-side PHP implementation and the other is a client-side iOS implementation. The result of using the algorithm on both sides is the same alphanumeric string, except for the fact that all letters are capitalized on iOS and lower case on PHP. The fact that they are identical alphanumeric strings leads me to believe that SHA-256 is case insensitive, but I can't find any documentation supporting my assumption. Can someone show me some documentation to confirm this?
4条回答 默认 最新
dton37910 2012-08-09 21:18关注If you are referring to a hexadecimal string output, then yes, that is case insensitive. It is a textual representation of binary data.
http://en.wikipedia.org/wiki/Hexadecimal
The algorithm itself is most definitely case-sensitive.
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报