From 103520e5e5a4158ace33c75728faac5062744e10 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Sun, 1 Dec 2019 12:19:28 +0100 Subject: [PATCH] SSH Key Comment: Add Operating System and current Date It's useful info --- lib/screens/githostsetup_screens.dart | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/screens/githostsetup_screens.dart b/lib/screens/githostsetup_screens.dart index 012e0070..752b5419 100644 --- a/lib/screens/githostsetup_screens.dart +++ b/lib/screens/githostsetup_screens.dart @@ -298,7 +298,12 @@ class GitHostSetupScreenState extends State { } void _generateSshKey(BuildContext context) { - generateSSHKeys(comment: "GitJournal").then((String publicKey) { + var comment = "GitJournal " + + Platform.operatingSystem + + " " + + DateTime.now().toIso8601String().substring(0, 10); // only the date + + generateSSHKeys(comment: comment).then((String publicKey) { setState(() { this.publicKey = publicKey; _copyKeyToClipboard(context);