SHA-2 雜湊

使用 SHA-2 系列密碼学雜湊函數計算固定長度的消息摘要。

輸入: 文本 (UTF-8) / 檔案結果: 文本

文本輸入

執行後查看結果

範例

Reproduce the Bitcoin genesis block ID from its 80-byte header — step 1

Demonstrate double SHA-256, hashing decoded bytes rather than hash text, and displayed byte order.

輸入

af42031e805ff493-genesis-header.bin

80 bytes

下載

Expected answer

af42031e805ff493a07341e2f74ff58149d22ab9ba19f61343e2c86c71c5d66d
大小
256
轮數
64
轮數
160
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

a6d72baa3db900b03e70df880e503e9164013b4d9a470853edc115776323a098
大小
256
轮數
64
轮數
160
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

fe1f3840edb48d1963b07a5b04f83f00974f59b69f772f6c9c2bd88aac916eee
大小
256
轮數
64
轮數
160
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

df94d052096ee71cc4419345b2e30243654d10ac9003c622abbd43b1c7bc27d3
大小
256
轮數
64
轮數
160
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

850f7dc43910ff890f8879c0ed26fe697c93a067ad93a7d50f466a7028a9bf4e
大小
256
轮數
64
轮數
160
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

81ef060bcd98adc7824eb5c1ada83c32491b16018e11e79f00ab9d09e04b015a
大小
256
轮數
64
轮數
160
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

46932f1e6ea5216e77f58b1908d72ec9322ed129318c6d4bd4450b5eaab9d7e7
大小
256
轮數
64
轮數
160
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

16f7aa833be1220104d7ac509ffee6620ef273a290d920e4551eaa5c02a5e470
大小
256
轮數
64
轮數
160
SHA2 224

輸入

Hello, World!

Expected answer

72a23dfa411ba6fde01dbfabf3b00a709c93ebf273dc29e2d8b261ff
大小
224
轮數
64
轮數
160
SHA2 224: Complex bytes

輸入

186ffd22c3af83995afa4a03.bin

20 bytes

下載

Expected answer

66c166eba2529ecc44a7b7b218a64a8e3892f873c8d231e8e3c1ef3d
大小
224
轮數
64
轮數
160

相关工具

雜湊

操作参考

查看原始技术文檔 (English)