OPENSSL-PRIME(1ossl)

πŸ’– OPENSSL-PRIME πŸ’–

okay bestie, gather round β€” this is the openssl-prime page from the OpenSSL manual set (yes, section 1ossl, we're fancy), and it's literally just a prime number bestie. computing them, checking them, the whole vibe. let's go ✨


🌸 NAME 🌸

openssl-prime β€” compute prime numbers πŸ”’πŸ‘‘


πŸŽ€ SYNOPSIS πŸŽ€

openssl prime [-help] [-hex] [-generate] [-bits num] [-safe] [-provider
name] [-provider-path path] [-provparam [name:]key=value] [-propquery
propq] [-checks num] [number ...]

πŸ¦‹ DESCRIPTION πŸ¦‹

So what does this actually do? It checks if the numbers you hand it are prime. that's it. that's the gig πŸ’…

But here's the plot twist: if you don't give it any numbers on the command line, then you should be using the -generate flag to generate primes instead β€” according to whatever requirements the rest of the flags are giving off. main character energy fr fr 🌟


✨ OPTIONS ✨

  • -help β€” displays an option summary. your little map πŸ—ΊοΈ
  • -hex β€” generate hex output. hexadecimal slay πŸ”₯
  • -generate β€” generate a prime number. go make one, bestie ✨
  • -bits num β€” generate a prime with num bits. size matters, apparently πŸ“
  • -safe β€” when you use this with -generate, it generates a "safe" prime πŸ’–. and what does that mean? if the number generated is n, then it checks that (n-1)/2 is also prime. double prime, double iconic πŸ‘‘
  • -provider name, -provider-path path, -provparam [name:]key=value, -propquery propq β€” these ones live over in "Provider Options" in openssl(1), provider(7), and property(7). go read those if you wanna know the lore πŸ“š
  • -checks num β€” this parameter is ignored. πŸ’€ yeah. it does nothing. don't come for me, I don't make the rules

Copyright 2017-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>.


and that's a wrap, bestie 🫢 this lil page is from version 3.5.9, dated 2026-09-29 β€” go check those primes, you absolute icon πŸ§šβ€β™€οΈβ­

πŸ“¦ where this page comes from