| 1 | /* |
| 2 | * @Author: nevin |
| 3 | * @Date: 2025-01-20 16:36:41 |
| 4 | * @LastEditTime: 2025-02-26 14:41:25 |
| 5 | * @LastEditors: nevin |
| 6 | * @Description: |
| 7 | */ |
| 8 | import * as crypto from 'crypto'; |
| 9 | |
| 10 | export function generateSignature(sessionKey: string) { |
| 11 | const hmac = crypto.createHmac('sha256', sessionKey); |
| 12 | hmac.update(''); |
| 13 | return hmac.digest('hex'); |
| 14 | } |
| 15 |