Create Master File

1. createMasterFile(name: string, password: string)

Description: Creates a new master file, which serves as a secure container for content files. The master file is encrypted with AES-CBC using a key derived from the password via PBKDF2.

Parameters:

  • name: string - Unique name for the master file within the API key's scope (e.g., userVault or alice@example.com).

  • password: string - Password to encrypt the master file.

Example:

await ulda.createMasterFile('userVault', 'securePass123'); console.log('Master file created'); // Output: Master file created
API