πŸ’‘
cheatsheets
  • πŸ‘‹Introduction
  • πŸ‹Docker
  • πŸ’ͺBrute Force
    • Hydra
  • πŸ—οΈCryptography
    • Generate pub/priv key
  • 🐧Linux
    • Curl
    • Debian
    • Fail2Ban
    • Find
    • Grep & Co
    • Netstat
    • ps
    • pdfcrack
    • qpdf
    • Rsync
    • Scp
    • Tmux
    • Ufw
    • Vim
  • 🐍Python
    • Files Handling
    • Web
  • πŸ‘οΈRecon
    • Cewl
    • DNS
    • Host Discovery
    • nmap
    • Web
  • πŸ”Splunk
    • tstats
  • πŸ“‘SSH
  • πŸ•ΈοΈWeb
    • Gobuster
    • OWASP
    • SQLi
      • Resources
  • ⛏️Resources
    • πŸ“‘Cheatsheets
    • πŸ‹οΈTrainings
Powered by GitBook
On this page
  1. Cryptography

Generate pub/priv key

NSA recommends RSA key lenght of 3072 bits or longer.

SSH-KEYGEN

-t : algorithm (rsa, dsa, ecdsa) -b : key size in bits -f : filename where the key will be stored (normally, it prompts you)

ssh-keygen -t rsa -b 3072

The command above will generates 2 files, one will contains the private key and the other the public key that you can identify because it ends with .pub

PreviousCryptographyNextLinux

Last updated 1 year ago

πŸ—οΈ