把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="
}
}
把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="
}
}