Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/llms-txt-hub / apps/web/lib/server-crypto.ts |
| Date | Not specified in source |
| Repository | Janady13/llms-txt-hub |
| Revision | e0f4bf978d4df168369c7601d9c5f5ea89e84377 |
| Branch | main |
| Path or archive member | apps/web/lib/server-crypto.ts |
| Original SHA-256 | 01133913898a2ed298c606e0849b8e0e3d154598911599f96a8f898b33cc71d3 |
| Git blob SHA | 9874e7e52514a7b6872bd56b85099d8af3148603 |
| Reading-copy SHA-256 | 01133913898a2ed298c606e0849b8e0e3d154598911599f96a8f898b33cc71d3 |
Recovered source transcript
Download complete source text ↓11 lines · 0.3 KB
import 'server-only'
import crypto from 'node:crypto'
/**
* Generate a hash of sensitive data for tracking without exposing the actual value
* Server-side only function
*/
export function hashSensitiveData(data: string): string {
return crypto.createHash('sha256').update(data).digest('hex').slice(0, 12)
}