SHA-256是否不敏感? [英] Is SHA-256 Case Insensitive?

查看:285
本文介绍了SHA-256是否不敏感?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行一个在应用程序的两侧使用SHA-256的服务 - 一个是服务器端PHP实现,另一个是客户端iOS实现。在两侧使用算法的结果是相同的字母数字字符串,除了所有字母在iOS上大写并且在PHP上小写的情况。它们是相同的字母数字字符串这一事实使我相信SHA-256不区分大小写,但我找不到任何支持我的假设的文档。有人可以给我看一些文件来证实吗?

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?

推荐答案

如果你指的是十六进制字符串输出,那么是的,那就是不区分大小写。它是二进制数据的文本表示。

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.

这篇关于SHA-256是否不敏感?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆