API接口文档

POST https://huandao124f4.icu/interface/api/encrypt

把old_string中的字符串加密,并把结果从new_string输出

请求参数

参数 类型 必填 说明
old_string string 需要加密的字符串
new_string string 输入空字符串即可,写其它字符串也没用

示例请求

        POST https://huandao124f4.icu/interface/api/encrypt
        请求体
        {"old_string": "我行走在我的梦中",
        "new_string":""}

成功响应

200 OK
Content-Type: application/json

{
    "status": "success",
    "data": {
        "old_string": "我行走在我的梦中",
        "new_string": "/d7p2ZPq2Jhbmi7SuI69WwWdo86comsET2Qw6wMJlHA="
    }
}
    

POST https://huandao124f4.icu/interface/api/decrypt

把new_string中的字符串解密,并把结果从old_string输出

请求参数

参数 类型 必填 说明
old_string string 输入空字符串即可,写其它字符串也没用
new_string string 需要解密的字符串

示例请求

        POST https://huandao124f4.icu/interface/api/decrypt
        请求体
        {"old_string": "",
        "new_string":"/d7p2ZPq2Jhbmi7SuI69WwWdo86comsET2Qw6wMJlHA="}

成功响应

200 OK
Content-Type: application/json

{
    "status": "success",
    "data": {
        "old_string": "我行走在我的梦中",
        "new_string": "/d7p2ZPq2Jhbmi7SuI69WwWdo86comsET2Qw6wMJlHA="
    }
}