code: function getEncryptionKey (key) {
    key = key || process.env.ENCRYPTION_KEY
    if (!key) throw new Error('encryption key not found')
  
    const cryptoKey = crypto.createHash('sha256').update(key).digest()
    return cryptoKey
  }
docs: Gets the encryption key from the environment,
  and hash with SHA256 (ensures length). Falls back
  to the environment variable if no key is specified.
  @param {string} key - The key to use
  @return {string} The encryption key