Class: SalmonDriveKey

SalmonDriveKey()

Encryption keys and properties.

Constructor

new SalmonDriveKey()

Source:

Classes

SalmonDriveKey

Methods

clear()

Clear the properties from memory.
Source:

getDriveKey()

Function returns the encryption key that will be used to encrypt/decrypt the files
Source:

getHashKey()

Function returns the hash key that will be used to sign the file chunks
Source:

getIterations()

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

getMasterKey()

Get the master key.
Source:
Returns:

setDriveKey()

Set the drive key.
Parameters:
Name Type Description
this.driveKey The drive key
Source:

setHashKey(hashKey)

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

setIterations(iterations)

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

setMasterKey(masterKey)

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