Selaa lähdekoodia

Remove non-random elements from key

Bob Mottram 8 vuotta sitten
vanhempi
commit
f9759acf6e
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1
    1
      src/freedombone-pass

+ 1
- 1
src/freedombone-pass Näytä tiedosto

@@ -138,7 +138,7 @@ fi
138 138
 get_backup_key_id
139 139
 
140 140
 # Use the backups private key as a symmetric passphrase
141
-MASTER_PASSWORD=$(gpg -q --armor --export-secret-key $MY_BACKUP_KEY_ID)
141
+MASTER_PASSWORD=$(gpg -q --armor --export-secret-key $MY_BACKUP_KEY_ID | sed '/---/d' | sed '/Version/d' | sed '/^$/d')
142 142
 
143 143
 if [ ! $CURR_USERNAME ]; then
144 144
     echo $'No username given'