Re: DH horsepower using InlineC and CryptoAPI
On Sun, Oct 31, 2004 at 06:52:01PM -0800, mark pryor wrote: Hello, Using Perl 5.8 build 807 (UWinnepeg) Win2k sp4, P4 2.0 Ghz, 512 RAM I looked around CPAN-Google for a quick perl method of generating Prime/Generator pairs for use with Crypt::DH. a note about using diffiehellman, there is no need to generate new primes. it works just fine with fixed published primes. http://www.faqs.org/rfcs/rfc3526.html for instance provides primes of various sizes. these primes are all proven to be primes, and strong primes. willem ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: Random?
On Tue, Oct 12, 2004 at 01:02:30AM +0200, [EMAIL PROTECTED] wrote: Hello everybody, which confused me a bit, because every time I ran my prog it was pretty much the same :( that is by design. PS: I tried to install math::trulyrandom from CPAN but thar behaves strange too. Always tells me, that some .h-File is missing. :( - But maybe it's me again... maybe you can call the windows cryptoapi, using Win32::API. http://msdn.microsoft.com/library/en-us/seccrypto/security/cryptgenrandom.asp to get real random. or read the output of openssl rand nbytes you can use openssl from cygwin. or maybe use http://search.cpan.org/~iroberts/Crypt-OpenSSL-Random-0.03/Random.pm ( haven't tried to see if it works under windows. ) willem ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: Perl and RC4: Understanding Extremely Compact Script
On Thu, Aug 19, 2004 at 04:09:05AM -0700, Jeremy Junginger wrote: In attempting to better understand the underlying mechanisms at work with the RC4 encryption algorithm and its associated weaknesses, I began writing a perl script to replicate it (for educational purposes only). Just At the point where I thought I had it figured out, I came across an example in PERL 5 that blew my mind. Although it is absolutely accurate, is extremely precisely written and compact, making it difficult to decipher (no pun intended :). I could use some help breaking this script down and understanding what's happening with each step...more like one big step. RTFMing hasn't helped much, as I'm familiar with all of the syntax used, but the nesting of variable, arrays, and regular expressions makes it tough to understand what is happening and when. Anyone care to help decipher what's going on, command by command here? TIA. Oh, and thanks to John Allen ([EMAIL PROTECTED]) for the very nicely written Perl 5 script: #!/bin/perl -0777p-- export-a-crypto-system-sig -RC4-in-3-lines-of-perl use integer;BEGIN{sub [EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED]C*,packH*,[EMAIL PROTECTED]; for(@[EMAIL PROTECTED]){([EMAIL PROTECTED])%=256;S}$x=$y=0}$l=0;($y+=$s[($x+ = 1)%=256])%=256,S,vec($_,$l++,8)^=$s[($s[$x]+$s[$y])%256]while$llength try running it with 'perl -MO=Deparse' willem ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: Any way to process passwords in Archive::Zip ????
On Thu, Jul 29, 2004 at 08:33:14PM +0300, Burak Gursoy wrote: don't know how to do that with perl. and... do you know how to do in another language? :) I'm also interested in this subject but digging google didn't return me any info :( http://www.info-zip.org/pub/infozip/ download from ftp://ftp.icce.rug.nl/infozip/src/ if you are looking for zip password cracking software: http://www.elcomsoft.com/azpr.html or a paper on problems with the new winzip encryption: http://www.cs.ucsd.edu/users/tkohno/papers/WinZip/winzip.pdf willem ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: Editor - finding lines
On Thu, May 27, 2004 at 09:36:52AM +0100, Beckett Richard-qswi266 wrote: I would think just a normal search feature would be good enough. Find the first one and then hit next for the next one etc. That, IMO is the best feature of Crimson Editor... you can highlight something with the mouse, hit F3 and it takes you to the next instance of it, hit shiftF3 and it takes you to the previous one. in vim you position the cursor over a word, and hit '*' to jump to the next + highlite all matches. 'n'/'N' will move you to the next/previous match. I would like it even better though, sometimes I want to highlite several items in different colors, like keeping multiple active searches, each with a different highlite color. And for free, it's worth every penny ;-) vim, even freeer. one of my favorite vim features, is the ability to pipe a selected portion ( or all ) of the text through an external program, and have it replace by the output of this program. when manipulating some piece of information, I often prefix it with '__DATA__' and a little bit of perl, starting with 'while (DATA)', and then pipe the whole contents of my current window through perl, with '!Gperl' so I can easily experiment with the data while keeping it in my editor. ( always fun to have a 'my XYZ is better'-type discussion. ) willem ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs