Logic of loading the SMATDB key

When the SMATDB file is encrypted, the SMATDB key in siteInfo is decrypted and is used to access the file.

  • If SMATDB key is empty or the key does not exist, then the site name is used as the password for access.
  • If an encrypted database file cannot be accessed, then a Password Prompt dialog box opens for specifying the correct password.
  • If an encrypted database cannot be accessed, then its messages are not shown in the GUI.

When the SMATDB file is un-encrypted, it can be directly accessed.

Migration from pre-6.2 to later versions

During migration from versions earlier than 6.2 to later versions, hcirootcopy sets the site name as SMATDB key.