increase key size for Sftp publickey to 4096 to close #1874. (Note: ED25519 is not supported by standard JSch at the moment)

This commit is contained in:
Philipp Crocoll
2021-12-20 09:14:39 +01:00
parent 07d3a4ef84
commit 2a3138ca76

View File

@@ -376,7 +376,7 @@ public class SftpStorage extends JavaFileStorageBase {
if (file.exists())
return public_key_filename;
int type = KeyPair.RSA;
KeyPair kpair = KeyPair.genKeyPair(jsch, type, 2048);
KeyPair kpair = KeyPair.genKeyPair(jsch, type, 4096);
kpair.writePrivateKey(key_filename);
kpair.writePublicKey(public_key_filename, "generated by Keepass2Android");