TOKEN 说明

我们使用md5作为密钥的主要生成方式,密钥的有效期为24小时;数据交换时,仅使用前8位字符作为密钥。

TOKEN 产生方法

root@openwrt:/tmp# echo -n "key" > key.txt
root@openwrt:/tmp# md5sum key.txt | awk '{print $1}'
3c6e0b8a9c15224a8228b9a98ca1531d

TOKEN 使用方法

-- Verify with {TOKEN}
 GET: /cgi-bin/arn?signin&z={TOKEN}

Result:
{"error":"none","auth":{"token":"005eac","valid":"yes"}}


-- Get {TOKEN} after signin
 GET: /cgi-bin/arn?signin
POST: username=admin&password=6harmonics

Result:
{"error":"none","auth":{"token":"005eac","valid":"yes"}}

results matching ""

    No results matching ""