Skip to content

Commit

Permalink
Merge pull request #326 from jack-w-shaw/3072-to-4096
Browse files Browse the repository at this point in the history
Increase key bit size to 4096
  • Loading branch information
jack-w-shaw authored Jan 24, 2023
2 parents b276d10 + 2514e11 commit 0617fc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ssh/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ var rsaGenerateKey = rsa.GenerateKey

// KeyBits is used to determine the number of bits to use for the RSA keys
// created using the GenerateKey function.
var KeyBits = 3072
var KeyBits = 4096

// GenerateKey makes a 3072 bit RSA no-passphrase SSH capable key. The bit
// GenerateKey makes a 4096 bit RSA no-passphrase SSH capable key. The bit
// size is actually controlled by the KeyBits var. The private key returned is
// encoded to ASCII using the PKCS1 encoding. The public key is suitable to
// be added into an authorized_keys file, and has the comment passed in as the
Expand Down

0 comments on commit 0617fc0

Please sign in to comment.