mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
18 lines
403 B
Plaintext
18 lines
403 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# openssl prime
|
|
|
|
> OpenSSL command to compute prime numbers.
|
|
> More information: <https://docs.openssl.org/master/man1/openssl-prime/>.
|
|
|
|
- Generate a 2048bit prime number and display it in hexadecimal:
|
|
|
|
`openssl prime -generate -bits 2048 -hex`
|
|
|
|
- Check if a given number is prime:
|
|
|
|
`openssl prime {{number}}`
|