|
About:
gpgdir is a Perl script that uses the CPAN GnuPG module to encrypt and decrypt directories using a GPG key specified in ~/.gpgdirrc. It supports recursively descending through a directory in order to make sure it encrypts or decrypts every file in a directory and all of its subdirectories. All file mtime and atime values are preserved across encryption and decryption operations. In addition, gpgdir is careful not to encrypt hidden files and directories.
Author:
Michael Rash [contact developer]
Homepage:
http://www.cipherdyne.org/gpgdir/
Tar/GZ:
http://www.cipherdyne.org/gpgdir/download/
Tar/BZ2:
http://www.cipherdyne.org/gpgdir/download/
Changelog:
http://trac.cipherdyne.org/[..]owser/gpgdir/tags/gpgdir-1.9.2/ChangeLog
RPM package:
http://www.cipherdyne.org/gpgdir/download/
CVS tree (cvsweb):
http://trac.cipherdyne.org/trac/gpgdir/
Mirror site:
http://www.cipherdyne.com/gpgdir/
Trove categories:
[change]
Dependencies:
[change]
No dependencies filed
|
|
» Rating:
8.06/10.00
(Rank N/A)
» Vitality: 0.17% (Rank 1109)
» Popularity: 1.75% (Rank 3071)

(click to enlarge graphs)
Record hits: 18,889
URL hits: 4,453
Subscribers: 49
|
|
Branches
Comments
[»]
gpgdir no longer working with perl 5.10
by truenerd - May 19th 2008 21:44:48
Since I have updated to Perl 5.10, gpgdir is no longer working; I get the
following message:
"/usr/bin/perl: symbol lookup error:
/usr/lib/gpgdir/i486-linux-gnu-thread-multi/auto/Term/ReadKey/ReadKey.so:
undefined symbol: Perl_Tstack_sp_ptr"
Could you make a suggestion?
Many thanks !
[reply]
[top]
[»]
Re: gpgdir no longer working with perl 5.10
by Michael Rash - Jun 25th 2008 00:51:33
> Since I have updated to Perl 5.10,
> gpgdir is no longer working; I get the
> following message:
>
> "/usr/bin/perl: symbol lookup
> error:
>
/usr/lib/gpgdir/i486-linux-gnu-thread-multi/auto/Term/ReadKey/ReadKey.so:
> undefined symbol:
> Perl_Tstack_sp_ptr"
>
> Could you make a suggestion?
>
> Many thanks !
Hi, can you try re-installing gpgdir by either using the install.pl script
in the gpgdir tarball, or by using the automated RPM builder?:
http://www.cipherdyne.com/scripts/cd_rpmbuilder.tar.gz
Just do:
# ./cd_rpmbuilder -p gpgdir
Thanks,
--Mike
-- --
Michael Rash
http://www.cipherdyne.org/
Key fingerprint = 53EA 13EA 472E 3771 894F AC69 95D8 5D6B A742 839F
[reply]
[top]
[»]
gpgdir dosn't work on my linux system
by zentara - Mar 1st 2003 03:26:20
Hi, you have a nice idea. When I run gpgdir, it goes
thru the files, but creates gpg'd files of size=0. It leaves error
messages "could not encrypt file". I'm
using suse linux, perl5.8, and gpg 1.2.1
[reply]
[top]
[»]
Re: gpgdir dosn't work on my linux system
by Michael Rash - Mar 1st 2003 10:00:33
> Hi, you have a nice idea. When I run
> gpgdir, it goes
> thru the files, but creates gpg'd files
> of size=0. It leaves error messages
> "could not encrypt file". I'm
> using suse linux, perl5.8, and gpg 1.2.1
Are the original files still left in place? Are you able to encrypt and
decrypt files with gpg? Which version of GnuPG do you have installed? I'm
going to build in a test within gpgdir to make sure it is able to encrypt
and decrypt a tmp file in order to make sure everything is working before
it tries to operate on a real directory. 0.2 will include this feature.
-- --
Michael Rash
http://www.cipherdyne.org/
Key fingerprint = 53EA 13EA 472E 3771 894F AC69 95D8 5D6B A742 839F
[reply]
[top]
[»]
Re: gpgdir dosn't work on my linux system
by zentara - Mar 1st 2003 10:43:45
Ok, I copied the tarball to a directory called 1,
in my home directory, then I unpacked it, and tried to run
gpgdir on it. This is the output. My gpg version is 1.2.1,
and it encrypts files fine with "gpg -e somefile".
zentara@zentara:~/1down> gpgdir -e 1
Sat Mar 1 13:31:34 2003 .. Directory: /home/zentara/1down/1 ==>
Encrypting gpgdir-0.1.tar.gz.gpg
Sat Mar 1 13:31:34 2003 .. Errors/Warnings:
Sat Mar 1 13:31:34 2003 ** Could not encrypt: gpgdir-0.1.tar.gz
Sat Mar 1 13:31:34 2003 .. Directory: /home/zentara/1down/1/gpgdir-0.1
==> Encrypting LICENSE.gz
Sat Mar 1 13:31:34 2003 .. Encrypting LICENSE.gz -> LICENSE.gz.gpg
Sat Mar 1 13:31:35 2003 .. Compressing README -> README.gz
Sat Mar 1 13:31:35 2003 .. Encrypting README.gz -> README.gz.gpg
Sat Mar 1 13:31:35 2003 .. Compressing install.pl -> install.pl.gz
Sat Mar 1 13:31:35 2003 .. Encrypting install.pl.gz ->
install.pl.gz.gpg
Sat Mar 1 13:31:35 2003 .. Compressing gpgdir -> gpgdir.gz
Sat Mar 1 13:31:35 2003 .. Encrypting gpgdir.gz -> gpgdir.gz.gpg
Sat Mar 1 13:31:36 2003 .. Compressing gpgdir.1 -> gpgdir.1.gz
Sat Mar 1 13:31:36 2003 .. Encrypting gpgdir.1.gz ->
gpgdir.1.gz.gpg
Sat Mar 1 13:31:36 2003 .. Errors/Warnings:
Sat Mar 1 13:31:35 2003 ** Could not encrypt: LICENSE.gz
Sat Mar 1 13:31:35 2003 ** Could not encrypt: README.gz
Sat Mar 1 13:31:35 2003 ** Could not encrypt: install.pl.gz
Sat Mar 1 13:31:36 2003 ** Could not encrypt: gpgdir.gz
Sat Mar 1 13:31:36 2003 ** Could not encrypt: gpgdir.1.gz
Sat Mar 1 13:31:36 2003 .. Total number of files encrypted: 0
Sat Mar 1 13:31:36 2003 .. Finished.
After running "gpgdir 1"
"ls -la 1"
total 19
drwxr-xr-x 3 zentara users 131 2003-03-01 13:31 .
drwxr-xr-x 16 zentara users 1242 2003-03-01 13:32 ..
drwxr-xr-x 2 zentara users 319 2003-03-01 13:31 gpgdir-0.1
-rw------- 1 zentara users 12481 2003-03-01 13:29
gpgdir-0.1.tar.gz
-rw-r--r-- 1 zentara users 0 2003-03-01 13:31
gpgdir-0.1.tar.gz.gpg
"ls -la gpgdir-0.1"
total 25
drwxr-xr-x 2 zentara users 319 2003-03-01 13:31 .
drwxr-xr-x 3 zentara users 131 2003-03-01 13:31 ..
-rw-r--r-- 1 zentara users 6859 2003-02-24 14:04 LICENSE.gz
-rw-r--r-- 1 zentara users 0 2003-03-01 13:31
LICENSE.gz.gpg
-rw-r--r-- 1 zentara users 669 2003-02-26 19:48 README.gz
-rw-r--r-- 1 zentara users 0 2003-03-01 13:31 README.gz.gpg
-rw-r--r-- 1 zentara users 1005 2003-02-26 19:32 gpgdir.1.gz
-rw-r--r-- 1 zentara users 0 2003-03-01 13:31
gpgdir.1.gz.gpg
-rwxr-xr-x 1 zentara users 3635 2003-02-26 19:48 gpgdir.gz
-rw-r--r-- 1 zentara users 0 2003-03-01 13:31 gpgdir.gz.gpg
-rwxr-xr-x 1 zentara users 1643 2003-02-24 23:46 install.pl.gz
-rw-r--r-- 1 zentara users 0 2003-03-01 13:31
install.pl.gz.gpg
[reply]
[top]
[»]
Re: gpgdir dosn't work on my linux system
by zentara - Mar 1st 2003 10:49:47
Ok, I copied the tarball to a directory called 1,
in my home directory, then I unpacked it, and tried to run
gpgdir on it. This is the output. My gpg version is 1.2.1,
and it encrypts files fine with "gpg -e somefile".
zentara@zentara:~/1down> gpgdir -e 1
Sat Mar 1 13:31:34 2003 .. Directory: /home/zentara/1down/1 ==>
Encrypting gpgdir-0.1.tar.gz.gpg
Sat Mar 1 13:31:34 2003 .. Errors/Warnings:
Sat Mar 1 13:31:34 2003 ** Could not encrypt: gpgdir-0.1.tar.gz
Sat Mar 1 13:31:34 2003 .. Directory: /home/zentara/1down/1/gpgdir-0.1
==> Encrypting LICENSE.gz
Sat Mar 1 13:31:34 2003 .. Encrypting LICENSE.gz ->
LICENSE.gz.gpg
Sat Mar 1 13:31:35 2003 .. Compressing README -> README.gz
Sat Mar 1 13:31:35 2003 .. Encrypting README.gz ->
README.gz.gpg
Sat Mar 1 13:31:35 2003 .. Compressing install.pl ->
install.pl.gz
Sat Mar 1 13:31:35 2003 .. Encrypting install.pl.gz ->
install.pl.gz.gpg
Sat Mar 1 13:31:35 2003 .. Compressing gpgdir -> gpgdir.gz
Sat Mar 1 13:31:35 2003 .. Encrypting gpgdir.gz ->
gpgdir.gz.gpg
Sat Mar 1 13:31:36 2003 .. Compressing gpgdir.1 ->
gpgdir.1.gz
Sat Mar 1 13:31:36 2003 .. Encrypting gpgdir.1.gz ->
gpgdir.1.gz.gpg
Sat Mar 1 13:31:36 2003 .. Errors/Warnings:
Sat Mar 1 13:31:35 2003 ** Could not encrypt: LICENSE.gz
Sat Mar 1 13:31:35 2003 ** Could not encrypt: README.gz
Sat Mar 1 13:31:35 2003 ** Could not encrypt: install.pl.gz
Sat Mar 1 13:31:36 2003 ** Could not encrypt: gpgdir.gz
Sat Mar 1 13:31:36 2003 ** Could not encrypt: gpgdir.1.gz
Sat Mar 1 13:31:36 2003 .. Total number of files encrypted: 0
Sat Mar 1 13:31:36 2003 .. Finished.
After running "gpgdir 1"
"ls -la 1"
total 19
drwxr-xr-x 3 zentara users 131 2003-03-01 13:31 .
drwxr-xr-x 16 zentara users 1242 2003-03-01 13:32 ..
drwxr-xr-x 2 zentara users 319 2003-03-01 13:31
gpgdir-0.1
-rw------- 1 zentara users 12481 2003-03-01 13:29
gpgdir-0.1.tar.gz
-rw-r--r-- 1 zentara users 0 2003-03-01 13:31
gpgdir-0.1.tar.gz.gpg
"ls -la gpgdir-0.1"
total 25
drwxr-xr-x 2 zentara users 319 2003-03-01 13:31 .
drwxr-xr-x 3 zentara users 131 2003-03-01 13:31 ..
-rw-r--r-- 1 zentara users 6859 2003-02-24 14:04
LICENSE.gz
-rw-r--r-- 1 zentara users 0 2003-03-01 13:31
LICENSE.gz.gpg
-rw-r--r-- 1 zentara users 669 2003-02-26 19:48 README.gz
-rw-r--r-- 1 zentara users 0 2003-03-01 13:31
README.gz.gpg
-rw-r--r-- 1 zentara users 1005 2003-02-26 19:32
gpgdir.1.gz
-rw-r--r-- 1 zentara users 0 2003-03-01 13:31
gpgdir.1.gz.gpg
-rwxr-xr-x 1 zentara users 3635 2003-02-26 19:48 gpgdir.gz
-rw-r--r-- 1 zentara users 0 2003-03-01 13:31
gpgdir.gz.gpg
-rwxr-xr-x 1 zentara users 1643 2003-02-24 23:46
install.pl.gz
-rw-r--r-- 1 zentara users 0 2003-03-01 13:31
install.pl.gz.gpg
[reply]
[top]
[»]
Re: gpgdir dosn't work on my linux system
by Michael Rash - Mar 2nd 2003 07:59:02
> Ok, I copied the tarball to a directory
> called 1,
> in my home directory, then I unpacked
> it, and tried to run
> gpgdir on it. This is the output. My
> gpg version is 1.2.1,
> and it encrypts files fine with "gpg -e
> somefile".
>
>
> zentara@zentara:~/1down> gpgdir -e 1
> Sat Mar 1 13:31:34 2003 .. Directory:
> /home/zentara/1down/1 ==> Encrypting
> gpgdir-0.1.tar.gz.gpg
> Sat Mar 1 13:31:34 2003 ..
> Errors/Warnings:
> Sat Mar 1 13:31:34 2003 ** Could not
> encrypt: gpgdir-0.1.tar.gz
> Sat Mar 1 13:31:34 2003 .. Directory:
> /home/zentara/1down/1/gpgdir-0.1 ==>
> Encrypting LICENSE.gz
> Sat Mar 1 13:31:34 2003 .. Encrypting
> LICENSE.gz -> LICENSE.gz.gpg
> Sat Mar 1 13:31:35 2003 .. Compressing
> README -> README.gz
> Sat Mar 1 13:31:35 2003 .. Encrypting
> README.gz -> README.gz.gpg
> Sat Mar 1 13:31:35 2003 .. Compressing
> install.pl -> install.pl.gz
> Sat Mar 1 13:31:35 2003 .. Encrypting
> install.pl.gz -> install.pl.gz.gpg
> Sat Mar 1 13:31:35 2003 .. Compressing
> gpgdir -> gpgdir.gz
> Sat Mar 1 13:31:35 2003 .. Encrypting
> gpgdir.gz -> gpgdir.gz.gpg
> Sat Mar 1 13:31:36 2003 .. Compressing
> gpgdir.1 -> gpgdir.1.gz
> Sat Mar 1 13:31:36 2003 .. Encrypting
> gpgdir.1.gz -> gpgdir.1.gz.gpg
> Sat Mar 1 13:31:36 2003 ..
> Errors/Warnings:
> Sat Mar 1 13:31:35 2003 ** Could not
> encrypt: LICENSE.gz
> Sat Mar 1 13:31:35 2003 ** Could not
> encrypt: README.gz
> Sat Mar 1 13:31:35 2003 ** Could not
> encrypt: install.pl.gz
> Sat Mar 1 13:31:36 2003 ** Could not
> encrypt: gpgdir.gz
> Sat Mar 1 13:31:36 2003 ** Could not
> encrypt: gpgdir.1.gz
> Sat Mar 1 13:31:36 2003 .. Total number
> of files encrypted: 0
> Sat Mar 1 13:31:36 2003 .. Finished.
>
> After running "gpgdir 1"
>
>
> "ls -la 1"
> total 19
> drwxr-xr-x 3 zentara users
> 131 2003-03-01 13:31 .
> drwxr-xr-x 16 zentara users
> 1242 2003-03-01 13:32 ..
> drwxr-xr-x 2 zentara users
> 319 2003-03-01 13:31 gpgdir-0.1
> -rw------- 1 zentara users
> 12481 2003-03-01 13:29
> gpgdir-0.1.tar.gz
> -rw-r--r-- 1 zentara users
> 0 2003-03-01 13:31
> gpgdir-0.1.tar.gz.gpg
>
>
> "ls -la gpgdir-0.1"
> total 25
> drwxr-xr-x 2 zentara users
> 319 2003-03-01 13:31 .
> drwxr-xr-x 3 zentara users
> 131 2003-03-01 13:31 ..
> -rw-r--r-- 1 zentara users
> 6859 2003-02-24 14:04 LICENSE.gz
> -rw-r--r-- 1 zentara users
> 0 2003-03-01 13:31 LICENSE.gz.gpg
> -rw-r--r-- 1 zentara users
> 669 2003-02-26 19:48 README.gz
> -rw-r--r-- 1 zentara users
> 0 2003-03-01 13:31 README.gz.gpg
> -rw-r--r-- 1 zentara users
> 1005 2003-02-26 19:32 gpgdir.1.gz
> -rw-r--r-- 1 zentara users
> 0 2003-03-01 13:31 gpgdir.1.gz.gpg
> -rwxr-xr-x 1 zentara users
> 3635 2003-02-26 19:48 gpgdir.gz
> -rw-r--r-- 1 zentara users
> 0 2003-03-01 13:31 gpgdir.gz.gpg
> -rwxr-xr-x 1 zentara users
> 1643 2003-02-24 23:46 install.pl.gz
> -rw-r--r-- 1 zentara users
> 0 2003-03-01 13:31 install.pl.gz.gpg
>
>
Hello -
I'm unable to duplicate the issue you are seeing based upon the
information provided.
What version of the GnuPG CPAN module do you have installed? I would
recommend that you install GnuPG-0.09 if you don't already have it
installed.
What happens if you execute the following sequence of commands:
tar xvfz gpgdir-0.1.tar.gz
cd gpgdir-0.1
mkdir testing
cp LICENSE testing
echo blah > testing/blah
./gpgdir -e testing
This will help me to see exactly what the problem is.
Thanks,
--Mike
-- --
Michael Rash
http://www.cipherdyne.org/
Key fingerprint = 53EA 13EA 472E 3771 894F AC69 95D8 5D6B A742 839F
[reply]
[top]
[»]
Re: gpgdir dosn't work on my linux system
by zentara - Mar 2nd 2003 09:54:09
My GnuPG version is GnuPG-0.09
I'm using perl5.8
You asked that I perform the following:
tar xvfz gpgdir-0.1.tar.gz
cd gpgdir-0.1
mkdir testing
cp LICENSE testing
echo blah > testing/blah
./gpgdir -e testing
zentara@zentara:~/1down/1/gpgdir-0.1> gpgdir -e testing
Sun Mar 2 12:47:58 2003 .. Directory:
/home/zentara/1down/1/gpgdir-0.1/testing ==> Encrypting blah.gz
Sun Mar 2 12:47:58 2003 .. Encrypting blah.gz -> blah.gz.gpg
Sun Mar 2 12:47:58 2003 .. Compressing LICENSE -> LICENSE.gz
Sun Mar 2 12:47:58 2003 .. Encrypting LICENSE.gz ->
LICENSE.gz.gpg
Sun Mar 2 12:47:59 2003 .. Errors/Warnings:
Sun Mar 2 12:47:58 2003 ** Could not encrypt: blah.gz
Sun Mar 2 12:47:59 2003 ** Could not encrypt: LICENSE.gz
Sun Mar 2 12:47:59 2003 .. Total number of files encrypted: 0
Sun Mar 2 12:47:59 2003 .. Finished.
[reply]
[top]
[»]
Re: gpgdir dosn't work on my linux system
by Michael Rash - Mar 3rd 2003 19:13:37
> My GnuPG version is GnuPG-0.09
> I'm using perl5.8
>
> You asked that I perform the following:
> tar xvfz gpgdir-0.1.tar.gz
> cd gpgdir-0.1
> mkdir testing
> cp LICENSE testing
> echo blah > testing/blah
> ./gpgdir -e testing
>
> zentara@zentara:~/1down/1/gpgdir-0.1>
> gpgdir -e testing
> Sun Mar 2 12:47:58 2003 .. Directory:
> /home/zentara/1down/1/gpgdir-0.1/testing
> ==> Encrypting blah.gz
> Sun Mar 2 12:47:58 2003 .. Encrypting
> blah.gz -> blah.gz.gpg
> Sun Mar 2 12:47:58 2003 .. Compressing
> LICENSE -> LICENSE.gz
> Sun Mar 2 12:47:58 2003 .. Encrypting
> LICENSE.gz -> LICENSE.gz.gpg
> Sun Mar 2 12:47:59 2003 ..
> Errors/Warnings:
> Sun Mar 2 12:47:58 2003 ** Could not
> encrypt: blah.gz
> Sun Mar 2 12:47:59 2003 ** Could not
> encrypt: LICENSE.gz
> Sun Mar 2 12:47:59 2003 .. Total number
> of files encrypted: 0
> Sun Mar 2 12:47:59 2003 .. Finished.
>
>
Hello -
Can you try executing the following simple script? Note that you will
need to change the three variables at the top of the script.
#!/usr/bin/perl -w
use GnuPG;
use strict;
my $homedir = '/home/mbr/.gnupg';
my $file = '/tmp/gpgtest';
my $key = 'A742839F';
unlink "${file}.gpg";
open F, "> $file" or die;
close F;
my $gpg = new GnuPG(homedir=>$homedir);
$gpg->encrypt(plaintext=>$file, output=>"${file}.gpg",
recipient=>$key);
if (-e "${file}.gpg") {
print "yep\n";
} else {
print "nope\n";
}
exit 0;
-- --
Michael Rash
http://www.cipherdyne.org/
Key fingerprint = 53EA 13EA 472E 3771 894F AC69 95D8 5D6B A742 839F
[reply]
[top]
[»]
Re: gpgdir dosn't work on my linux system
by zentara - Mar 4th 2003 03:56:22
Well the script ran, but produced a 0 size file, so I put
some content in it, and the following script works for me. It says "yep"
and the file gets encrypted.
#!/usr/bin/perl -w
use GnuPG;
use strict;
my $homedir = '/home/zentara/.gnupg';
my $file = '/tmp/gpgtest';
my $key = "zentara\@zentara.net";
unlink "${file}.gpg";
open F, "> $file" or die;
print F "howdy";
close F;
my $gpg = new GnuPG(homedir=>$homedir);
$gpg->encrypt(plaintext=>$file, output=>"${file}.gpg",
recipient=>$key);
if (-e "${file}.gpg") {
print "yep\n";
} else {
print "nope\n";
}
exit 0;
[reply]
[top]
[»]
Re: gpgdir dosn't work on my linux system
by Michael Rash - Sep 9th 2006 09:27:05
> Well the script ran, but produced a 0
> size file, so I put
> some content in it, and the following
> script works for me. It says "yep" and
> the file gets encrypted.
> #!/usr/bin/perl -w
> use GnuPG;
> use strict;
>
> my $homedir = '/home/zentara/.gnupg';
> my $file = '/tmp/gpgtest';
> my $key = "zentara\@zentara.net";
>
> unlink "${file}.gpg";
>
> open F, "> $file" or die;
> print F "howdy";
> close F;
>
> my $gpg = new GnuPG(homedir=>$homedir);
>
> $gpg->encrypt(plaintext=>$file,
> output=>"${file}.gpg",
> recipient=>$key);
>
> if (-e "${file}.gpg") {
> print "yep\n";
> } else {
> print "nope\n";
> }
> exit 0;
>
This should be fixed now with the usage of the GnuPG::Interface module.
-- --
Michael Rash
http://www.cipherdyne.org/
Key fingerprint = 53EA 13EA 472E 3771 894F AC69 95D8 5D6B A742 839F
[reply]
[top]
|