解密数据
最近更新时间: 2024年11月14日 03时10分10秒
公共工具
描述
通过EncryptedID获取明文信息
支持的模式
无需授权可直接访问
请求方法
POST
请求地址
https://api.tongji.edu.cn/v1/tool/encryption/decrypt_something
数据来源
请求体参数
参数名 | 类型 | 是否必须 | 备注 |
---|---|---|---|
key | string | 是 | 编码的密钥(必须是32位随机字符串,加密时使用的key) |
ciphertext | string | 是 | 编码的明文(Base64,加密时返回的ciphertext) |
返回参数
参数名 | 类型 | 备注 | 码表 |
---|---|---|---|
plaintext | STRING | 明文 |
请求示例
curl -X POST \
'https://api.tongji.edu.cn/v1/tool/encryption/decrypt_something' \
-H 'Content-Type: application/json' \
-d '{
"key": "",
"ciphertext": ""
}'
返回示例
{
"plaintext": "eyJ1c2VySWQiOiIyMDY2NjA5MyIsIm5hbWUiOiLkuo7mmagifQ=="
}