(payload: string)
| 360 | } |
| 361 | |
| 362 | export function hashPayload(payload: string): string { |
| 363 | const salt = getDeviceSalt(); |
| 364 | return createHash('sha256').update(salt).update(payload).digest('hex'); |
| 365 | } |
| 366 | |
| 367 | /** |
| 368 | * Rotate attempts.jsonl when it exceeds 10MB. Keeps 5 generations. |
no test coverage detected