From dd7d87dd269cae171dc5650d534a63219b5d915d Mon Sep 17 00:00:00 2001 From: Jeppe Reinhold Date: Tue, 17 Jun 2025 21:33:46 +0200 Subject: [PATCH] default to sha256 (instead of md5a9 for file system cache --- code/core/src/common/utils/file-cache.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/core/src/common/utils/file-cache.ts b/code/core/src/common/utils/file-cache.ts index d3ee7dd4ecac..608df695e2ec 100644 --- a/code/core/src/common/utils/file-cache.ts +++ b/code/core/src/common/utils/file-cache.ts @@ -35,7 +35,7 @@ export class FileSystemCache { constructor(options: FileSystemCacheOptions = {}) { this.prefix = (options.ns || options.prefix || '') + '-'; - this.hash_alg = options.hash_alg || 'md5'; + this.hash_alg = options.hash_alg || 'sha256'; this.cache_dir = options.basePath || join(tmpdir(), randomBytes(15).toString('base64').replace(/\//g, '-')); this.ttl = options.ttl || 0;