How to use the setEncryptionKey function from nconf
Find comprehensive JavaScript nconf.setEncryptionKey code examples handpicked from public code repositorys.
129 130 131 132 133 134 135 136 137 138
} } function validateEncryptionKey(d) { const key = d || ENCRYPTION_KEY; if (typeof key === 'undefined') { throw new Error('Encryption Key must be set - nconf.setEncryptionKey()'); } else if (key.length !== 32) { throw new Error('Encryption Key must be 256 bits (32 characters)'); } }
0
3
2