tvbox支持根据用户细分
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import { randomBytes } from 'crypto';
|
||||
|
||||
/**
|
||||
* 生成TVBox订阅token
|
||||
* 使用crypto生成32位随机hex字符串
|
||||
*/
|
||||
export function generateTvboxToken(): string {
|
||||
return randomBytes(16).toString('hex');
|
||||
}
|
||||
Reference in New Issue
Block a user