Page 1 of 9 123 ... LastLast
Results 1 to 10 of 82

Thread: Nautilus File encrypter/decrypter Script!

  1. #1
    Join Date
    Jul 2005
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Nautilus File encrypter/decrypter Script!

    As promised, here's my file encrypter/decrypter script for Nautilus.

    This script requires 3 utilities (2 of which are almost always already installed by default).
    1. Zenity - Used to generate the user interface dialogs, etc. (already installed on most Gnome desktop systems)
    2. GnuPG - Does the actual encryption/decryption (already installed on most systems)
    3. Wipe - Handles the secure file deletion (you'll probably need to apt-get this --> "sudo apt-get install wipe")

    Code:
    Old version removed as there have been several updates to it.  Please grab the latest version from my Website.
    The latest version can always be downloaded here:
    http://rob.pectol.com/myscripts/encryption.sh.txt

    Enjoy!
    Last edited by robert_pectol; September 15th, 2007 at 01:43 AM.
    Rob

  2. #2
    Join Date
    Jul 2005
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Nautilus File encrypter/decrypter Script!

    I guess I should have included directions for those less familliar with Nautilus scripts. To use this script, save it to a file in your ~/.gnome2/nautilus-scripts directory. Then make it executable (chmod 755 ~/.gnome2/nautilus-scripts/scriptname) and you're done! You will then be able to encrypt/decrypt files by simply right-clicking on them and selecting this script from the, "Scripts" menu, from within your Nautilus File Manager!

    Enjoy!
    Rob

  3. #3
    Join Date
    Apr 2005
    Beans
    645
    Distro
    Dapper Drake Testing/

    Re: Nautilus File encrypter/decrypter Script!

    Nice HOWTO though i never used gpg before so i'm getting this error:
    Code:
    gpg: unknow default recipient "wael"
    gpg: /home/wael/Desktop/test: encryption failed: public key not found
    [My Blog] | [My Sites] | [My Ubuntu Guides]

    doc.gwos.org, the real successor of Ubuntu Guide

  4. #4
    Join Date
    Jul 2005
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Nautilus File encrypter/decrypter Script!

    No problem! You need to generate a keypair in order to use it. That is easily accomplished by opening a shell and typing, "gpg --gen-key" at the command prompt. *Do NOT use sudo! Once you have generated your keypair, try it again and it'll work.
    Rob

  5. #5
    Join Date
    Oct 2005
    Location
    Estonia / Sweden
    Beans
    2,332
    Distro
    Ubuntu Development Release

    Re: Nautilus File encrypter/decrypter Script!

    very impressive... thank you man... i have some personal letters i would rather leave hidden from certain eyes... but then again, to read them, when needed... was looking for something light and effective... super... keep your work coming

  6. #6
    Join Date
    Apr 2005
    Beans
    645
    Distro
    Dapper Drake Testing/

    Re: Nautilus File encrypter/decrypter Script!

    Quote Originally Posted by robert_pectol
    No problem! You need to generate a keypair in order to use it. That is easily accomplished by opening a shell and typing, "gpg --gen-key" at the command prompt. *Do NOT use sudo! Once you have generated your keypair, try it again and it'll work.
    Yeah you're right, it worked perfect, Thanks for this usefull script!!
    [My Blog] | [My Sites] | [My Ubuntu Guides]

    doc.gwos.org, the real successor of Ubuntu Guide

  7. #7
    Join Date
    Jul 2005
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Nautilus File encrypter/decrypter Script!

    You're welcome!
    Rob

  8. #8
    Join Date
    Jul 2005
    Location
    UK
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Nautilus File encrypter/decrypter Script!

    Quote Originally Posted by Gandalf
    Nice HOWTO though i never used gpg before so i'm getting this error:
    Code:
    gpg: unknow default recipient "wael"
    gpg: /home/wael/Desktop/test: encryption failed: public key not found
    I get this same error even though I have setup the key-pair using 'gpg --gen-key'

    One point does the real name required for the key-pair generation have to be the same as my account name?

  9. #9
    Join Date
    Jul 2005
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Nautilus File encrypter/decrypter Script!

    Quote Originally Posted by installer
    I get this same error even though I have setup the key-pair using 'gpg --gen-key'

    One point does the real name required for the key-pair generation have to be the same as my account name?
    It has to be the key belonging to the currently logged-in user (as shown when doing, "whoami" at the command prompt). If your user doesn't have a keypair, you'll need to generate one. I hope that helps. Let me know if not.
    Rob

  10. #10
    Join Date
    Jun 2005
    Location
    Australia
    Beans
    1,837

    Re: Nautilus File encrypter/decrypter Script!

    I've been having fun using this. It's a very useful script. I have found a bug however.

    It drops out with an error if there is a space in the directory pathname. For example, a default folder creation name on Desktop with gnome would be 'untitled folder 1', which contains two spaces in the directory name. Any file inside that directory will not encrypt successfully.

Page 1 of 9 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •