Simple passphrase file encryption (web)

clrwebmail-spam001's Avatar

clrwebmail-spam001

13 Dec, 2011 11:49 PM

Hello,
I am looking for the functionality I had with GPGFileTool. Specifically, I simply want to encrypt a file with a passphrase. In this case, I do NOT want or need the public/private key setup. I simply want to use a passphrase to encrypt a file locally on my machine.

Does this functionality not exist in GPGTools, or am I just missing it? (Yes, I do have OpenPGP:Encrypt showing up under services, but I see no way to encrypt with only a passphrase.

Best regards,

C. Reynolds

  1. 1 Posted by T. Cooper on 14 Dec, 2011 07:01 AM

    T. Cooper's Avatar

    Try the command line tool...

    $ du -h GPGTools-20111127.dmg 33M GPGTools-20111127.dmg $ gpg --symmetric GPGTools-20111127.dmg $ gpg --armor --symmetric GPGTools-20111127.dmg $ du -h GPGTools-20111127.dmg 33M GPGTools-20111127.dmg 44M GPGTools-20111127.dmg.asc 33M GPGTools-20111127.dmg.gpg

    The .gpg file is binary created with a symmetric cypher. The .asc file is ASCII armored output of the same symmetric cypher.

    $ md5 GPGTools-20111127.dmg MD5 (GPGTools-20111127.dmg) = 75349a85c6863a3d82dc006d6bbb8062
    $ rm -f GPGTools-20111127.dmg $ gpg --decrypt GPGTools-20111127.dmg.gpg > GPGTools-20111127.dmg gpg: CAST5 encrypted data
    gpg: encrypted with 1 passphrase
    gpg: WARNING: message was not integrity protected
    $ md5 GPGTools-20111127.dmg MD5 (GPGTools-20111127.dmg) = 75349a85c6863a3d82dc006d6bbb8062

    There is no man page but there is a little built in help...

    $ gpg --help

    Good luck,

    T.Cooper

  2. 2 Posted by T. Cooper on 14 Dec, 2011 07:09 AM

    T. Cooper's Avatar

    Sorry about the poor formatting...

    Try the command line tool...

    $ du -h GPGTools-20111127.dmg
    33M GPGTools-20111127.dmg
    $ gpg --symmetric GPGTools-20111127.dmg
    $ gpg --armor --symmetric GPGTools-20111127.dmg
    $ du -h GPGTools-20111127.dmg
    33M GPGTools-20111127.dmg
    44M GPGTools-20111127.dmg.asc
    33M GPGTools-20111127.dmg.gpg
    

    The .gpg file is binary created with a symmetric cypher. The .asc file is ASCII armored output of the same symmetric cypher.

    $ md5 GPGTools-20111127.dmg
    MD5 (GPGTools-20111127.dmg) = 75349a85c6863a3d82dc006d6bbb8062
    $ rm -f GPGTools-20111127.dmg
    $ gpg --decrypt GPGTools-20111127.dmg.gpg > GPGTools-20111127.dmg
    gpg: CAST5 encrypted data
    gpg: encrypted with 1 passphrase
    gpg: WARNING: message was not integrity protected
    $ md5 GPGTools-20111127.dmg
    MD5 (GPGTools-20111127.dmg) = 75349a85c6863a3d82dc006d6bbb8062
    

    There is no man page but there is a little built in help...

    $ gpg --help
    
  3. 3 Posted by Alex on 14 Dec, 2011 03:32 PM

    Alex's Avatar

    Hi,

    it's on the roadmap (see http://gpgtools.lighthouseapp.com/projects/67607/tickets/74 ) - although I'm not sure when someone will find time to implement it.

    Best regards, Alex

    PS: @T.Cooper: "man gpg2" ;)

  4. Alex closed this discussion on 14 Dec, 2011 03:32 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac