SM3 哈希

对输入的准确字节计算摘要;算法或输出长度不同,结果也不同。

输入: 文本 (UTF-8) / 文件结果: 文本

文本输入

运行后查看结果

案例

Hash bitcoin genesis newspaper headline

Compare a digest of these exact bytes. A newline or a different Unicode normalization changes the checksum; legacy hashes are not suitable for new security designs.

输入

The Times 03/Jan/2009 Chancellor on brink of second bailout for banks

Expected answer

cbe7fc4c53f89ddfb88b35a572179697fdf0755d3f2d23596ff1232a4f479b1d
长度
256
轮数
64
Hash a registry credential from kubernetes documentation

Compare a digest of these exact bytes. A newline or a different Unicode normalization changes the checksum; legacy hashes are not suitable for new security designs.

输入

tiger:pass1234

Expected answer

74735b207bfabfdf946db52d3d9aa212b3df07c607aec82223da8a4d54d64904
长度
256
轮数
64
Hash a checksum-sensitive log line with a final newline

Compare a digest of these exact bytes. A newline or a different Unicode normalization changes the checksum; legacy hashes are not suitable for new security designs.

输入

event=deploy status=ready

Expected answer

925858fc5f1bbe49b60ab58d176e2b70e57bd5302e74a248fbede8e7c385ffb8
长度
256
轮数
64
Hash a french café in precomposed unicode

Compare a digest of these exact bytes. A newline or a different Unicode normalization changes the checksum; legacy hashes are not suitable for new security designs.

输入

café

Expected answer

b2fe1ec4225216994f60ec98b47b20539e234f3f9fdf39946d0cc0e9022ffa1d
长度
256
轮数
64
Hash a french café with a separate combining accent

Compare a digest of these exact bytes. A newline or a different Unicode normalization changes the checksum; legacy hashes are not suitable for new security designs.

输入

café

Expected answer

e792a668a29bdbaac5916657cd27cb1c0bb39537359833176e864059e1f25969
长度
256
轮数
64
Hash chinese text in a utf-8 request body

Compare a digest of these exact bytes. A newline or a different Unicode normalization changes the checksum; legacy hashes are not suitable for new security designs.

输入

你好,世界

Expected answer

c4b26ba9fb01e8a03884c6ceb3a6caae4b78ef8391bb8977e342662a32b04275
长度
256
轮数
64
Hash a literal plus and space inside a url parameter

Compare a digest of these exact bytes. A newline or a different Unicode normalization changes the checksum; legacy hashes are not suitable for new security designs.

输入

release notes+A/B?

Expected answer

50104768ed6d6b21f00cb06a912b650bfbced3fb773bd7473a15f3cb996c096b
长度
256
轮数
64
SM3 256 64

输入

Hello, World!

Expected answer

7ed26cbf0bee4ca7d55c1e64714c4aa7d1f163089ef5ceb603cd102c81fbcbc5
长度
256
轮数
64

相关工具

哈希

操作参考

查看原始技术文档 (English)