Quick Actions
openssl rand
Description
Generate random bytes.
Command
openssl rand
Examples
Generate random bytes
openssl rand -out random.bin 32
Generate random hex string
openssl rand -hex 32
Generate random base64
openssl rand -base64 32
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
-out |
string | No | Output file |
-hex |
string | No | Output in hexadecimal |
-base64 |
string | No | Output in base64 |
Command Info
Category:
Random Generation
Type:
Openssl
Views:
13
Status:
Active
Tags
random
bytes
generation