交换字节序

按字长反转字节顺序,在大端和小端表示之间转换。

输入: 文本结果: 文本

文本输入

工具选项

案例

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

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

输入

6fe28c0ab6f1b372c1a6a246ae63f74f931e8365e15a089c68d6190000000000

Expected answer

00 00 00 00 00 19 d6 68 9c 08 5a e1 65 83 1e 93 4f f7 63 ae 46 a2 a6 c1 72 b3 f1 b6 0a 8c e2 6f
数据格式
Hex
字组长度(字节)
32
填充不完整字组
On
An alphabet fixture

An alphabet fixture. Inspect exact byte compatibility. A legacy digest or a passing fixture does not establish that an algorithm is suitable for new security designs.

输入

6162636465666768

Expected answer

64 63 62 61 68 67 66 65
数据格式
Hex
字组长度(字节)
4
填充不完整字组
On
A repeated byte fixture

A repeated byte fixture. Inspect exact byte compatibility. A legacy digest or a passing fixture does not establish that an algorithm is suitable for new security designs.

输入

414141414141414142424242

Expected answer

41 41 41 41 41 41 41 41 42 42 42 42
数据格式
Hex
字组长度(字节)
4
填充不完整字组
On
A small counter fixture

A small counter fixture. Inspect exact byte compatibility. A legacy digest or a passing fixture does not establish that an algorithm is suitable for new security designs.

输入

000102030405060708090a0b0c0d0e0f

Expected answer

03 02 01 00 07 06 05 04 0b 0a 09 08 0f 0e 0d 0c
数据格式
Hex
字组长度(字节)
4
填充不完整字组
On
An odd-length fixture

An odd-length fixture. Inspect exact byte compatibility. A legacy digest or a passing fixture does not establish that an algorithm is suitable for new security designs.

输入

6f6464206279746573000000

Expected answer

20 64 64 6f 65 74 79 62 00 00 00 73
数据格式
Hex
字组长度(字节)
4
填充不完整字组
On
A short little-endian fixture

A short little-endian fixture. Inspect exact byte compatibility. A legacy digest or a passing fixture does not establish that an algorithm is suitable for new security designs.

输入

01000200

Expected answer

00 02 00 01
数据格式
Hex
字组长度(字节)
4
填充不完整字组
On

参数

参数默认值输入与选项
数据格式十六进制十六进制, 原始数据
字组长度(字节)4数字
填充不完整字组true开启或关闭

相关工具

数据格式

操作参考

查看原始技术文档 (English)