Skip to content

RandBytes

Andika Wasisto edited this page May 1, 2021 · 2 revisions
GET /api/randbytes

Parameters

Name Type Description
length integer Required. The number of bytes to generate.
format string Allowed values are base64 and hex. Default: base64

Example

curl 'http://192.168.1.100:8080/api/randbytes?length=10'

Response

Status: 200 OK
{
  "action": "randbytes",
  "length": 10,
  "format": "base64",
  "data": "FxLbWO6Q1Tvn7g=="
}
Clone this wiki locally