MCPcopy
hub / github.com/chartbrew/chartbrew / isValidAES256Key

Function isValidAES256Key

server/modules/cbCrypto.js:35–38  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

33}
34
35function isValidAES256Key(key) {
36 // Check if the key length is 64 hexadecimal characters (which represents 32 bytes)
37 return /^[a-f0-9]{64}$/i.test(key);
38}
39
40function checkEncryptionKeys() {
41 const productionKey = process.env.CB_ENCRYPTION_KEY;

Callers 1

checkEncryptionKeysFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected