Bob Mottram преди 8 години
родител
ревизия
d128a5f762
променени са 1 файла, в които са добавени 12 реда и са изтрити 2 реда
  1. 12
    2
      src/freedombone-pass

+ 12
- 2
src/freedombone-pass Целия файл

@@ -8,8 +8,16 @@
8 8
 #
9 9
 #                    Freedom in the Cloud
10 10
 #
11
-# Simple multi-user password store using symmetric encryption
12
-# and the backup gpg key
11
+# It's useful to be able to store user passwords, but not a good
12
+# idea to do that in plain text. This implements a simple password
13
+# store. It gpg symmetric encrypts passwords using the backups
14
+# private key as the passphrase.
15
+#
16
+# In order for an adversary to obtain the passwords they must have
17
+# the backups GPG key, which is not obtainable from local or remote
18
+# backups and can only happen if they get root access to the system
19
+# (in which case it's game over anyhow) or if they can decrypt
20
+# a master keydrive or obtain sufficient keydrive fragments.
13 21
 #
14 22
 # License
15 23
 # =======
@@ -103,6 +111,8 @@ do
103 111
 done
104 112
 
105 113
 get_backup_key_id
114
+
115
+# Use the backups private key as a symmetric passphrase
106 116
 MASTER_PASSWORD=$(gpg -q --armor --export-secret-key $MY_BACKUP_KEY_ID)
107 117
 
108 118
 if [ ! $CURR_USERNAME ]; then