# 什么是哈希算法？常见的哈希算法有哪些？

## 什么是哈希算法？

哈希算法是一种将输入数据转换成固定长度输出（哈希值）的数学函数。它利用碰撞的思想，即不同的输入数据可能产生相同的哈希值，从而有效地检测数据完整性和唯一性。

## 常见的哈希算法

常见的哈希算法有很多，以下是其中几种：

MD5（Message Digest 5）：广泛用于文件完整性校验、数字签名等场景，输出128位哈希值。

SHA-1（Secure Hash Algorithm 1）：增强了MD5的安全性，输出160位哈希值。

SHA-256（Secure Hash Algorithm 256）：SHA-1的升级版本，安全性更高，输出256位哈希值。

SHA-512（Secure Hash Algorithm 512）：SHA-256的扩展版本，提供更高的安全性，输出512位哈希值。

bcrypt：一种密码哈希函数，专门用于存储密码，具有很高的抗暴力破解能力。

PBKDF2（Password-Based Key Derivation Function 2）：一种密钥派生函数，用于从密码生成加密密钥。

如有不明白或者不清楚的地方，请加入官方电报群：[**https://t.me/gtokentool**](https://t.me/gtokentool)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.gtokentool.com/qu-kuai-lian/shen-me-shi-ha-xi-suan-fa-chang-jian-de-ha-xi-suan-fa-you-na-xie.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
