1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 23:02:07 +02:00
tldr/pages/common/openssl-prime.md
2020-12-04 17:11:39 -03:00

12 lines
321 B
Markdown

# openssl prime
> OpenSSL command to compute prime numbers.
> More information: <https://www.openssl.org/docs/manmaster/man1/openssl-prime.html>.
- 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}}`