interface TdataOptions {
    crypto?: IExtendedCryptoProvider;
    dataKey?: string;
    fs?: INodeFsLike;
    ignoreVersion?: boolean;
    le?: boolean;
    passcode?: string;
    path: string;
}

Properties

crypto?: IExtendedCryptoProvider

Crypto functions to use for encryption/decryption.

node:crypto-based implementation

dataKey?: string

Value of -key cli parameter. Defaults to data

File system to use for reading/writing.

import('node:fs/promises')

ignoreVersion?: boolean

Whether to ignore TDF version mismatch. If set to true, the version will be ignored and the file will be read as is, however the probability of errors is higher.

le?: boolean

Whether the host machine has LE processor (default true, try changing in case of errors)

passcode?: string

Local passcode

path: string

Full path to the tdata directory