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