Seperate Session Key and Encrypted Data
Faramir
faramir.cl at gmail.com
Sat Oct 3 00:10:57 CEST 2015
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
El 01-10-2015 a las 7:26, Christian Loehle escribió:
> I want to use gpg to encrypt a potentially large file to some
> (cloud-like) storage provider, the recipients are not known at the
> time of uploading. What I want to do is to send the encrypted
> session key of the file to a recipient, when I 'add' them, without
> reuploading or even touching the original file. This should be
> possible, does anyone know how to? I'm also open to other
> suggestions
It seems to me it would be easier to use symmetrical encryption. I
always do it using a GUI, but I found these instructions to do it. I
guess gpg will ask for the password:
gpg --symmetric filename
yields filename.gpg
gpg --symmetric -a filename
yields filename.asc
Decryption is performed using the usual "-d" switch:
gpg -d filename
- ---
Otherwise, you would have to encrypt the file to your own key, and
then extract the session key. I've never done that, but I found these
directions:
gpg --show-session-key [file_name]
To decrypt:
gpg --override-session-key [session key] [file_name]
- ---
I hope it works, I wrote those directions "just in case", but never
tried them, so I may have made mistakes.
Best Regards
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQEcBAEBCAAGBQJWDwDxAAoJEMV4f6PvczxA98gH/ja+hCm3OVqrgOPvUfklOLV3
X0jfOPm86CPRvnzzwyCC+Sd2IXdER5arZmtWHInqTJwYwh1qSP5vY12yldfPfutr
O+VIgvOcqwQmbKSLSCZt0IYCp8p/4Wf390paQa79BhW00gIuhl+xpR6qmlGWhqLd
+ckf+tMZdpaLxmS0CjaDCghHXX2PTGMty0M9iu443s4JOThCHnOox7xmeau/X+wE
0BFwKJNChxeYEEMy9VMwO4JR2GG5M+I0vwurJza0J2i+61n+ubwJL9hw9VuCoXTJ
SQDrhoHJ7iCb4X5gBkqDhFZKC9t0dLdijzPjaOWyynp30ZN4l8mLo35QzJ2WqCQ=
=Vm/n
-----END PGP SIGNATURE-----
More information about the Gnupg-users
mailing list