mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 13:27:46 +00:00
Update cache.ts
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import { crypto } from "@app/lib/crypto/cryptography";
|
import { crypto } from "@app/lib/crypto/cryptography";
|
||||||
|
|
||||||
export const generateCacheKeyFromData = (data: unknown) =>
|
export const generateCacheKeyFromData = (data: unknown) =>
|
||||||
crypto.rawCrypto.
|
crypto.rawCrypto
|
||||||
.createHash("sha256")
|
.createHash("sha256")
|
||||||
.update(JSON.stringify(data))
|
.update(JSON.stringify(data))
|
||||||
.digest("base64")
|
.digest("base64")
|
||||||
|
|||||||
Reference in New Issue
Block a user