← 返回全部接口

文本工具

自主

接口描述

纯本地文本处理工具:哈希、编码解码、大小写转换、反转、随机串、UUID等

请求端点

GET api.php?type=tool

参数说明

参数名必须说明
tool 是 工具类型:md5、sha1、sha256、base64_encode、base64_decode、url_encode、url_decode、upper、lower、reverse、strlen、random、uuid
text 否 待处理文本(random/uuid类型不需要,其他类型必填,最大10000字符)
length 否 tool=random时随机串长度,1-1024,默认16
charset 否 tool=random时字符集:alnum(默认)、alpha、num、hex、symbol
tool 必须
工具类型:md5、sha1、sha256、base64_encode、base64_decode、url_encode、url_decode、upper、lower、reverse、strlen、random、uuid
text 可选
待处理文本(random/uuid类型不需要,其他类型必填,最大10000字符)
length 可选
tool=random时随机串长度,1-1024,默认16
charset 可选
tool=random时字符集:alnum(默认)、alpha、num、hex、symbol

调用示例

MD5加密: https://api.ikunwl.com/api.php?type=tool&tool=md5&text=hello
Base64编码: https://api.ikunwl.com/api.php?type=tool&tool=base64_encode&text=hello
随机字符串: https://api.ikunwl.com/api.php?type=tool&tool=random&length=32
生成UUID: https://api.ikunwl.com/api.php?type=tool&tool=uuid

💡 带密钥调用:在上方任意 URL 末尾追加 &key=你的密钥(或用请求头 Authorization: Bearer 你的密钥),即可解除免费限额。详见文档区顶部「密钥调用」说明。

返回数据

返回JSON格式数据,包含type、input(原始输入)、output(处理结果)

注意事项

  • 完全自主实现,无需第三方服务
  • 非UTF-8的Base64解码结果会以HEX形式返回,保证JSON兼容
  • text参数最大支持10000字符,防止滥用