(storedKey: string)
| 36 | const BATCH_SIZE = 500 |
| 37 | |
| 38 | export function isEncryptedKey(storedKey: string): boolean { |
| 39 | return storedKey.includes(':') && storedKey.split(':').length === 3 |
| 40 | } |
| 41 | |
| 42 | export function hashApiKey(plainKey: string): string { |
| 43 | return createHash('sha256').update(plainKey, 'utf8').digest('hex') |
no outgoing calls
no test coverage detected