Class: DriveKey

DriveKey()

Encryption keys and properties.

Constructor

new DriveKey()

Source:

Classes

DriveKey

Methods

clear()

Clear the properties from memory.
Source:

getDriveKey() → {Uint8Array|null}

Function returns the encryption key that will be used to encrypt/decrypt the files
Source:
Returns:
The drive key
Type
Uint8Array | null

getHashKey() → {Uint8Array|null}

Function returns the hash key that will be used to sign the file chunks
Source:
Returns:
The hash key
Type
Uint8Array | null

getIterations() → {number}

Get the number of iterations for the master key derivation.
Source:
Returns:
The iterations
Type
number

getMasterKey() → {Uint8Array|null}

Get the master key.
Source:
Returns:
The master key
Type
Uint8Array | null

setDriveKey(driveKey)

Set the drive key.
Parameters:
Name Type Description
driveKey Uint8Array | null The drive key
Source:

setHashKey(hashKey)

Set the hash key.
Parameters:
Name Type Description
hashKey Uint8Array | null The hash key
Source:

setIterations(iterations)

Set the number of iterations for the master key derivation.
Parameters:
Name Type Description
iterations number The iterations
Source:

setMasterKey(masterKey)

Set the master key.
Parameters:
Name Type Description
masterKey Uint8Array | null The master key
Source: