From cbb96397d1f5cffef7984b08a426646aaea93e5b Mon Sep 17 00:00:00 2001 From: Fabian Henneke Date: Tue, 1 Sep 2020 10:12:27 +0200 Subject: Add Keystore backend for SSH public key authentication (#1070) --- app/src/main/res/layout/activity_ssh_keygen.xml | 53 ++++++++-------------- app/src/main/res/layout/folder_dialog_fragment.xml | 2 +- app/src/main/res/layout/fragment_show_ssh_key.xml | 32 ------------- app/src/main/res/layout/git_credential_layout.xml | 2 +- app/src/main/res/values-ar/strings.xml | 1 - app/src/main/res/values-cs/strings.xml | 2 - app/src/main/res/values-de/strings.xml | 2 - app/src/main/res/values-es/strings.xml | 2 - app/src/main/res/values-fr/strings.xml | 2 - app/src/main/res/values-ja/strings.xml | 2 - app/src/main/res/values-pt-rBR/strings.xml | 2 - app/src/main/res/values-ru/strings.xml | 2 - app/src/main/res/values-zh-rCN/strings.xml | 2 - app/src/main/res/values-zh-rTW/strings.xml | 2 - app/src/main/res/values/strings.xml | 25 ++++++++-- 15 files changed, 42 insertions(+), 91 deletions(-) delete mode 100644 app/src/main/res/layout/fragment_show_ssh_key.xml (limited to 'app/src/main/res') diff --git a/app/src/main/res/layout/activity_ssh_keygen.xml b/app/src/main/res/layout/activity_ssh_keygen.xml index 6ec3f2fb..17180f06 100644 --- a/app/src/main/res/layout/activity_ssh_keygen.xml +++ b/app/src/main/res/layout/activity_ssh_keygen.xml @@ -13,16 +13,11 @@ android:layout_height="wrap_content" android:orientation="vertical" android:paddingLeft="@dimen/activity_horizontal_margin" + android:paddingTop="@dimen/activity_vertical_margin" android:paddingRight="@dimen/activity_horizontal_margin"> - - + + + android:text="@string/ssh_keygen_label_ecdsa" /> + android:text="@string/ssh_keygen_label_ed25519" /> - - - - + android:paddingTop="8dp" /> - - - - + android:text="@string/ssh_keygen_require_authentication" /> diff --git a/app/src/main/res/layout/fragment_show_ssh_key.xml b/app/src/main/res/layout/fragment_show_ssh_key.xml deleted file mode 100644 index a933759e..00000000 --- a/app/src/main/res/layout/fragment_show_ssh_key.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - diff --git a/app/src/main/res/layout/git_credential_layout.xml b/app/src/main/res/layout/git_credential_layout.xml index 180b904a..3e520bf1 100644 --- a/app/src/main/res/layout/git_credential_layout.xml +++ b/app/src/main/res/layout/git_credential_layout.xml @@ -14,8 +14,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" app:endIconMode="password_toggle" - app:hintEnabled="true" app:errorEnabled="true" + app:hintEnabled="true" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent"> diff --git a/app/src/main/res/values-ar/strings.xml b/app/src/main/res/values-ar/strings.xml index 695a7499..1fd90cb2 100644 --- a/app/src/main/res/values-ar/strings.xml +++ b/app/src/main/res/values-ar/strings.xml @@ -87,7 +87,6 @@ العبارة السرية تعليق توليد - نسخ حسناً diff --git a/app/src/main/res/values-cs/strings.xml b/app/src/main/res/values-cs/strings.xml index 3c4df560..b7769e53 100644 --- a/app/src/main/res/values-cs/strings.xml +++ b/app/src/main/res/values-cs/strings.xml @@ -130,8 +130,6 @@ Bezpečnostní fráze Komentář Generovat - Kopírovat - Přidat tento veřejný klíč na Git server. OK diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index d5abea1a..1c89081a 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -111,8 +111,6 @@ Passwort Kommentar Generieren - Kopieren - Füge den Public-Key zu deinem Git-Server hinzu. OK diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index 03e153e9..c781f7aa 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -135,8 +135,6 @@ Contraseña Comentario Generar - Copiar - Registra esta llave pública en tu servidor Git. OK diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index db98bfd8..e97fd1fb 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -135,8 +135,6 @@ Mot de passe Commentaire Générer - Copier - Enregistrez cette clef publique sur votre serveur Git. OK diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml index 132ecad4..65f378a9 100644 --- a/app/src/main/res/values-ja/strings.xml +++ b/app/src/main/res/values-ja/strings.xml @@ -94,8 +94,6 @@ パスフレーズ コメント 生成 - コピー - この公開鍵を Git サーバーに提供してください。 OK diff --git a/app/src/main/res/values-pt-rBR/strings.xml b/app/src/main/res/values-pt-rBR/strings.xml index 2e07190a..535267c7 100644 --- a/app/src/main/res/values-pt-rBR/strings.xml +++ b/app/src/main/res/values-pt-rBR/strings.xml @@ -169,8 +169,6 @@ Frase Secreta Comentário Gerar - Copiar - Forneça esta chave pública para seu servidor Git. Gerando chaves… Concluído! diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml index d1fbc215..291429bc 100644 --- a/app/src/main/res/values-ru/strings.xml +++ b/app/src/main/res/values-ru/strings.xml @@ -164,8 +164,6 @@ Пароль Комментарий Сгенерировать - Скоприровать - Поместите публичный ключ на сервер Git OK diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml index e7899c76..ebc710d4 100644 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -91,8 +91,6 @@ 口令 备注 生成 - 复制 - 在你的Git服务器上提供此公钥 确定 diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml index 572d67da..b380c560 100644 --- a/app/src/main/res/values-zh-rTW/strings.xml +++ b/app/src/main/res/values-zh-rTW/strings.xml @@ -88,8 +88,6 @@ 密碼 備註 產生 - 複製 - 在你的 Git 伺服器上提供此公鑰 確定 diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 72d4d5db..5c8b75cd 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -199,12 +199,29 @@ Passphrase Comment Generate - Copy - Provide this public key to your Git server. + Share + Later + %1$s\n\nProvide this public key to your Git server. Generating keys… Done! - 2048 - 4096 + Protect with screen lock credential + Public key copied to clipboard + RSA + ECDSA + Ed25519 + RSA (3072 bit)\nSupported by all servers, but authentication is comparatively slow. + ECDSA (NIST P-256)\nFast authentication and supported by most servers that are still receiving updates. + Ed25519\nFast authentication, but only supported by rather modern servers. + SSH key + Replace existing SSH key? You might lose access to your server. + Replace + Keep + + + + Screen lock authentication failed + Unlock SSH key + Generate SSH key OK -- cgit v1.2.3