资源说明:BV号与av号互转算法
Python
alphabet = 'fZodR9XQDSUm21yCkr6zBqiveYah8bt4xsWpHnJE7jL5VG3guMTKNPAwcF'
def dec(x):
r = 0
for i, v in enumerate([11, 10, 3, 8, 4, 6]):
r += alphabet.find(x[v]) * 58**i
return (r - 0x2_0840_07c0) ^ 0x0a93_b324
def enc(x):
x = (x ^ 0x0a93_b324) + 0x2_0840_07c
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。