[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] PGP



oszarazi@cuug.ab.ca writes:
>On Mon, 30 Dec 1996, Chris Nandor wrote:
>
>> Has anyone had any luck using MacPGP with MacPerl, with the PGP module or
>> otherwise?
>
>I'm not sure ... but I think I saw it (the algorithm) in someone's
>signature on this list.  Either that or the sig had a factoring
>alogrithm (in perl) in it.

That signature contains only the much discussed public key (RSA) part of PGP,
but in practice, the crypto system also needs a less frequently discussed
private key (IDEA) algorithm. Besides, the RSA signature relies on dc, which
makes it of limited use on a Mac.

Unfortunately, I don't have a much better answer for Chris myself; I'm
fairly sure that an Unix PGP module won't interface with MacPGP, and
I don't know anything about what AppleEvents MacPGP supports.

Matthias

-----
Matthias Neeracher   <neeri@iis.ee.ethz.ch>   http://www.iis.ee.ethz.ch/~neeri
 #!/usr/local/bin/perl -s-- -export-a-crypto-system-sig -RSA-in-3-lines-PERL
 ($k,$n)=@ARGV;$m=unpack(H.$w,$m."\0"x$w),$_=`echo "16do$w 2+4Oi0$d*-^1[d2%
 Sa2/d0<X+d*La1=z\U$n%0]SX$k"[$m*]\EszlXx++p|dc`,s/^.|\W//g,print pack('H*'
 ,$_)while read(STDIN,$m,($w=2*$d-1+length($n||die"$0 [-d] k n\n")&~1)/2)
    -- http://dcs.ex.ac.uk/~aba/rsa-perl.html by Adam Back