> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xray.cool/llms.txt
> Use this file to discover all available pages before exploring further.

# md5

> `md5`函数主要是用来计算字符串的md5值

## 函数原型

`func md5(v1 string/bytes) string`

### 参数介绍

| 参数名称 | 参数介绍  |
| ---- | ----- |
| v1   | 待加密数据 |

## 举例

| 待转换数据            | 转换语句                  | 输出结果                               |
| ---------------- | --------------------- | ---------------------------------- |
| `admin`          | `md5("admin")`        | `21232f297a57a5a743894a0e4a801fc3` |
| `b"ad" + b"min"` | `md5(b"ad" + b"min")` | `21232f297a57a5a743894a0e4a801fc3` |
