OpenSSL.vip

Cryptography and SSL/TLS Toolkit

NAME

openssl-rand - generate pseudo-random bytes

SYNOPSIS

openssl rand [-help] [-out file] [-base64] [-hex] [-engine id] [-rand files] [-writerand file] [-provider name] [-provider_path path] num

DESCRIPTION

This command generates num random bytes using a cryptographically secure pseudo random number generator (CSPRNG).

The random bytes are generated using the RAND_bytes(3), RAND_DRBG(7).

OPTIONS

-help

Print out a usage message.

-out file

Write to file instead of standard output.

-base64

Perform base64 encoding on the output.

-hex

Show the output as a hex string.

-engine id

See -rand files, -writerand file

See -provider name

-provider_path path

See SEE ALSO

RAND_bytes(3), RAND_DRBG(7)

COPYRIGHT

Copyright 2000-2020 The OpenSSL Project Authors. All Rights Reserved.

Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at https://www.openssl.org/source/license.html.

关闭