Tech Rescue
  • Home
  • Acronyms
  • Cheat-Sheets
  • User Manuals

OpenSSL

How to generate 256-bit random hex strings in MacOS

The command openssl gives us everything we need. If you run openssl rand -hex 32 you will have an output like this: openssl rand -hex 32 fe2b27f8d12cc51729c6fcf43c8316b156eb86d539330ab8eb9b5641a5569df0 But what happens if we need more than one, say 20. We'll need to run seq 20 | xargs -n1 -I{} openssl rand -hex
Hector Perez May 6, 2025

How to generate RSA public and private keys with OpenSSL

Before anything, I assume that you already have OpenSSL installed in your PC. In case you don’t and you are a Windows you can download it from this URLs: * http://slproweb.com/products/Win32OpenSSL.html * http://gnuwin32.sourceforge.net/packages/openssl.htm I personally used the first one. After
Hector Perez Dec 22, 2017
Tech Rescue © 2025. Powered by Ghost