Add current UNIX timestamp to generated GPG ID, identify key based on it

This commit is contained in:
2024-03-08 10:36:01 -05:00
parent cd61d3ada3
commit 5fc2ef81bc
+4 -4
View File
@@ -9,13 +9,13 @@ func TempInitCli() {
// gpgID // gpgID
var gpgID string var gpgID string
if inputBinary("Auto-generate GPG key?") { if inputBinary("Auto-generate GPG key?") {
offline.GpgKeyGen() gpgID = offline.GpgKeyGen()
} } else {
// select GPG key from menu
// select GPG key
uidSlice := offline.GpgUIDListGen() uidSlice := offline.GpgUIDListGen()
gpgIDInt := inputMenuGen("Select GPG key:", uidSlice) gpgIDInt := inputMenuGen("Select GPG key:", uidSlice)
gpgID = uidSlice[gpgIDInt-1] gpgID = uidSlice[gpgIDInt-1]
}
// textEditor // textEditor
textEditor := input("Text editor (leave blank for $EDITOR, falls back to \"" + offline.FallbackEditor + "\"):") textEditor := input("Text editor (leave blank for $EDITOR, falls back to \"" + offline.FallbackEditor + "\"):")