练习:计算哈希值
In this exercise session, you are assigned to write some code to calculate cryptographic hashes. Write a program to calculate hashes of given text message: SHA-224, SHA-256, SHA3-224, SHA3-384, Keccak-384 and Whirlpool. Write your code in programming language of choice.
在本练习中,你需要编写一些代码来计算加密哈希值。需要编写程序来计算给定文本信息的不同哈希值:SHA-224,SHA-256,SHA3-224,SHA3-384,Keccak-384 和 Whirlpool。你可以自行选择编程语言来编写代码。
计算 SHA-224 哈希值
Input | Output |
hello | ea09ae9cc6768c50fcee903ed054556e5bfc8347907f12598aa24193 |
计算 SHA-256 哈希值
Input | Output |
hello | 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824 |
计算 SHA3-224 哈希值
Input | Output |
hello | b87f88c72702fff1748e58b87e9141a42c0dbedc29a78cb0d4a5cd81 |
计算 SHA3-384 哈希值
Input | Output |
hello | 720aea11019ef06440fbf05d87aa24680a2153df3907b23631e7177ce620fa1330ff07c0fddee54699a4c3ee0ee9d887 |
计算 Keccak-384 哈希值
Input | Output |
hello | dcef6fb7908fd52ba26aaba75121526abbf1217f1c0a31024652d134d3e32fb4cd8e9c703b8f43e7277b59a5cd402175 |
计算 Whirlpool (512 位) 哈希值
Input | Output |
hello | 0a25f55d7308eca6b9567a7ed3bd1b46327f0f1ffdc804dd8bb5af40e88d78b88df0d002a89e2fdbd5876c523f1b67bc44e9f87047598e7548298ea1c81cfd73 |
Hints: follow the Python examples, given earlier in this section or search in Internet.
提示:参考本节之前给出的 Python 示例,或在 Internet 上搜索。
Last updated