ai-clip-factory / src /lib /computeSecretFingerprint.ts
jbilcke-hf's picture
jbilcke-hf HF staff
initial commit
9a42933
raw
history blame
230 Bytes
import { computeSha256 } from "./computeSha256"
const secretFingerprint = `${process.env.FINGERPRINT_KEY || ""}`
export function computeSecretFingerprint(input: string) {
return computeSha256(`${secretFingerprint}_${input}`)
}