Skip to content
Snippets Groups Projects
Commit d128a5f7 authored by Bob Mottram's avatar Bob Mottram
Browse files

Notes

parent 81828265
No related branches found
No related tags found
No related merge requests found
......@@ -8,8 +8,16 @@
#
# Freedom in the Cloud
#
# Simple multi-user password store using symmetric encryption
# and the backup gpg key
# It's useful to be able to store user passwords, but not a good
# idea to do that in plain text. This implements a simple password
# store. It gpg symmetric encrypts passwords using the backups
# private key as the passphrase.
#
# In order for an adversary to obtain the passwords they must have
# the backups GPG key, which is not obtainable from local or remote
# backups and can only happen if they get root access to the system
# (in which case it's game over anyhow) or if they can decrypt
# a master keydrive or obtain sufficient keydrive fragments.
#
# License
# =======
......@@ -103,6 +111,8 @@ do
done
get_backup_key_id
# Use the backups private key as a symmetric passphrase
MASTER_PASSWORD=$(gpg -q --armor --export-secret-key $MY_BACKUP_KEY_ID)
if [ ! $CURR_USERNAME ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment