/sys/tools
The /sys/tools
endpoints are a general set of tools.
Generate Random Bytes
This endpoint returns high-quality random bytes of the specified length.
Method | Path |
---|---|
POST | /sys/tools/random(/:bytes) |
Parameters
bytes
(int: 32)
– Specifies the number of bytes to return. This value can be specified either in the request body, or as a part of the URL.format
(string: "base64")
– Specifies the output encoding. Valid options arehex
orbase64
.
Sample Payload
Sample Request
Sample Response
Hash Data
This endpoint returns the cryptographic hash of given data using the specified algorithm.
Method | Path |
---|---|
POST | /sys/tools/hash(/:algorithm) |
Parameters
algorithm
(string: "sha2-256")
– Specifies the hash algorithm to use. This can also be specified as part of the URL. Currently-supported algorithms are:input
(string: <required>)
– Specifies the base64 encoded input data.format
(string: "hex")
– Specifies the output encoding. This can be eitherhex
orbase64
.
Sample Payload
Sample Request
Sample Response