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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user