From 5aa22c82fcf85e9e601bdd41ac0ebc013be0da49 Mon Sep 17 00:00:00 2001 From: Cuan Date: Thu, 7 Oct 2021 09:36:33 -0400 Subject: [PATCH] Changed SSH key type to ed25519 --- bin/rpass | 12 ++++++------ share/doc/rpass/changelog | 11 ++++++----- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/bin/rpass b/bin/rpass index 1db12b6..d98ccb2 100755 --- a/bin/rpass +++ b/bin/rpass @@ -101,7 +101,7 @@ if argument == 'version' or argument == '-v': print('/ /') print('/ rpass Copyright (C) 2021 Randall Winkhart /') print('/ /') - print('/ Version 2021.09.25.mr5 /') + print('/ Version 2021.10.08.mr5 /') print('/ The Housekeeping Update (Pt. 2) /') print('/ /') print('////////////////////////////////////////////////////////\n') @@ -174,7 +174,7 @@ if argument == 'config': sshgen = str(input('rsync support requires a unique ssh key. Would you like to have this ' 'automatically generated? (Y/n) ')) if sshgen != 'n' and sshgen != 'N': - term('ssh-keygen -f ~/.ssh/rpass') + term('ssh-keygen -t ed25519 -f ~/.ssh/rpass') print('\nExample input: 10.10.10.10:9999\n') ip_port = str(input('What is the IP and ssh port of the remote server? ')) print() @@ -270,19 +270,19 @@ if argument == 'add note' or argument == 'add -n': exit() shmfolder, shmentry = shmgen() try: - if entryname.startswith('/'): - if entryname.replace('/', '', 1).__contains__('/'): + if entryname.startswith('/'): # check if user input contains slashes + if entryname.replace('/', '', 1).__contains__('/'): # create folder and entry if there are two slashes folder, sep, folderentry = entryname.replace('/', '', 1).partition('/') with open('/dev/shm/' + shmfolder + '/' + shmentry, 'w') as f: f.writelines('\n\n\n' + notes + '\n\n') encryptfolder() term('gpg -d ' + directory + folder + '/' + "'" + folderentry + '.gpg' + "'") - else: + else: # create entry if there is only one slash with open('/dev/shm/' + shmfolder + '/' + shmentry, 'w') as f: f.writelines('\n\n\n' + notes + '\n\n') encrypt() term('gpg -d ' + directory + "'" + entryname.replace('/', '', 1) + '.gpg' + "'") - else: + else: # create entry if there are no slashes with open('/dev/shm/' + shmfolder + '/' + shmentry, 'w') as f: f.writelines('\n\n\n' + notes + '\n\n') encrypt() diff --git a/share/doc/rpass/changelog b/share/doc/rpass/changelog index 8bbd509..0d68c5e 100755 --- a/share/doc/rpass/changelog +++ b/share/doc/rpass/changelog @@ -1,6 +1,6 @@ <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> -rpass 2021.09.25.mr5 +rpass 2021.10.08.mr5 The Housekeeping Update (Pt. 2) - Fifth main release of rpass @@ -9,25 +9,26 @@ This release focuses on user-facing polish and usability enhancements. New features: **add new file list w/color and w/o extensions -**add a manpage **add support for multi-line notes (use text editor for notes) Changes: - fixed issues with copying passwords with certain special characters, e.g. '"()| +- auto-generated ssh key now uses ed25519, rather than rsa-3072 **add more comments to code **improve exceptions for unknown arguments -Planned for next update (The Housekeeping Update Pt. 3): +Planned for next update (The rcrypt Update): +- initial implementation of a data store for other applications (libsecret alt.) - ability to pass entries as arguments for more functions +- manpage Planned, no timeline: -- possible libsecret integration // cancelled, will instead act as a libsecret alternative that other apps can use to store data in - create separate gui frontend targetting mobile devices (first Linux phones, maybe Android at a later date - official iOS client not likely) ^ the gui will also function on desktop linux -- make platform agnostic (add Windows support and package for more Linux distributions) +- make platform agnostic (add Windows support and package for more Linux distributions, such as Alpine and Debian) - auto-completion on tab (currently unsure of best way to make this work) <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>