Classes
Methods
clear()
Clear the properties from memory.
getDriveKey() → {Uint8Array|null}
Function returns the encryption key that will be used to encrypt/decrypt the files
Returns:
The drive key
- Type
- Uint8Array | null
getHashKey() → {Uint8Array|null}
Function returns the hash key that will be used to sign the file chunks
Returns:
The hash key
- Type
- Uint8Array | null
getIterations() → {number}
Get the number of iterations for the master key derivation.
Returns:
The iterations
- Type
- number
getMasterKey() → {Uint8Array|null}
Get the master key.
Returns:
The master key
- Type
- Uint8Array | null
setDriveKey(driveKey)
Set the drive key.
Parameters:
Name | Type | Description |
---|---|---|
driveKey |
Uint8Array | null | The drive key |
setHashKey(hashKey)
Set the hash key.
Parameters:
Name | Type | Description |
---|---|---|
hashKey |
Uint8Array | null | The hash key |
setIterations(iterations)
Set the number of iterations for the master key derivation.
Parameters:
Name | Type | Description |
---|---|---|
iterations |
number | The iterations |
setMasterKey(masterKey)
Set the master key.
Parameters:
Name | Type | Description |
---|---|---|
masterKey |
Uint8Array | null | The master key |