MD5和SHA有哪些字符库? [英] What pool of characters do MD5 and SHA have?

查看:118
本文介绍了MD5和SHA有哪些字符库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

MD5和SHA仅包含字母数字字符吗? (即,从A到Z,从0到9,还是不包括某些字符?)

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

推荐答案

原始格式的MD5和SHA哈希是二进制的,但是它们的常见表示形式是十六​​进制编码的字符串,其中包含字符[a-fA-F0-9].

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].

因此,如果这是您的意思,则字符"G-Z","g-z"被排除".

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

另一种较不常见的表示形式是Base64编码[0-9a-zA-Z +/].

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

这篇关于MD5和SHA有哪些字符库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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