What pool of characters do MD5 and SHA have?

时光怂恿深爱的人放手 提交于 2020-03-17 10:02:20

问题


Does MD5 and SHA only contain alphanumeric characters? (i.e., from A to Z and 0 to 9, or do they exclude some characters?)


回答1:


MD5 and SHA hashes in raw form are binary, however their common representation is a hex-encoded string, which contains characters [a-fA-F0-9].

So if this is what you meant, then characters G-Z, g-z are "excluded".

Another, less common, representation is Base64 encoding [0-9a-zA-Z+/].



来源:https://stackoverflow.com/questions/12618321/what-pool-of-characters-do-md5-and-sha-have

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!