To Z85, base85 (toz85)
Description
Returns a Z85 string from the given byte array. This is the inverse of the From Z85, base85 (fromz85) operation. Check the Make byte array (mkboxar) operation for more information.
How does it work in the search window?
This operation needs only one argument:
Argument | Data type |
---|---|
Boxar mandatory | boxar(int1) |
The data type of the new column is string.
Example
We want to transform the values in our responseLength column in the siem.logtrust.web.activity
 table into byte arrays, and then transform them into Z85 strings.
First, use the Make byte array operation to add a new column that transforms the integer values in the responseLength column into byte arrays (byteArray column).
Then add a new column using the To Z85, base85 operation. The arguments needed are:
Boxar - byteArray column
Â
Click Create column and after applying the operation, you will see the following results:
How does it work in LINQ?
Use the operator select
... as
... and add the operation syntax to create the new column. This is the syntax of the To Z85, base85 operation:
toz85(boxar(int1))
Example
Copy the following LINQ script and try the previous example on the siem.logtrust.web.activity
 table.
from siem.logtrust.web.activity
select mkboxar(responseLength) as byteArray,
toz85(byteArray) as Z85string