(key: string)
| 3 | import {getPreferences} from '@/config/preferences'; |
| 4 | |
| 5 | export function hashKey(key: string): string { |
| 6 | return createHash('sha256').update(key).digest('hex'); |
| 7 | } |
| 8 | |
| 9 | export function generateSecurityKey(): string { |
| 10 | return `gwk_${randomBytes(32).toString('base64url')}`; |
no outgoing calls
no test coverage detected