2025-03-14 21:59:59 -06:00
|
|
|
# openssl prime
|
|
|
|
|
|
|
|
|
|
> OpenSSL command to compute prime numbers.
|
2026-02-18 06:55:01 -07:00
|
|
|
> More information: <https://docs.openssl.org/master/man1/openssl-prime/>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- 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}}`
|