|
发表于 2025-5-26 22:56:38
|
显示全部楼层
浙江省湖州市
写的对不对不知道
|
b | 文本型 | | |
appId | 文本型 | | | | ipayCustomerUrl | 文本型 | | | | appKey | 文本型 | | | | dhVideoList_sha256 | 文本型 | | | | length | 整数型 | | | | timeStepLen | 整数型 | | | | time | 长整数型 | | | |
变量名 | 类 型 | 静态 | 数组 | 备 注 | combinedStr | 文本型 | | | hashBytes | 字节集 | | | hashBase64 | 文本型 | | |
combinedStr = appId + ipayCustomerUrl + appKey + 到大写 (dhVideoList_sha256 )hashBytes = 取数据摘要 (到字节集 (combinedStr )) hashBase64 = 编码_BASE64编码 (hashBytes ) 判断循环首 (取文本长度 (hashBase64 ) < 50 ) hashBytes = 取数据摘要 (到字节集 (hashBase64 ))  hashBase64 = hashBase64 + 编码_BASE64编码 (hashBytes ) 判断循环尾 ()返回 (d (length, hashBase64, timeStepLen, time )) |
a | 文本型 | | |
hash | 文本型 | | | | length | 整数型 | | | | rootString | 文本型 | | | |
变量名 | 类 型 | 静态 | 数组 | 备 注 | result | 文本型 | | | i | 整数型 | | | charsetLength | 整数型 | | | index | 整数型 | | |
charsetLength = 取文本长度 (rootString )result = “” 计次循环首 (length, i ) index = 十六进制到整数s (取文本中间 (hash, (i - 1 ) × 2 + 1, 2 )) % charsetLength  result = result + 取文本中间 (rootString, index + 1, 1 ) 计次循环尾 ()返回 (result )|
d | 文本型 | | |
length | 整数型 | | | | rootString | 文本型 | | | | index | 整数型 | | | | time | 长整数型 | | | |
变量名 | 类 型 | 静态 | 数组 | 备 注 | timeStepIndex | 长整数型 | | | hash | 文本型 | | |
timeStepIndex = time ÷ 300 + index hash = c (到文本 (timeStepIndex )) 返回 (a (hash, length, rootString )) 变量名 | 类 型 | 静态 | 数组 | 备 注 | digest | 字节集 | | | hexHash | 文本型 | | |
digest = 取数据摘要 (到字节集 (input )) hexHash = 字节集到十六进制s (digest )返回 (hexHash )变量名 | 类 型 | 静态 | 数组 | 备 注 | i | 整数型 | | | 结果 | 文本型 | | | 字节值 | 整数型 | | |
结果 = “” 计次循环首 (取字节集长度 (字节集数据 ), i ) 字节值 = 取字节集数据 (字节集数据, 1, i - 1 ) 结果 = 结果 + 取十六进制文本s (字节值 ) 计次循环尾 ()返回 (结果 )返回 (取文本右边 (“0” + 取十六进制文本s (字节值 ), 2 )) 变量名 | 类 型 | 静态 | 数组 | 备 注 | result | 整数型 | | | i | 整数型 | | |
hex = 到大写 (hex )result = 0 计次循环首 (取文本长度 (hex ), i ) result = result × 16 + 寻找文本 (“0123456789ABCDEF”, 取文本中间 (hex, i, 1 ), , 假) - 1 计次循环尾 ()返回 (result ) |
评分
-
查看全部评分
|