Explorar el Código

Remove non-random elements from key

Bob Mottram hace 8 años
padre
commit
f9759acf6e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      src/freedombone-pass

+ 1
- 1
src/freedombone-pass Ver fichero

138
 get_backup_key_id
138
 get_backup_key_id
139
 
139
 
140
 # Use the backups private key as a symmetric passphrase
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
 if [ ! $CURR_USERNAME ]; then
143
 if [ ! $CURR_USERNAME ]; then
144
     echo $'No username given'
144
     echo $'No username given'