Methods
(async) toBuffer() → {Buffer}
Dump the stream content to a buffer. This will consume the stream.
Returns:
- the TDF ciphertext in Buffer form.
- Type
- Buffer
(async) toFile(filepath)
Dump the stream content to a local file. This will consume the stream.
Parameters:
Name | Type | Description |
---|---|---|
filepath |
string | the path of the local file to write TDF ciphertext to. |
(async) toString() → {string}
Dump the stream content to a string. This will consume the stream.
Returns:
- the TDF ciphertext in string form, encoded as binary.
- Type
- string