ai-comic-generation / src /lib /computeSecretFingerprint.ts
vumichien's picture
Upload folder using huggingface_hub
2728346
raw
history blame contribute delete
233 Bytes
import { computeSha256 } from "./computeSha256"
const secretFingerprint = `${process.env.SECRET_FINGERPRINT || ""}`
export function computeSecretFingerprint(input: string) {
return computeSha256(`${secretFingerprint}_${input}`)
}