perl.crypto http://www.nntp.perl.org/group/perl.crypto/ ... Copyright 1998-2015 perl.org Tue, 26 May 2015 15:41:32 +0000 ask@perl.org Crypt::CBC 2.30 by Perforin Hi<br/><br/>I have a problem with my Crypt::CBC v2.30.<br/>Some files can be encrypted and decrypted but others don&#39;t. It gives me<br/>the following error:<br/>&quot;Ciphertext does not begin with a valid header for &#39;salt&#39; header mode&quot;<br/><br/>Things I already did:<br/>googled that stuff. Seems that encrypted content with older versions are<br/>incompatible with the latest versions of Crypt::CBC....<br/>Played around with -salt, -header randomiv and so on<br/>One line (text)files are no problem.<br/><br/><br/>It rly bothers me because my script is able to encrypt/decrypt some<br/>files without any error =/<br/><br/><br/>I&#39;m running Ubuntu latest version. Files are encrypted/decrypted with<br/>Crypt::CBC 2.30 using Twofish.<br/><br/>Link to my script --&gt;<br/>http://download.adamas.ai/dlbase/Scripts/twofish_crypter.txt<br/><br/><br/>Greetings<br/> http://www.nntp.perl.org/group/perl.crypto/2012/05/msg104.html Sat, 12 May 2012 05:08:06 +0000 need "license string" ideas by Chris Howard <br/>I&#39;m working on a &quot;license&quot; system which will take IP address and<br/>expiration date, possibly some other data, and produce an &quot;encrypted&quot;<br/>license key string.<br/><br/>The license key string will then sit in a file, various programs<br/>will access the file to see if this installation is appropriately <br/>licensed.<br/><br/>This doesn&#39;t need to be bullet proof, just a bit of a bother<br/>for people who should be reminded when their license is up.<br/>And to keep people from spreading the licensed programs all over<br/>the place while still lying in bed.<br/><br/>So, I think I need it to be a two-way thing, not too heavy on<br/>the calculations, output of ASCII. <br/><br/>Any suggestions?<br/><br/><br/><br/> http://www.nntp.perl.org/group/perl.crypto/2011/01/msg103.html Sun, 30 Jan 2011 08:12:14 +0000 Re: Encrypting large files by Dave Paris perldoc Crypt::CBC covers this.<br/><br/>open(OUTFILE,&quot;&gt;$destination_file&quot;) or die $!<br/>$cipher-&gt;start(&#39;encrypting&#39;);<br/>print OUTFILE $cipher-&gt;crypt($_) while &lt;$UPLOADFILE&gt;;<br/>print OUTFILE $cipher-&gt;finish();<br/>close(OUTFILE);<br/><br/>Kindest~<br/>Dave<br/><br/>On 4/7/2010 7:56 AM, Fabian Gut wrote:<br/>&gt; Hello<br/>&gt;<br/>&gt; I have a script that reads an uploaded file, encrypts it and saves it.<br/>&gt; The code I use is this:<br/>&gt;<br/>&gt; # Open and read the uploaded file<br/>&gt; my $UPLOADFILE = $q-&gt;param(&#39;upfile&#39;);<br/>&gt; flock( $UPLOADFILE, 1 );<br/>&gt; local $/;<br/>&gt; my $data = &lt;$UPLOADFILE&gt;;<br/>&gt; close($UPLOADFILE);<br/>&gt;<br/>&gt; # Encrypt the file<br/>&gt; my $cipher = Crypt::CBC-&gt;new( -key =&gt; $key, -cipher =&gt; &#39;Blowfish&#39; );<br/>&gt; my $enc_data = $cipher-&gt;encrypt($data);<br/>&gt;<br/>&gt; # Save the file.<br/>&gt; open( SAFEFILE, &quot;&gt;&quot;, &quot;$file&quot; )<br/>&gt; or die &quot;FATAL ERROR: Could not create $file : $!&quot;;<br/>&gt; flock( SAFEFILE, 2 );<br/>&gt; print SAFEFILE $enc_data;<br/>&gt; close(SAFEFILE);<br/>&gt;<br/>&gt;<br/>&gt; Where $q is a CGI object, $key holds a string (&quot;password&quot;) and $file is<br/>&gt; the filename for the new file.<br/>&gt;<br/>&gt; This works perfectly. However, it might become a memory issue if large<br/>&gt; files (several 100 MB) are uploaded. Is there a better (or easier) way<br/>&gt; to encrypt large files than writing the CBC myself so I can read/write<br/>&gt; the files block by block?<br/>&gt;<br/>&gt; Greetings<br/>&gt; Fabian Gut<br/> http://www.nntp.perl.org/group/perl.crypto/2010/04/msg102.html Wed, 07 Apr 2010 03:26:42 +0000 Encrypting large files by Fabian Gut Hello<br/><br/>I have a script that reads an uploaded file, encrypts it and saves it. <br/>The code I use is this:<br/><br/># Open and read the uploaded file<br/>my $UPLOADFILE = $q-&gt;param(&#39;upfile&#39;);<br/>flock( $UPLOADFILE, 1 );<br/>local $/;<br/>my $data = &lt;$UPLOADFILE&gt;;<br/>close($UPLOADFILE);<br/><br/># Encrypt the file<br/>my $cipher = Crypt::CBC-&gt;new( -key =&gt; $key, -cipher =&gt; &#39;Blowfish&#39; );<br/>my $enc_data = $cipher-&gt;encrypt($data);<br/><br/># Save the file.<br/>open( SAFEFILE, &quot;&gt;&quot;, &quot;$file&quot; )<br/> or die &quot;FATAL ERROR: Could not create $file : $!&quot;;<br/>flock( SAFEFILE, 2 );<br/>print SAFEFILE $enc_data;<br/>close(SAFEFILE);<br/><br/><br/>Where $q is a CGI object, $key holds a string (&quot;password&quot;) and $file is <br/>the filename for the new file.<br/><br/>This works perfectly. However, it might become a memory issue if large <br/>files (several 100 MB) are uploaded. Is there a better (or easier) way <br/>to encrypt large files than writing the CBC myself so I can read/write <br/>the files block by block?<br/><br/>Greetings<br/>Fabian Gut<br/> http://www.nntp.perl.org/group/perl.crypto/2010/04/msg101.html Wed, 07 Apr 2010 00:55:51 +0000 Perl exercises by Arun Anirudhan Where can I get perl cryptographic problems starting from simple programs?<br/><br/>-- <br/>With regards<br/>Arun Anirudhan<br/>MTech Student, NIT Calicut<br/>9495983679<br/><br/> http://www.nntp.perl.org/group/perl.crypto/2008/08/msg100.html Sat, 16 Aug 2008 11:03:59 +0000 AW: sign string with certificate by Reif Peter &gt; On Mon, 30 Jun 2008 16:33:32 +0200, peter.reif@wien.gv.at <br/>&gt; (&quot;Reif Peter&quot;) <br/>&gt; wrote: <br/>&gt; <br/>&gt; &gt;How do I write a script in perl that signs a string with a <br/>&gt; certificate <br/>&gt; &gt;(e.g. a SSL server certificate) to get a pkcs7 signature. I <br/>&gt; want a pkcs7 <br/>&gt; &gt;signature, because it contains the signing certificate and the ca. <br/>&gt; &gt; <br/>&gt; &gt;Thanks <br/>&gt; &gt;Peter <br/>&gt; <br/>&gt; I&#39;m no expert at this, but can&#39;t you just take the older x509 scripts <br/>&gt; and replace x509 with pkcs7 ? <br/>&gt; <br/>&gt; This shell outline works, but I don&#39;t know if it&#39;s correct use. <br/>&gt; ################################################## <br/>&gt; #!/bin/sh <br/>&gt; <br/>&gt; #Step one - create the key and request: <br/>&gt; openssl req -new &gt; new.cert.csr <br/>&gt; <br/>&gt; #Step two - remove the passphrase from the key (optional): <br/>&gt; openssl rsa -in privkey.pem -out new.cert.key <br/>&gt; <br/>&gt; #Step three - convert request into signed cert: <br/>&gt; openssl pkcs7 -in new.cert.csr -out new.cert.cert -req -signkey <br/>&gt; new.cert.key -days 3650 <br/>&gt; ################################################### <br/>&gt; <br/>&gt; Now you can try to get this to run in Perl thru IPC, but it may be <br/>&gt; tough. You may need to run openssl thru expect. <br/>&gt; <br/>Thanks, but I don&#39;t want to create a certificate, I want to sign a <br/>string with an certifikate. I can do this with <br/> <br/> openssl rsautl -sign <br/> <br/>But then I have a signed string, but the Information about the signing <br/>certificate ist lost. If I had a pkcs7 certificate as the result of the <br/>signing process, the sigining certificate would be included in the <br/>result. <br/> <br/>Peter <br/> http://www.nntp.perl.org/group/perl.crypto/2008/07/msg99.html Thu, 03 Jul 2008 06:34:35 +0000 Re: sign string with certificate by zentara On Mon, 30 Jun 2008 16:33:32 +0200, peter.reif@wien.gv.at (&quot;Reif Peter&quot;)<br/>wrote:<br/><br/>&gt;How do I write a script in perl that signs a string with a certificate<br/>&gt;(e.g. a SSL server certificate) to get a pkcs7 signature. I want a pkcs7<br/>&gt;signature, because it contains the signing certificate and the ca.<br/>&gt;<br/>&gt;Thanks<br/>&gt;Peter<br/><br/>I&#39;m no expert at this, but can&#39;t you just take the older x509 scripts<br/>and replace x509 with pkcs7 ?<br/><br/>This shell outline works, but I don&#39;t know if it&#39;s correct use.<br/>##################################################<br/>#!/bin/sh<br/><br/>#Step one - create the key and request:<br/>openssl req -new &gt; new.cert.csr<br/><br/>#Step two - remove the passphrase from the key (optional):<br/>openssl rsa -in privkey.pem -out new.cert.key<br/><br/>#Step three - convert request into signed cert:<br/>openssl pkcs7 -in new.cert.csr -out new.cert.cert -req -signkey<br/>new.cert.key -days 3650<br/>###################################################<br/><br/>Now you can try to get this to run in Perl thru IPC, but it may be <br/>tough. You may need to run openssl thru expect.<br/><br/>The command examples at <br/>http://www.mobilefish.com/developer/openssl/openssl_quickguide_command_examples.html<br/>show what is needed.<br/><br/><br/>zentara<br/><br/><br/>-- <br/>I&#39;m not really a human, but I play one on earth.<br/>http://zentara.net/CandyGram_for_Mongo.html <br/> http://www.nntp.perl.org/group/perl.crypto/2008/07/msg98.html Tue, 01 Jul 2008 04:45:46 +0000 sign string with certificate by Reif Peter How do I write a script in perl that signs a string with a certificate <br/>(e.g. a SSL server certificate) to get a pkcs7 signature. I want a pkcs7 <br/>signature, because it contains the signing certificate and the ca. <br/> <br/>Thanks <br/>Peter <br/> http://www.nntp.perl.org/group/perl.crypto/2008/06/msg97.html Mon, 30 Jun 2008 07:35:26 +0000 RE: Error while installing CRYPT::DES module at Windows XP by mohammed.mustafa Dear Dave&amp; all, <br/> <br/> Yes I took the precaution what you mentioned below. Please find few <br/>more things what I did as below, <br/> <br/> I made sure about the PATH environmental variable as you indicated <br/>here. Then it was asking me for mspdb80.dll (something like this file ), <br/>then I searched that file and used the path of that file in PATH <br/>environmental variable. When I did this I got the below error but enable <br/>to resolve this, so could you please help me to overcome this? <br/> <br/>C:\Documents and Settings\mukaa\Mustafa\ssh_files\Crypt-DES-2.05&gt;nmake <br/> <br/>Microsoft (R) Program Maintenance Utility Version 1.50 <br/> <br/>Copyright (c) Microsoft Corp 1988-94. All rights reserved. <br/> cl -c -nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE <br/>-DNO_ST <br/>RICT -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC <br/>-DPERL_IMPLICIT <br/>_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi <br/>-DNDEBUG <br/> -O1 -DVERSION=\&quot;2.05\&quot; -DXS_VERSION=\&quot;2.05\&quot; &quot;-IC:\Perl\lib\CORE&quot; <br/>DES.c <br/>DES.c <br/>C:\Perl\lib\CORE\perl.h(587) : fatal error C1083: Cannot open include <br/>file: &#39;sys/types.h&#39;: No such file or directory <br/> <br/>NMAKE : fatal error U1077: &#39;C:\WINNT\system32\cmd.exe&#39; : return code <br/>&#39;0x2&#39; Stop. <br/> <br/>Regards, <br/>Mustafa <br/> <br/> <br/>-----Original Message----- <br/>From: Dave Paris [mailto:dparis@w3works.com] <br/>Sent: Friday, June 06, 2008 9:42 PM <br/>To: Mohammed Mustafa (WT01 - Testing Services) <br/>Cc: perl-crypto@perl.org <br/>Subject: Re: Error while installing CRYPT::DES module at Windows XP <br/> <br/>Not to sound condescending, but is cl.exe in your PATH envvar? Have you <br/> <br/> closed the command shell since installing VC++? (it won&#39;t get new PATH <br/> <br/>data until it&#39;s closed and reopened) <br/> <br/>Best~ <br/>-d <br/> <br/>mohammed.mustafa@wipro.com sent forth: <br/>&gt; Hi Dave Paris &amp; All, <br/>&gt; <br/>&gt; I have install Microsoft VC++, and it is install successfully. <br/>&gt; But still I am getting the same error, which is as below. <br/>&gt; <br/>&gt; C:\Documents and Settings\mukaa\Mustafa\ssh_files\Crypt-DES-2.05&gt;nmake <br/>&gt; <br/>&gt; Microsoft (R) Program Maintenance Utility Version 1.50 <br/>&gt; Copyright (c) Microsoft Corp 1988-94. All rights reserved. <br/>&gt; <br/>&gt; cl -c -nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 <br/>-D_CONSOLE <br/>&gt; -DNO_ST <br/>&gt; RICT -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC <br/>&gt; -DPERL_IMPLICIT <br/>&gt; _CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD <br/>-Zi <br/>&gt; -DNDEBUG <br/>&gt; -O1 -DVERSION=\&quot;2.05\&quot; -DXS_VERSION=\&quot;2.05\&quot; <br/>&quot;-IC:\Perl\lib\CORE&quot; <br/>&gt; DES.c <br/>&gt; &#39;cl&#39; is not recognized as an internal or external command, <br/>&gt; operable program or batch file. <br/>&gt; NMAKE : fatal error U1077: &#39;C:\WINNT\system32\cmd.exe&#39; : return code <br/>&gt; &#39;0x1&#39; <br/>&gt; Stop. <br/>&gt; <br/>&gt; Please help me to resolve this. Thanks a lot for your co-operation. <br/>&gt; <br/>&gt; Regards, <br/>&gt; Mustafa <br/>&gt; <br/>&gt; -----Original Message----- <br/>&gt; From: Dave Paris [mailto:dparis@w3works.com] <br/>&gt; Sent: Tuesday, June 03, 2008 6:35 PM <br/>&gt; To: Mohammed Mustafa (WT01 - Testing Services) <br/>&gt; Cc: perl-crypto@perl.org <br/>&gt; Subject: Re: Error while installing CRYPT::DES module at Windows XP <br/>&gt; <br/>&gt; Fortunately, the tools are free. :-) <br/>&gt; http://www.winprog.org/tutorial/msvc.html <br/>&gt; <br/>&gt; Best~ <br/>&gt; -dave <br/>&gt; <br/>&gt; mohammed.mustafa@wipro.com sent forth: <br/>&gt;&gt; I got that, but any idea how to overcome the below issues? <br/>&gt;&gt; <br/>&gt;&gt; Thanks for your kind help. <br/>&gt;&gt; <br/>&gt;&gt; ~Mustafa <br/>&gt;&gt; <br/>&gt;&gt; -----Original Message----- <br/>&gt;&gt; From: Dave Paris [mailto:dparis@w3works.com] <br/>&gt;&gt; Sent: Tuesday, June 03, 2008 6:11 PM <br/>&gt;&gt; To: Mohammed Mustafa (WT01 - Testing Services) <br/>&gt;&gt; Subject: Re: Error while installing CRYPT::DES module at Windows XP <br/>&gt;&gt; <br/>&gt;&gt; I believe ActiveState may have a pre-compiled version of Crypt::DES <br/>in <br/>&gt; <br/>&gt;&gt; their version of CPAN (limited in scope, but has the basics). The <br/>&gt;&gt; oddity here is that Crypt::DES is now bundled with the core install, <br/>&gt; so <br/>&gt;&gt; I&#39;m not sure why it wasn&#39;t included initially with the main distro. <br/>&gt;&gt; <br/>&gt;&gt; Best~ <br/>&gt;&gt; -dave <br/>&gt;&gt; <br/>&gt;&gt; mohammed.mustafa@wipro.com sent forth: <br/>&gt;&gt;&gt; Hi DSP, <br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt; Is it require to install VC++, as I am installing Crypt::DES on <br/>&gt;&gt;&gt; Windows m/c and the perl version is ActivePerl verion 5.10. <br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt; Be help me to overcome this? <br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt; Regards, <br/>&gt;&gt;&gt; Mustafa <br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt; -----Original Message----- <br/>&gt;&gt;&gt; From: Dave Paris [mailto:dparis@w3works.com] <br/>&gt;&gt;&gt; Sent: Tuesday, June 03, 2008 5:30 PM <br/>&gt;&gt;&gt; To: Mohammed Mustafa (WT01 - Testing Services) <br/>&gt;&gt;&gt; Cc: perl-crypto@perl.org <br/>&gt;&gt;&gt; Subject: Re: Error while installing CRYPT::DES module at Windows XP <br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt; Looks like you may have an incomplete installation of VC++ (or they <br/>&gt;&gt; may <br/>&gt;&gt;&gt; have changed the linker application. <br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt; Best~ <br/>&gt;&gt;&gt; -dsp <br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt; mohammed.mustafa@wipro.com sent forth: <br/>&gt;&gt;&gt;&gt; Dear Friends, <br/>&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt; While trying to install Crypt::DES module on windows, I am <br/>&gt;&gt;&gt;&gt; getting the following problem, so please help me to overcome this. <br/>&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt; C:\Documents and <br/>&gt;&gt; Settings\mukaa\Mustafa\ssh_files\Crypt-DES-2.05&gt;nmake <br/>&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt; Microsoft (R) Program Maintenance Utility Version 1.50 <br/>&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt; Copyright (c) Microsoft Corp 1988-94. All rights reserved. <br/>&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt; cl -c -nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 <br/>&gt;&gt;&gt; -D_CONSOLE <br/>&gt;&gt;&gt;&gt; -DNO_ST <br/>&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt; RICT -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC <br/>&gt;&gt;&gt;&gt; -DPERL_IMPLICIT <br/>&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt; _CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD <br/>&gt;&gt;&gt; -Zi <br/>&gt;&gt;&gt;&gt; -DNDEBUG <br/>&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt; -O1 -DVERSION=\&quot;2.05\&quot; -DXS_VERSION=\&quot;2.05\&quot; <br/>&gt;&gt;&gt; &quot;-IC:\Perl\lib\CORE&quot; <br/>&gt;&gt;&gt;&gt; DES.c <br/>&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt; &#39;cl&#39; is not recognized as an internal or external command, <br/>&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt; operable program or batch file. <br/>&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt; NMAKE : fatal error U1077: &#39;C:\WINNT\system32\cmd.exe&#39; : return <br/>code <br/>&gt;&gt;&gt;&gt; &#39;0x1&#39; Stop. <br/>&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt; Waiting for your reply. <br/>&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt; Regards, <br/>&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt; Mustafa <br/>&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt; Please do not print this email unless it is absolutely necessary. <br/>&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt; The information contained in this electronic message and any <br/>&gt;&gt;&gt; attachments to this message are intended for the exclusive use of <br/>the <br/>&gt;&gt;&gt; addressee(s) and may contain proprietary, confidential or privileged <br/>&gt;&gt;&gt; information. If you are not the intended recipient, you should not <br/>&gt;&gt;&gt; disseminate, distribute or copy this e-mail. Please notify the <br/>sender <br/>&gt;&gt;&gt; immediately and destroy all copies of this message and any <br/>&gt;&gt; attachments. <br/>&gt;&gt;&gt;&gt; WARNING: Computer viruses can be transmitted via email. The <br/>&gt; recipient <br/>&gt;&gt;&gt; should check this email and any attachments for the presence of <br/>&gt;&gt; viruses. <br/>&gt;&gt;&gt; The company accepts no liability for any damage caused by any virus <br/>&gt;&gt;&gt; transmitted by this email. <br/>&gt;&gt;&gt;&gt; www.wipro.com <br/>&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt; Please do not print this email unless it is absolutely necessary. <br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt; The information contained in this electronic message and any <br/>&gt;&gt; attachments to this message are intended for the exclusive use of the <br/>&gt;&gt; addressee(s) and may contain proprietary, confidential or privileged <br/>&gt;&gt; information. If you are not the intended recipient, you should not <br/>&gt;&gt; disseminate, distribute or copy this e-mail. Please notify the sender <br/>&gt;&gt; immediately and destroy all copies of this message and any <br/>&gt; attachments. <br/>&gt;&gt;&gt; WARNING: Computer viruses can be transmitted via email. The <br/>recipient <br/>&gt;&gt; should check this email and any attachments for the presence of <br/>&gt; viruses. <br/>&gt;&gt; The company accepts no liability for any damage caused by any virus <br/>&gt;&gt; transmitted by this email. <br/>&gt;&gt;&gt; www.wipro.com <br/>&gt;&gt; Please do not print this email unless it is absolutely necessary. <br/>&gt;&gt; <br/>&gt;&gt; The information contained in this electronic message and any <br/>&gt; attachments to this message are intended for the exclusive use of the <br/>&gt; addressee(s) and may contain proprietary, confidential or privileged <br/>&gt; information. If you are not the intended recipient, you should not <br/>&gt; disseminate, distribute or copy this e-mail. Please notify the sender <br/>&gt; immediately and destroy all copies of this message and any <br/>attachments. <br/>&gt;&gt; WARNING: Computer viruses can be transmitted via email. The recipient <br/>&gt; should check this email and any attachments for the presence of <br/>viruses. <br/>&gt; The company accepts no liability for any damage caused by any virus <br/>&gt; transmitted by this email. <br/>&gt;&gt; www.wipro.com <br/>&gt; <br/>&gt; Please do not print this email unless it is absolutely necessary. <br/>&gt; <br/>&gt; The information contained in this electronic message and any <br/>attachments to this message are intended for the exclusive use of the <br/>addressee(s) and may contain proprietary, confidential or privileged <br/>information. If you are not the intended recipient, you should not <br/>disseminate, distribute or copy this e-mail. Please notify the sender <br/>immediately and destroy all copies of this message and any attachments. <br/>&gt; <br/>&gt; WARNING: Computer viruses can be transmitted via email. The recipient <br/>should check this email and any attachments for the presence of viruses. <br/>The company accepts no liability for any damage caused by any virus <br/>transmitted by this email. <br/>&gt; <br/>&gt; www.wipro.com <br/> <br/>Please do not print this email unless it is absolutely necessary. <br/> <br/>The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. <br/> <br/>WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. <br/> <br/>www.wipro.com <br/> http://www.nntp.perl.org/group/perl.crypto/2008/06/msg96.html Mon, 09 Jun 2008 05:21:40 +0000 Re: Error while installing CRYPT::DES module at Windows XP by Dave Paris Not to sound condescending, but is cl.exe in your PATH envvar? Have you <br/> closed the command shell since installing VC++? (it won&#39;t get new PATH <br/>data until it&#39;s closed and reopened)<br/><br/>Best~<br/>-d<br/><br/>mohammed.mustafa@wipro.com sent forth:<br/>&gt; Hi Dave Paris &amp; All,<br/>&gt; <br/>&gt; I have install Microsoft VC++, and it is install successfully.<br/>&gt; But still I am getting the same error, which is as below.<br/>&gt; <br/>&gt; C:\Documents and Settings\mukaa\Mustafa\ssh_files\Crypt-DES-2.05&gt;nmake<br/>&gt; <br/>&gt; Microsoft (R) Program Maintenance Utility Version 1.50<br/>&gt; Copyright (c) Microsoft Corp 1988-94. All rights reserved.<br/>&gt; <br/>&gt; cl -c -nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE<br/>&gt; -DNO_ST<br/>&gt; RICT -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC<br/>&gt; -DPERL_IMPLICIT<br/>&gt; _CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi<br/>&gt; -DNDEBUG<br/>&gt; -O1 -DVERSION=\&quot;2.05\&quot; -DXS_VERSION=\&quot;2.05\&quot; &quot;-IC:\Perl\lib\CORE&quot;<br/>&gt; DES.c<br/>&gt; &#39;cl&#39; is not recognized as an internal or external command,<br/>&gt; operable program or batch file.<br/>&gt; NMAKE : fatal error U1077: &#39;C:\WINNT\system32\cmd.exe&#39; : return code<br/>&gt; &#39;0x1&#39;<br/>&gt; Stop.<br/>&gt; <br/>&gt; Please help me to resolve this. Thanks a lot for your co-operation.<br/>&gt; <br/>&gt; Regards,<br/>&gt; Mustafa<br/>&gt; <br/>&gt; -----Original Message-----<br/>&gt; From: Dave Paris [mailto:dparis@w3works.com] <br/>&gt; Sent: Tuesday, June 03, 2008 6:35 PM<br/>&gt; To: Mohammed Mustafa (WT01 - Testing Services)<br/>&gt; Cc: perl-crypto@perl.org<br/>&gt; Subject: Re: Error while installing CRYPT::DES module at Windows XP<br/>&gt; <br/>&gt; Fortunately, the tools are free. :-)<br/>&gt; http://www.winprog.org/tutorial/msvc.html<br/>&gt; <br/>&gt; Best~<br/>&gt; -dave<br/>&gt; <br/>&gt; mohammed.mustafa@wipro.com sent forth:<br/>&gt;&gt; I got that, but any idea how to overcome the below issues?<br/>&gt;&gt;<br/>&gt;&gt; Thanks for your kind help.<br/>&gt;&gt;<br/>&gt;&gt; ~Mustafa<br/>&gt;&gt;<br/>&gt;&gt; -----Original Message-----<br/>&gt;&gt; From: Dave Paris [mailto:dparis@w3works.com] <br/>&gt;&gt; Sent: Tuesday, June 03, 2008 6:11 PM<br/>&gt;&gt; To: Mohammed Mustafa (WT01 - Testing Services)<br/>&gt;&gt; Subject: Re: Error while installing CRYPT::DES module at Windows XP<br/>&gt;&gt;<br/>&gt;&gt; I believe ActiveState may have a pre-compiled version of Crypt::DES in<br/>&gt; <br/>&gt;&gt; their version of CPAN (limited in scope, but has the basics). The <br/>&gt;&gt; oddity here is that Crypt::DES is now bundled with the core install,<br/>&gt; so <br/>&gt;&gt; I&#39;m not sure why it wasn&#39;t included initially with the main distro.<br/>&gt;&gt;<br/>&gt;&gt; Best~<br/>&gt;&gt; -dave<br/>&gt;&gt;<br/>&gt;&gt; mohammed.mustafa@wipro.com sent forth:<br/>&gt;&gt;&gt; Hi DSP,<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; Is it require to install VC++, as I am installing Crypt::DES on<br/>&gt;&gt;&gt; Windows m/c and the perl version is ActivePerl verion 5.10.<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; Be help me to overcome this?<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; Regards,<br/>&gt;&gt;&gt; Mustafa<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; -----Original Message-----<br/>&gt;&gt;&gt; From: Dave Paris [mailto:dparis@w3works.com] <br/>&gt;&gt;&gt; Sent: Tuesday, June 03, 2008 5:30 PM<br/>&gt;&gt;&gt; To: Mohammed Mustafa (WT01 - Testing Services)<br/>&gt;&gt;&gt; Cc: perl-crypto@perl.org<br/>&gt;&gt;&gt; Subject: Re: Error while installing CRYPT::DES module at Windows XP<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; Looks like you may have an incomplete installation of VC++ (or they<br/>&gt;&gt; may <br/>&gt;&gt;&gt; have changed the linker application.<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; Best~<br/>&gt;&gt;&gt; -dsp<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; mohammed.mustafa@wipro.com sent forth:<br/>&gt;&gt;&gt;&gt; Dear Friends,<br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt; While trying to install Crypt::DES module on windows, I am<br/>&gt;&gt;&gt;&gt; getting the following problem, so please help me to overcome this.<br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt; C:\Documents and<br/>&gt;&gt; Settings\mukaa\Mustafa\ssh_files\Crypt-DES-2.05&gt;nmake<br/>&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt; Microsoft (R) Program Maintenance Utility Version 1.50<br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt; Copyright (c) Microsoft Corp 1988-94. All rights reserved.<br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt; cl -c -nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN32<br/>&gt;&gt;&gt; -D_CONSOLE<br/>&gt;&gt;&gt;&gt; -DNO_ST<br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt; RICT -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC<br/>&gt;&gt;&gt;&gt; -DPERL_IMPLICIT<br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt; _CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD<br/>&gt;&gt;&gt; -Zi<br/>&gt;&gt;&gt;&gt; -DNDEBUG<br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt; -O1 -DVERSION=\&quot;2.05\&quot; -DXS_VERSION=\&quot;2.05\&quot;<br/>&gt;&gt;&gt; &quot;-IC:\Perl\lib\CORE&quot;<br/>&gt;&gt;&gt;&gt; DES.c<br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt; &#39;cl&#39; is not recognized as an internal or external command,<br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt; operable program or batch file.<br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt; NMAKE : fatal error U1077: &#39;C:\WINNT\system32\cmd.exe&#39; : return code<br/>&gt;&gt;&gt;&gt; &#39;0x1&#39; Stop.<br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt; Waiting for your reply.<br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt; Regards,<br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt; Mustafa<br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt; <br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt; Please do not print this email unless it is absolutely necessary. <br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt;&gt; The information contained in this electronic message and any<br/>&gt;&gt;&gt; attachments to this message are intended for the exclusive use of the<br/>&gt;&gt;&gt; addressee(s) and may contain proprietary, confidential or privileged<br/>&gt;&gt;&gt; information. If you are not the intended recipient, you should not<br/>&gt;&gt;&gt; disseminate, distribute or copy this e-mail. Please notify the sender<br/>&gt;&gt;&gt; immediately and destroy all copies of this message and any<br/>&gt;&gt; attachments. <br/>&gt;&gt;&gt;&gt; WARNING: Computer viruses can be transmitted via email. The<br/>&gt; recipient<br/>&gt;&gt;&gt; should check this email and any attachments for the presence of<br/>&gt;&gt; viruses.<br/>&gt;&gt;&gt; The company accepts no liability for any damage caused by any virus<br/>&gt;&gt;&gt; transmitted by this email. <br/>&gt;&gt;&gt;&gt; www.wipro.com<br/>&gt;&gt;&gt;&gt;<br/>&gt;&gt;&gt; Please do not print this email unless it is absolutely necessary. <br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; The information contained in this electronic message and any<br/>&gt;&gt; attachments to this message are intended for the exclusive use of the<br/>&gt;&gt; addressee(s) and may contain proprietary, confidential or privileged<br/>&gt;&gt; information. If you are not the intended recipient, you should not<br/>&gt;&gt; disseminate, distribute or copy this e-mail. Please notify the sender<br/>&gt;&gt; immediately and destroy all copies of this message and any<br/>&gt; attachments. <br/>&gt;&gt;&gt; WARNING: Computer viruses can be transmitted via email. The recipient<br/>&gt;&gt; should check this email and any attachments for the presence of<br/>&gt; viruses.<br/>&gt;&gt; The company accepts no liability for any damage caused by any virus<br/>&gt;&gt; transmitted by this email. <br/>&gt;&gt;&gt; www.wipro.com<br/>&gt;&gt; Please do not print this email unless it is absolutely necessary. <br/>&gt;&gt;<br/>&gt;&gt; The information contained in this electronic message and any<br/>&gt; attachments to this message are intended for the exclusive use of the<br/>&gt; addressee(s) and may contain proprietary, confidential or privileged<br/>&gt; information. If you are not the intended recipient, you should not<br/>&gt; disseminate, distribute or copy this e-mail. Please notify the sender<br/>&gt; immediately and destroy all copies of this message and any attachments. <br/>&gt;&gt; WARNING: Computer viruses can be transmitted via email. The recipient<br/>&gt; should check this email and any attachments for the presence of viruses.<br/>&gt; The company accepts no liability for any damage caused by any virus<br/>&gt; transmitted by this email. <br/>&gt;&gt; www.wipro.com<br/>&gt; <br/>&gt; Please do not print this email unless it is absolutely necessary. <br/>&gt; <br/>&gt; The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. <br/>&gt; <br/>&gt; WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. <br/>&gt; <br/>&gt; www.wipro.com<br/> http://www.nntp.perl.org/group/perl.crypto/2008/06/msg95.html Fri, 06 Jun 2008 09:12:34 +0000 RE: Error while installing CRYPT::DES module at Windows XP by mohammed.mustafa Hi Dave Paris &amp; All, <br/> <br/> I have install Microsoft VC++, and it is install successfully. <br/>But still I am getting the same error, which is as below. <br/> <br/>C:\Documents and Settings\mukaa\Mustafa\ssh_files\Crypt-DES-2.05&gt;nmake <br/> <br/>Microsoft (R) Program Maintenance Utility Version 1.50 <br/>Copyright (c) Microsoft Corp 1988-94. All rights reserved. <br/> <br/> cl -c -nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE <br/>-DNO_ST <br/>RICT -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC <br/>-DPERL_IMPLICIT <br/>_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi <br/>-DNDEBUG <br/> -O1 -DVERSION=\&quot;2.05\&quot; -DXS_VERSION=\&quot;2.05\&quot; &quot;-IC:\Perl\lib\CORE&quot; <br/>DES.c <br/>&#39;cl&#39; is not recognized as an internal or external command, <br/>operable program or batch file. <br/>NMAKE : fatal error U1077: &#39;C:\WINNT\system32\cmd.exe&#39; : return code <br/>&#39;0x1&#39; <br/>Stop. <br/> <br/>Please help me to resolve this. Thanks a lot for your co-operation. <br/> <br/>Regards, <br/>Mustafa <br/> <br/>-----Original Message----- <br/>From: Dave Paris [mailto:dparis@w3works.com] <br/>Sent: Tuesday, June 03, 2008 6:35 PM <br/>To: Mohammed Mustafa (WT01 - Testing Services) <br/>Cc: perl-crypto@perl.org <br/>Subject: Re: Error while installing CRYPT::DES module at Windows XP <br/> <br/>Fortunately, the tools are free. :-) <br/>http://www.winprog.org/tutorial/msvc.html <br/> <br/>Best~ <br/>-dave <br/> <br/>mohammed.mustafa@wipro.com sent forth: <br/>&gt; I got that, but any idea how to overcome the below issues? <br/>&gt; <br/>&gt; Thanks for your kind help. <br/>&gt; <br/>&gt; ~Mustafa <br/>&gt; <br/>&gt; -----Original Message----- <br/>&gt; From: Dave Paris [mailto:dparis@w3works.com] <br/>&gt; Sent: Tuesday, June 03, 2008 6:11 PM <br/>&gt; To: Mohammed Mustafa (WT01 - Testing Services) <br/>&gt; Subject: Re: Error while installing CRYPT::DES module at Windows XP <br/>&gt; <br/>&gt; I believe ActiveState may have a pre-compiled version of Crypt::DES in <br/> <br/>&gt; their version of CPAN (limited in scope, but has the basics). The <br/>&gt; oddity here is that Crypt::DES is now bundled with the core install, <br/>so <br/>&gt; I&#39;m not sure why it wasn&#39;t included initially with the main distro. <br/>&gt; <br/>&gt; Best~ <br/>&gt; -dave <br/>&gt; <br/>&gt; mohammed.mustafa@wipro.com sent forth: <br/>&gt;&gt; Hi DSP, <br/>&gt;&gt; <br/>&gt;&gt; <br/>&gt;&gt; Is it require to install VC++, as I am installing Crypt::DES on <br/>&gt;&gt; Windows m/c and the perl version is ActivePerl verion 5.10. <br/>&gt;&gt; <br/>&gt;&gt; Be help me to overcome this? <br/>&gt;&gt; <br/>&gt;&gt; Regards, <br/>&gt;&gt; Mustafa <br/>&gt;&gt; <br/>&gt;&gt; <br/>&gt;&gt; -----Original Message----- <br/>&gt;&gt; From: Dave Paris [mailto:dparis@w3works.com] <br/>&gt;&gt; Sent: Tuesday, June 03, 2008 5:30 PM <br/>&gt;&gt; To: Mohammed Mustafa (WT01 - Testing Services) <br/>&gt;&gt; Cc: perl-crypto@perl.org <br/>&gt;&gt; Subject: Re: Error while installing CRYPT::DES module at Windows XP <br/>&gt;&gt; <br/>&gt;&gt; Looks like you may have an incomplete installation of VC++ (or they <br/>&gt; may <br/>&gt;&gt; have changed the linker application. <br/>&gt;&gt; <br/>&gt;&gt; Best~ <br/>&gt;&gt; -dsp <br/>&gt;&gt; <br/>&gt;&gt; mohammed.mustafa@wipro.com sent forth: <br/>&gt;&gt;&gt; Dear Friends, <br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt; While trying to install Crypt::DES module on windows, I am <br/>&gt;&gt;&gt; getting the following problem, so please help me to overcome this. <br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt; C:\Documents and <br/>&gt; Settings\mukaa\Mustafa\ssh_files\Crypt-DES-2.05&gt;nmake <br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt; Microsoft (R) Program Maintenance Utility Version 1.50 <br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt; Copyright (c) Microsoft Corp 1988-94. All rights reserved. <br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt; cl -c -nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 <br/>&gt;&gt; -D_CONSOLE <br/>&gt;&gt;&gt; -DNO_ST <br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt; RICT -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC <br/>&gt;&gt;&gt; -DPERL_IMPLICIT <br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt; _CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD <br/>&gt;&gt; -Zi <br/>&gt;&gt;&gt; -DNDEBUG <br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt; -O1 -DVERSION=\&quot;2.05\&quot; -DXS_VERSION=\&quot;2.05\&quot; <br/>&gt;&gt; &quot;-IC:\Perl\lib\CORE&quot; <br/>&gt;&gt;&gt; DES.c <br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt; &#39;cl&#39; is not recognized as an internal or external command, <br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt; operable program or batch file. <br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt; NMAKE : fatal error U1077: &#39;C:\WINNT\system32\cmd.exe&#39; : return code <br/>&gt;&gt;&gt; &#39;0x1&#39; Stop. <br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt; Waiting for your reply. <br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt; Regards, <br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt; Mustafa <br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt; Please do not print this email unless it is absolutely necessary. <br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt; The information contained in this electronic message and any <br/>&gt;&gt; attachments to this message are intended for the exclusive use of the <br/>&gt;&gt; addressee(s) and may contain proprietary, confidential or privileged <br/>&gt;&gt; information. If you are not the intended recipient, you should not <br/>&gt;&gt; disseminate, distribute or copy this e-mail. Please notify the sender <br/>&gt;&gt; immediately and destroy all copies of this message and any <br/>&gt; attachments. <br/>&gt;&gt;&gt; WARNING: Computer viruses can be transmitted via email. The <br/>recipient <br/>&gt;&gt; should check this email and any attachments for the presence of <br/>&gt; viruses. <br/>&gt;&gt; The company accepts no liability for any damage caused by any virus <br/>&gt;&gt; transmitted by this email. <br/>&gt;&gt;&gt; www.wipro.com <br/>&gt;&gt;&gt; <br/>&gt;&gt; Please do not print this email unless it is absolutely necessary. <br/>&gt;&gt; <br/>&gt;&gt; The information contained in this electronic message and any <br/>&gt; attachments to this message are intended for the exclusive use of the <br/>&gt; addressee(s) and may contain proprietary, confidential or privileged <br/>&gt; information. If you are not the intended recipient, you should not <br/>&gt; disseminate, distribute or copy this e-mail. Please notify the sender <br/>&gt; immediately and destroy all copies of this message and any <br/>attachments. <br/>&gt;&gt; WARNING: Computer viruses can be transmitted via email. The recipient <br/>&gt; should check this email and any attachments for the presence of <br/>viruses. <br/>&gt; The company accepts no liability for any damage caused by any virus <br/>&gt; transmitted by this email. <br/>&gt;&gt; www.wipro.com <br/>&gt; <br/>&gt; Please do not print this email unless it is absolutely necessary. <br/>&gt; <br/>&gt; The information contained in this electronic message and any <br/>attachments to this message are intended for the exclusive use of the <br/>addressee(s) and may contain proprietary, confidential or privileged <br/>information. If you are not the intended recipient, you should not <br/>disseminate, distribute or copy this e-mail. Please notify the sender <br/>immediately and destroy all copies of this message and any attachments. <br/>&gt; <br/>&gt; WARNING: Computer viruses can be transmitted via email. The recipient <br/>should check this email and any attachments for the presence of viruses. <br/>The company accepts no liability for any damage caused by any virus <br/>transmitted by this email. <br/>&gt; <br/>&gt; www.wipro.com <br/> <br/>Please do not print this email unless it is absolutely necessary. <br/> <br/>The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. <br/> <br/>WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. <br/> <br/>www.wipro.com <br/> http://www.nntp.perl.org/group/perl.crypto/2008/06/msg94.html Fri, 06 Jun 2008 08:40:11 +0000 Re: Error while installing CRYPT::DES module at Windows XP by Dave Paris Fortunately, the tools are free. :-)<br/>http://www.winprog.org/tutorial/msvc.html<br/><br/>Best~<br/>-dave<br/><br/>mohammed.mustafa@wipro.com sent forth:<br/>&gt; I got that, but any idea how to overcome the below issues?<br/>&gt; <br/>&gt; Thanks for your kind help.<br/>&gt; <br/>&gt; ~Mustafa<br/>&gt; <br/>&gt; -----Original Message-----<br/>&gt; From: Dave Paris [mailto:dparis@w3works.com] <br/>&gt; Sent: Tuesday, June 03, 2008 6:11 PM<br/>&gt; To: Mohammed Mustafa (WT01 - Testing Services)<br/>&gt; Subject: Re: Error while installing CRYPT::DES module at Windows XP<br/>&gt; <br/>&gt; I believe ActiveState may have a pre-compiled version of Crypt::DES in <br/>&gt; their version of CPAN (limited in scope, but has the basics). The <br/>&gt; oddity here is that Crypt::DES is now bundled with the core install, so <br/>&gt; I&#39;m not sure why it wasn&#39;t included initially with the main distro.<br/>&gt; <br/>&gt; Best~<br/>&gt; -dave<br/>&gt; <br/>&gt; mohammed.mustafa@wipro.com sent forth:<br/>&gt;&gt; Hi DSP,<br/>&gt;&gt;<br/>&gt;&gt;<br/>&gt;&gt; Is it require to install VC++, as I am installing Crypt::DES on<br/>&gt;&gt; Windows m/c and the perl version is ActivePerl verion 5.10.<br/>&gt;&gt;<br/>&gt;&gt; Be help me to overcome this?<br/>&gt;&gt;<br/>&gt;&gt; Regards,<br/>&gt;&gt; Mustafa<br/>&gt;&gt;<br/>&gt;&gt;<br/>&gt;&gt; -----Original Message-----<br/>&gt;&gt; From: Dave Paris [mailto:dparis@w3works.com] <br/>&gt;&gt; Sent: Tuesday, June 03, 2008 5:30 PM<br/>&gt;&gt; To: Mohammed Mustafa (WT01 - Testing Services)<br/>&gt;&gt; Cc: perl-crypto@perl.org<br/>&gt;&gt; Subject: Re: Error while installing CRYPT::DES module at Windows XP<br/>&gt;&gt;<br/>&gt;&gt; Looks like you may have an incomplete installation of VC++ (or they<br/>&gt; may <br/>&gt;&gt; have changed the linker application.<br/>&gt;&gt;<br/>&gt;&gt; Best~<br/>&gt;&gt; -dsp<br/>&gt;&gt;<br/>&gt;&gt; mohammed.mustafa@wipro.com sent forth:<br/>&gt;&gt;&gt; Dear Friends,<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; While trying to install Crypt::DES module on windows, I am<br/>&gt;&gt;&gt; getting the following problem, so please help me to overcome this.<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; C:\Documents and<br/>&gt; Settings\mukaa\Mustafa\ssh_files\Crypt-DES-2.05&gt;nmake<br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; Microsoft (R) Program Maintenance Utility Version 1.50<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; Copyright (c) Microsoft Corp 1988-94. All rights reserved.<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; cl -c -nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN32<br/>&gt;&gt; -D_CONSOLE<br/>&gt;&gt;&gt; -DNO_ST<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; RICT -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC<br/>&gt;&gt;&gt; -DPERL_IMPLICIT<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; _CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD<br/>&gt;&gt; -Zi<br/>&gt;&gt;&gt; -DNDEBUG<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; -O1 -DVERSION=\&quot;2.05\&quot; -DXS_VERSION=\&quot;2.05\&quot;<br/>&gt;&gt; &quot;-IC:\Perl\lib\CORE&quot;<br/>&gt;&gt;&gt; DES.c<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; &#39;cl&#39; is not recognized as an internal or external command,<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; operable program or batch file.<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; NMAKE : fatal error U1077: &#39;C:\WINNT\system32\cmd.exe&#39; : return code<br/>&gt;&gt;&gt; &#39;0x1&#39; Stop.<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; Waiting for your reply.<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; Regards,<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; Mustafa<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; <br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; Please do not print this email unless it is absolutely necessary. <br/>&gt;&gt;&gt;<br/>&gt;&gt;&gt; The information contained in this electronic message and any<br/>&gt;&gt; attachments to this message are intended for the exclusive use of the<br/>&gt;&gt; addressee(s) and may contain proprietary, confidential or privileged<br/>&gt;&gt; information. If you are not the intended recipient, you should not<br/>&gt;&gt; disseminate, distribute or copy this e-mail. Please notify the sender<br/>&gt;&gt; immediately and destroy all copies of this message and any<br/>&gt; attachments. <br/>&gt;&gt;&gt; WARNING: Computer viruses can be transmitted via email. The recipient<br/>&gt;&gt; should check this email and any attachments for the presence of<br/>&gt; viruses.<br/>&gt;&gt; The company accepts no liability for any damage caused by any virus<br/>&gt;&gt; transmitted by this email. <br/>&gt;&gt;&gt; www.wipro.com<br/>&gt;&gt;&gt;<br/>&gt;&gt; Please do not print this email unless it is absolutely necessary. <br/>&gt;&gt;<br/>&gt;&gt; The information contained in this electronic message and any<br/>&gt; attachments to this message are intended for the exclusive use of the<br/>&gt; addressee(s) and may contain proprietary, confidential or privileged<br/>&gt; information. If you are not the intended recipient, you should not<br/>&gt; disseminate, distribute or copy this e-mail. Please notify the sender<br/>&gt; immediately and destroy all copies of this message and any attachments. <br/>&gt;&gt; WARNING: Computer viruses can be transmitted via email. The recipient<br/>&gt; should check this email and any attachments for the presence of viruses.<br/>&gt; The company accepts no liability for any damage caused by any virus<br/>&gt; transmitted by this email. <br/>&gt;&gt; www.wipro.com<br/>&gt; <br/>&gt; Please do not print this email unless it is absolutely necessary. <br/>&gt; <br/>&gt; The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. <br/>&gt; <br/>&gt; WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. <br/>&gt; <br/>&gt; www.wipro.com<br/> http://www.nntp.perl.org/group/perl.crypto/2008/06/msg93.html Tue, 03 Jun 2008 06:04:59 +0000 Re: Error while installing CRYPT::DES module at Windows XP by Dave Paris Looks like you may have an incomplete installation of VC++ (or they may <br/>have changed the linker application.<br/><br/>Best~<br/>-dsp<br/><br/>mohammed.mustafa@wipro.com sent forth:<br/>&gt; Dear Friends,<br/>&gt; <br/>&gt; <br/>&gt; <br/>&gt; While trying to install Crypt::DES module on windows, I am<br/>&gt; getting the following problem, so please help me to overcome this.<br/>&gt; <br/>&gt; <br/>&gt; <br/>&gt; C:\Documents and Settings\mukaa\Mustafa\ssh_files\Crypt-DES-2.05&gt;nmake<br/>&gt; <br/>&gt; <br/>&gt; <br/>&gt; Microsoft (R) Program Maintenance Utility Version 1.50<br/>&gt; <br/>&gt; Copyright (c) Microsoft Corp 1988-94. All rights reserved.<br/>&gt; <br/>&gt; <br/>&gt; <br/>&gt; cl -c -nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE<br/>&gt; -DNO_ST<br/>&gt; <br/>&gt; RICT -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC<br/>&gt; -DPERL_IMPLICIT<br/>&gt; <br/>&gt; _CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi<br/>&gt; -DNDEBUG<br/>&gt; <br/>&gt; -O1 -DVERSION=\&quot;2.05\&quot; -DXS_VERSION=\&quot;2.05\&quot; &quot;-IC:\Perl\lib\CORE&quot;<br/>&gt; DES.c<br/>&gt; <br/>&gt; &#39;cl&#39; is not recognized as an internal or external command,<br/>&gt; <br/>&gt; operable program or batch file.<br/>&gt; <br/>&gt; NMAKE : fatal error U1077: &#39;C:\WINNT\system32\cmd.exe&#39; : return code<br/>&gt; &#39;0x1&#39; Stop.<br/>&gt; <br/>&gt; <br/>&gt; <br/>&gt; Waiting for your reply.<br/>&gt; <br/>&gt; <br/>&gt; <br/>&gt; Regards,<br/>&gt; <br/>&gt; Mustafa<br/>&gt; <br/>&gt; <br/>&gt; <br/>&gt; <br/>&gt; Please do not print this email unless it is absolutely necessary. <br/>&gt; <br/>&gt; The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. <br/>&gt; <br/>&gt; WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. <br/>&gt; <br/>&gt; www.wipro.com<br/>&gt; <br/> http://www.nntp.perl.org/group/perl.crypto/2008/06/msg92.html Tue, 03 Jun 2008 05:00:18 +0000 Error while installing CRYPT::DES module at Windows XP by mohammed.mustafa Dear Friends, <br/> <br/> <br/> <br/> While trying to install Crypt::DES module on windows, I am <br/>getting the following problem, so please help me to overcome this. <br/> <br/> <br/> <br/>C:\Documents and Settings\mukaa\Mustafa\ssh_files\Crypt-DES-2.05&gt;nmake <br/> <br/> <br/> <br/>Microsoft (R) Program Maintenance Utility Version 1.50 <br/> <br/>Copyright (c) Microsoft Corp 1988-94. All rights reserved. <br/> <br/> <br/> <br/> cl -c -nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE <br/>-DNO_ST <br/> <br/>RICT -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC <br/>-DPERL_IMPLICIT <br/> <br/>_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi <br/>-DNDEBUG <br/> <br/> -O1 -DVERSION=\&quot;2.05\&quot; -DXS_VERSION=\&quot;2.05\&quot; &quot;-IC:\Perl\lib\CORE&quot; <br/>DES.c <br/> <br/>&#39;cl&#39; is not recognized as an internal or external command, <br/> <br/>operable program or batch file. <br/> <br/>NMAKE : fatal error U1077: &#39;C:\WINNT\system32\cmd.exe&#39; : return code <br/>&#39;0x1&#39; Stop. <br/> <br/> <br/> <br/>Waiting for your reply. <br/> <br/> <br/> <br/>Regards, <br/> <br/>Mustafa <br/> <br/> <br/> <br/> <br/>Please do not print this email unless it is absolutely necessary. <br/> <br/>The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. <br/> <br/>WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. <br/> <br/>www.wipro.com <br/> <br/> http://www.nntp.perl.org/group/perl.crypto/2008/06/msg91.html Tue, 03 Jun 2008 04:02:57 +0000 Perl keystore by Patrick Donelan Hi,<br/><br/>Having just finished reading &quot;Cryptography in the Database&quot; by Kevin Kenan<br/>of Symantic, I&#39;m wondering if anyone has tackled the problem of writing a<br/>local keystore in Perl, eg. the software equivalent of an HSM where<br/>encryption keys can be semi-securely stored? The module I could find on the<br/>CPAN that was remotely similar was Data::Encrypted. Alternatively, a program<br/>written in another language that can be easily interfaced from Perl would<br/>suffice..<br/><br/>Regards,<br/><br/>Patrick Donelan<br/><br/> http://www.nntp.perl.org/group/perl.crypto/2008/03/msg90.html Sat, 29 Mar 2008 18:30:17 +0000 CRL Verification by Ward.P.Fontenot Hi, <br/> <br/>I am trying to get a Perl script together to parse my CRL&#39;s and am <br/>getting the following error: <br/> <br/>$VAR1 = bless( {&#39;_error&#39; =&gt; &#39;decode error at <br/>/usr/local/share/perl/5.8.8/Convert/ASN1/_decode.pm line 57.&#39; }, <br/>&#39;Crypt::X509::CRL&#39; ); <br/> <br/>Here is the script: <br/> <br/>#!/usr/bin/perl -w <br/>use Convert::ASN1; <br/>use Crypt::X509::CRL; <br/>use Data::Dumper; <br/> <br/>$crl = &quot;/home/fontenwp/workspace/crl_validation/ent.crl&quot;; <br/> <br/>$decoded = Crypt::X509::CRL-&gt;new(crl =&gt; $crl); <br/> <br/>print Dumper $decoded <br/> <br/>Paul Fontenot <br/>Cryptography Services - PKI <br/>CAST|IST|EIM|TES|TIG|Wells Fargo <br/>Email: ward.p.fontenot@wellsfargo.com <br/>Phone: (480) 437-7795 <br/> <br/>This message may contain confidential and/or privileged information. If <br/>you are not the addressee or authorized to receive this for the <br/>addressee, you must not use, copy, disclose, or take any action based on <br/>this message or any information herein. If you have received this <br/>message in error, please advise the sender immediately by reply e-mail <br/>and delete this message. Thank you for your cooperation. <br/> <br/> <br/> http://www.nntp.perl.org/group/perl.crypto/2008/01/msg89.html Fri, 04 Jan 2008 12:40:25 +0000 Decrypt Strings encrypted in .NET by Georg Grabler Hello everyone.<br/><br/>I&#39;ve been trying and trying to decrypt strings encrypted with .NET.<br/><br/>I used the CPAN Modules Crypt::CBC, Crypt::Rijndael, Crypt::Blowfish.<br/><br/>In .NET i used the already implemented code for Rijndael, a example rijndael<br/>code from codeproject.com, the .net crypt library for blowfish from<br/>sourceforge (which seems to use a to csharp ported code from the original<br/>OpenBSD Blowfish algorithm).<br/><br/><br/>I could never decrypt strings encrypted with .net, and i&#39;m starting to get<br/>crazy about this topic.<br/>I&#39;ve read a lot that people having troubles doing so. Personally i dont know<br/>what exaclty .net and perl encryption is the difference.<br/><br/>Anyway, i also tryed to use Mcrypt, since some PHP developers wrote they got<br/>the communication working using this.<br/>Couldn&#39;t get the current mcrypt work with the mcrypt cpan module (probably<br/>because of the quite out-of-date version the mcrypt module was written for,<br/>which isn&#39;t available for download at all).<br/><br/>Does anyone of you have any advice of how to encrypt a string in .net so it<br/>will be decryptable in perl?<br/><br/>The message i got by encoding (always, blowfish and rijndael) using CBC<br/>(both sides, server and client) and a null (in .net it&#39;s called zero<br/>padding) was:<br/><br/>Ciphertext does not begin with a valid header for &#39;salt&#39; header mode at ....<br/><br/><br/>What i also could see is that the encryption strings .net created always<br/>were 24 byte, while the same string encrypted in perl used to have 32 bytes.<br/><br/>I&#39;d appreciate any help you can provide within this.<br/>Thank you,<br/>Grabler Georg<br/><br/> http://www.nntp.perl.org/group/perl.crypto/2006/10/msg88.html Fri, 06 Oct 2006 02:37:22 +0000 Need pure perl implementation of RC2 encryptio/decruption by =?windows-1251?Q?=D1=EB=E0=E2=E5=E9_=CA=E0=F0=E0=E4=E6=EE=E2?= Hi Guys,<br/> I am working on pure Perl implementation of the RC2 enc/decryption <br/>algorithm. I made some progress, but I am stuck at the moment and cannot <br/>figure out where is the problem. Can somebody take a look at:<br/>http://laffer.cvs.sourceforge.net/laffer/laffer/modules/proxy/Crypt/RC2.pm?revision=1.1&amp;view=markup<br/><br/><br/>Thank you in advance<br/><br/>Sincerely,<br/> Slaff<br/><br/><br/><br/> http://www.nntp.perl.org/group/perl.crypto/2006/06/msg87.html Fri, 16 Jun 2006 17:17:52 +0000 SOLUTION Re: Crypt-OpenSSL-RSA unable to build by Sidney Markowitz On 2/20/06 5:34 AM, Condor wrote:<br/>&gt; The only one place i found that this error exist in<br/>&gt; network: http://www.nntp.perl.org/group/perl.cpan.testers/269106 but<br/>&gt; no solution how to fix the problem.<br/><br/>I had the same problem as that test failure trying to build under a<br/>Fedora Core 5 with the latest OpenSSL 0.9.8a installed as the openssl<br/>and openssl-dev RPMs.<br/><br/>I found that RSA.xs needs to have the following includes added:<br/><br/>#include &lt;openssl/md5.h&gt;<br/>#include &lt;openssl/ripemd.h&gt;<br/><br/>See bug report<br/><br/>http://rt.cpan.org/Public/Bug/Display.html?id=18239<br/><br/>Digging in, I see that the only reason it does not also need<br/><br/>#include &lt;openssl/sha.h&gt;<br/><br/>is because sha.h is included in x509.h which is included by ssl.h which<br/>is included in RSA.xs.<br/><br/>I guess that something changed in a recent version of openSSL and that<br/>older versions had md5.h and ripemd.h indirectly included when ssl.h<br/>was. To make the fix more robust I would include all three of md5.h,<br/>sha.h, and ripemd.h in RSA.xs.<br/><br/> -- sidney<br/><br/> http://www.nntp.perl.org/group/perl.crypto/2006/04/msg86.html Mon, 03 Apr 2006 20:10:34 +0000 SOLUTION: Re: Crypt-OpenSSL-RSA unable to build by Sidney Markowitz On 2/20/06 5:34 AM, Condor wrote:<br/>&gt; The only one place i found that this error exist in<br/>&gt; network: http://www.nntp.perl.org/group/perl.cpan.testers/269106 but no<br/>&gt; solution how to fix the problem.<br/><br/>I had the same problem as that test failure trying to build under a<br/>Fedora Core 5 with the latest OpenSSL 0.9.8a installed as the openssl<br/>and openssl-dev RPMs.<br/><br/>I found that RSA.xs needs to have the following includes added:<br/><br/>#include &lt;openssl/md5.h&gt;<br/>#include &lt;openssl/ripemd.h&gt;<br/><br/>See bug report<br/><br/>http://rt.cpan.org/Public/Bug/Display.html?id=18239<br/><br/>Digging in, I see that the only reason it does not also need<br/><br/>#include &lt;openssl/sha.h&gt;<br/><br/>is because sha.h is included in x509.h which is included by ssl.h which<br/>is included in RSA.xs.<br/><br/>I guess that something changed in a recent version of openSSL and that<br/>older versions had md5.h and ripemd.h indirectly included when ssl.h<br/>was. To make the fix more robust I would include all three of md5.h,<br/>sha.h, and ripemd.h in RSA.xs.<br/><br/> -- sidney<br/> http://www.nntp.perl.org/group/perl.crypto/2006/04/msg85.html Mon, 03 Apr 2006 06:04:04 +0000 Re: SOLUTION Re: Crypt-OpenSSL-RSA unable to build by Condor &gt; On 2/20/06 5:34 AM, Condor wrote:<br/>&gt;&gt; The only one place i found that this error exist in<br/>&gt;&gt; network: http://www.nntp.perl.org/group/perl.cpan.testers/269106 but<br/>&gt;&gt; no solution how to fix the problem.<br/>&gt;<br/>&gt; I had the same problem as that test failure trying to build under a<br/>&gt; Fedora Core 5 with the latest OpenSSL 0.9.8a installed as the openssl<br/>&gt; and openssl-dev RPMs.<br/>&gt;<br/>&gt; I found that RSA.xs needs to have the following includes added:<br/>&gt;<br/>&gt; #include &lt;openssl/md5.h&gt;<br/>&gt; #include &lt;openssl/ripemd.h&gt;<br/>&gt;<br/>&gt; See bug report<br/>&gt;<br/>&gt; http://rt.cpan.org/Public/Bug/Display.html?id=18239<br/>&gt;<br/>&gt; Digging in, I see that the only reason it does not also need<br/>&gt;<br/>&gt; #include &lt;openssl/sha.h&gt;<br/>&gt;<br/>&gt; is because sha.h is included in x509.h which is included by ssl.h which<br/>&gt; is included in RSA.xs.<br/>&gt;<br/>&gt; I guess that something changed in a recent version of openSSL and that<br/>&gt; older versions had md5.h and ripemd.h indirectly included when ssl.h<br/>&gt; was. To make the fix more robust I would include all three of md5.h,<br/>&gt; sha.h, and ripemd.h in RSA.xs.<br/>&gt;<br/>&gt; -- sidney<br/>&gt;<br/>&gt;<br/><br/>Yes,<br/>i found solution of problem and i report to author of project after two<br/>month ago.<br/><br/>Regards,<br/>Condor<br/><br/><br/><br/> http://www.nntp.perl.org/group/perl.crypto/2006/04/msg84.html Sun, 02 Apr 2006 22:36:13 +0000 Re: Crypt-OpenSSL-RSA unable to build by zentara On Sun, 19 Feb 2006 18:34:53 +0200 (EET), condor@stz-bg.com (&quot;Condor&quot;)<br/>wrote:<br/><br/>&gt;i have problem with module Crypt-OpenSSL-RSA 0.22. Unable to build module<br/>&gt;and can&#39;t found any documentation how to fix the problem.<br/>&gt;The Crypt::OpenSSL::RSA 0.22 version require: Crypt::OpenSSL::Random. I<br/>&gt;installed module Crypt::OpenSSL::Random but i unable to build<br/>&gt;Crypt::OpenSSL::RSA. The only one place i found that this error exist in<br/>&gt;network: http://www.nntp.perl.org/group/perl.cpan.testers/269106 but no<br/>&gt;solution how to fix the problem. Error code is:<br/>&gt;<br/>&gt;cc -c -fno-strict-aliasing -pipe -Wdeclaration-after-statement<br/>&gt;-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2<br/>&gt;-march=i486 -mtune=i686 -DVERSION=\&quot;0.22\&quot; -DXS_VERSION=\&quot;0.22\&quot; -fPIC<br/>&gt;&quot;-I/usr/lib/perl5/5.8.8/i486-linux/CORE&quot; -DPERL5 -DOPENSSL_NO_KRB5 RSA.c<br/>&gt;RSA.xs: In function `get_digest_length&#39;:<br/>&gt;RSA.xs:67: error: `MD5_DIGEST_LENGTH&#39; undeclared (first use in this function)<br/>&gt;RSA.xs:67: error: (Each undeclared identifier is reported only once<br/><br/>Well I may not be solving your problem, but I will say that it builds<br/>fine for me on linux.<br/><br/>That error <br/>RSA.xs:67: error: `MD5_DIGEST_LENGTH&#39; undeclared (first use in this<br/>function)<br/><br/>seems to indicate that your openssl headers are not being found, or<br/>you have an old version?<br/><br/>Quite often, it pays to get the very latest libraries, and install them<br/>from source.<br/><br/>You didn&#39;t say which platform, distribution, openssl versions, Perl<br/>version, etc, which you are using. That would help someone to analyze<br/>your problem.<br/><br/>Did you build openssl yourself, or did you install the distro&#39;s<br/>precompiled version? Many distro&#39;s have the libs split, into<br/>runtime and devel packages. You may need to install the openssl-devel<br/>package, or best is just to get the openssl source tarball, and install<br/>it. Then retry. <br/><br/>Goodluck.<br/><br/><br/>-- <br/>I&#39;m not really a human, but I play one on earth.<br/>http://zentara.net/japh.html<br/> http://www.nntp.perl.org/group/perl.crypto/2006/02/msg83.html Mon, 20 Feb 2006 06:35:34 +0000 Re: Crypt-OpenSSL-RSA unable to build by zentara On Sun, 19 Feb 2006 18:34:53 +0200 (EET), condor@stz-bg.com (&quot;Condor&quot;)<br/>wrote:<br/><br/>&gt;MD5_DIGEST_LENGTH&#39; undeclared<br/><br/>I looked on groups.google.com and it seems that this has been <br/>seen before. The reason was the openssl headers were not<br/>in the right place( probably the distribution moved them )<br/><br/>From the post<br/>##################################################<br/>After changing the line<br/> CFLAGS = -c -O -pipe -I/usr/local/include -I/usr/include -Iinclude/<br/>-Wall -g<br/>to<br/> CFLAGS = -c -O -pipe -I/usr/local/include/openssl -I/usr/include<br/>-Iinclude/ -Wall -g<br/>in files<br/> /usr/ports/security/libssh2/work/libssh2-0.11/Makefile and<br/>/usr/ports/security/libssh2/work/libssh2-0.11/src/Makefile<br/><br/>it works fine. <br/>###################################################<br/><br/>I know it&#39;s not your platform, but it is probably your problem.<br/>Find where your openssl headers are, and make sure you specify<br/>their correct location. Or you can just cheat and move them out<br/>of their &lt;openssl&gt; directory, into /usr/local/include<br/><br/>But like I said in my first post, installing openssl from source,<br/>usually sets it up right. <br/><br/><br/><br/>-- <br/>I&#39;m not really a human, but I play one on earth.<br/>http://zentara.net/japh.html<br/> http://www.nntp.perl.org/group/perl.crypto/2006/02/msg82.html Mon, 20 Feb 2006 06:35:33 +0000 Crypt-OpenSSL-RSA unable to build by Condor Hello,<br/>i have problem with module Crypt-OpenSSL-RSA 0.22. Unable to build module<br/>and can&#39;t found any documentation how to fix the problem.<br/>The Crypt::OpenSSL::RSA 0.22 version require: Crypt::OpenSSL::Random. I<br/>installed module Crypt::OpenSSL::Random but i unable to build<br/>Crypt::OpenSSL::RSA. The only one place i found that this error exist in<br/>network: http://www.nntp.perl.org/group/perl.cpan.testers/269106 but no<br/>solution how to fix the problem. Error code is:<br/><br/>cc -c -fno-strict-aliasing -pipe -Wdeclaration-after-statement<br/>-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2<br/>-march=i486 -mtune=i686 -DVERSION=\&quot;0.22\&quot; -DXS_VERSION=\&quot;0.22\&quot; -fPIC<br/>&quot;-I/usr/lib/perl5/5.8.8/i486-linux/CORE&quot; -DPERL5 -DOPENSSL_NO_KRB5 RSA.c<br/>RSA.xs: In function `get_digest_length&#39;:<br/>RSA.xs:67: error: `MD5_DIGEST_LENGTH&#39; undeclared (first use in this function)<br/>RSA.xs:67: error: (Each undeclared identifier is reported only once<br/>RSA.xs:67: error: for each function it appears in.)<br/>RSA.xs:73: error: `RIPEMD160_DIGEST_LENGTH&#39; undeclared (first use in this<br/>function)<br/>RSA.xs: In function `get_message_digest&#39;:<br/>RSA.xs:91: warning: return makes pointer from integer without a cast<br/>RSA.xs:97: warning: return makes pointer from integer without a cast<br/>RSA.xs: In function `XS_Crypt__OpenSSL__RSA_encrypt&#39;:<br/>RSA.xs:369: warning: passing arg 3 of `rsa_crypt&#39; from incompatible<br/>pointer type<br/>RSA.xs: In function `XS_Crypt__OpenSSL__RSA_decrypt&#39;:<br/>RSA.xs:378: warning: passing arg 3 of `rsa_crypt&#39; from incompatible<br/>pointer type<br/>RSA.xs: In function `XS_Crypt__OpenSSL__RSA_private_encrypt&#39;:<br/>RSA.xs:387: warning: passing arg 3 of `rsa_crypt&#39; from incompatible<br/>pointer type<br/>RSA.xs: In function `XS_Crypt__OpenSSL__RSA_public_decrypt&#39;:<br/>RSA.xs:396: warning: passing arg 3 of `rsa_crypt&#39; from incompatible<br/>pointer type<br/>make: *** [RSA.o] Error 1<br/><br/><br/>Any body can help?<br/><br/>Regards,<br/>John<br/><br/> http://www.nntp.perl.org/group/perl.crypto/2006/02/msg81.html Sun, 19 Feb 2006 10:28:02 +0000 Re: seeming failure with a specific word by zentara On Thu, 05 Jan 2006 21:54:02 -0500, mlandman@face2interface.com (Marty<br/>Landman) wrote:<br/><br/>&gt;I&#39;m trying to fix a bug in my application which encrypts using the <br/>&gt;<br/>&gt;Marty<br/><br/>Hi, here are a couple of snippets that work. The basic problem I saw<br/>was that files needed to be slurped into a scalar before encrypting,<br/>NOT done line by line, or by buffer-segments.<br/><br/>So here are 2 good ways, the first for files, the second for strings.<br/><br/>#!/usr/bin/perl<br/>use warnings;<br/>use strict;<br/>use Crypt::CBC;<br/><br/>my $KEY = &#39;secret_foo&#39;;<br/><br/>encryptFile( $0 );<br/>decryptFile( &quot;$0.enc&quot;);<br/><br/>sub encryptFile {<br/> my $filename = shift;<br/> $| = 1;<br/> print &quot;Encrypting $filename...&quot;;<br/> $| = 0;<br/><br/> my $cipher = Crypt::CBC-&gt;new(<br/> -key =&gt; $KEY,<br/> -cipher =&gt; &#39;Blowfish&#39;,<br/> -padding =&gt; &#39;space&#39;,<br/> -add_header =&gt; 1<br/> );<br/><br/> $cipher-&gt;start( &#39;encrypting&#39; );<br/> open( ORGINAL, &quot;&lt;./$filename&quot; );<br/> open( ENCRYPTED, &quot;&gt;./$filename.enc&quot; );<br/><br/> binmode ORGINAL;<br/> binmode ENCRYPTED;<br/><br/> while ( sysread( ORGINAL, my $buffer, 1024 ) ) {<br/> syswrite( ENCRYPTED, $cipher-&gt;crypt( $buffer ) );<br/> }<br/> #$cipher-&gt;finish; #wrong<br/> syswrite( ENCRYPTED, $cipher-&gt;finish );<br/><br/> close ENCRYPTED;<br/> close ORGINAL;<br/><br/> print &quot;done.\n&quot;;<br/>}<br/><br/>###################################################################<br/><br/>sub decryptFile {<br/><br/> my $filename = shift;<br/> $| = 1;<br/> print &quot;Decrypting $filename...&quot;;<br/> $| = 0;<br/><br/><br/> my $cipher = Crypt::CBC-&gt;new(<br/> -key =&gt; $KEY,<br/> -cipher =&gt; &#39;Blowfish&#39;,<br/> -padding =&gt; &#39;space&#39;,<br/> -add_header =&gt; 1<br/> );<br/><br/><br/> $cipher-&gt;start( &#39;decrypting&#39; );<br/> open( ENCRYPTED, &quot;&lt;./$filename&quot; );<br/> open( DECRYPTED, &quot;&gt;./$filename.decrypted&quot; );<br/><br/> binmode ENCRYPTED;<br/> binmode DECRYPTED;<br/><br/> while ( sysread( ENCRYPTED, my $buffer, 1024 ) ) {<br/> syswrite( DECRYPTED, $cipher-&gt;crypt( $buffer ) );<br/> }<br/># $cipher-&gt;finish; #wrong<br/> syswrite( DECRYPTED, $cipher-&gt;finish );<br/><br/> close DECRYPTED;<br/> close ENCRYPTED;<br/><br/> print &quot;done.\n&quot;;<br/>}<br/><br/>__END__<br/>################################<br/>#################################<br/>###############################<br/>##################################<br/><br/>#!/usr/bin/perl<br/>use warnings;<br/>use strict;<br/>use Crypt::CBC;<br/><br/>my $KEY = &#39;secret_foo&#39;;<br/>my $string = &#39;yadda yadda yadda yadda&#39;;<br/>print &quot;$string\n&quot;;<br/><br/>my $enc = encryptString( $string );<br/>my $dec = decryptString( $enc );<br/><br/>print &quot;$dec\n&quot;;<br/><br/>############################################################<br/>sub encryptString {<br/> my $string = shift;<br/> my $cipher = Crypt::CBC-&gt;new(<br/> -key =&gt; $KEY,<br/> -cipher =&gt; &#39;Blowfish&#39;,<br/> -padding =&gt; &#39;space&#39;,<br/> -add_header =&gt; 1<br/> );<br/><br/> my $enc = $cipher-&gt;encrypt( $string );<br/> return $enc; <br/>}<br/><br/>###################################################################<br/><br/>sub decryptString {<br/> my $string = shift;<br/> my $cipher = Crypt::CBC-&gt;new(<br/> -key =&gt; $KEY,<br/> -cipher =&gt; &#39;Blowfish&#39;,<br/> -padding =&gt; &#39;space&#39;,<br/> -add_header =&gt; 1<br/> );<br/><br/> my $dec = $cipher-&gt;decrypt( $string );<br/> return $dec; <br/>}<br/><br/>__END__<br/><br/><br/><br/>-- <br/>I&#39;m not really a human, but I play one on earth.<br/>http://zentara.net/japh.html<br/> http://www.nntp.perl.org/group/perl.crypto/2006/01/msg80.html Fri, 06 Jan 2006 10:52:34 +0000 Re: seeming failure with a specific word by zentara On Thu, 05 Jan 2006 21:54:02 -0500, mlandman@face2interface.com (Marty<br/>Landman) wrote:<br/><br/>&gt;I&#39;m trying to fix a bug in my application which encrypts using the <br/>&gt;following -- only the $key and &#39;iv&#39; have been changed :<br/><br/><br/>&gt;The problem only seems to crop up when the value Neil is used afaik. Is my <br/>&gt;initialization hosed, so that this kind of thing is likely to happen? I <br/>&gt;notice from the CPAN writeup<br/>&gt;<br/><br/>&gt;Yuck, what a mess. This site&#39;s in production and my client&#39;s just thrilled <br/>&gt;to death by all this. Fortunately this was discovered before things got <br/>&gt;into full swing, unfortunately it was discovered by the client, not me. :(<br/><br/>Hi again, I was premature with my first post. ;-(<br/><br/>I tried to test some sample scripts I had, which used to work,<br/>and lo-and-behold, I see corruption too. I am going to ask<br/>about this on perlmonks.org and see what the gurus say.<br/><br/>This is the test script. Run it, and it should encrypt and decrypt<br/>itself. There is some corruption in the output where an -&gt; gets<br/>changed to binary.<br/><br/>#!/usr/bin/perl<br/>use warnings;<br/>use strict;<br/>use Crypt::CBC;<br/><br/>##----------- encryption ------------<br/>my $cipher = Crypt::CBC-&gt;new( {&#39;key&#39; =&gt; &#39;secretfoo&#39;,<br/> &#39;cipher&#39; =&gt; &#39;Blowfish&#39;,<br/> &#39;padding&#39; =&gt; &#39;standard&#39;,<br/> });<br/><br/>open(INF, &quot;&lt; $0&quot; ) || die;<br/>open(OUTF, &quot;&gt;$0.crypt&quot;) || die;<br/><br/>$cipher-&gt;start(&#39;encrypting&#39;);<br/><br/> while (read(INF,my $buf, 1024 ) )<br/> {<br/> print OUTF $cipher-&gt;crypt($buf);<br/> }<br/><br/>print OUTF $cipher-&gt;finish;<br/><br/>close(INF);<br/>close(OUTF);<br/><br/>##-------------------------- decryption --------------------<br/><br/>my $cipher1 = Crypt::CBC-&gt;new( {&#39;key&#39; =&gt; &#39;secretfoo&#39;,<br/> &#39;cipher&#39; =&gt; &#39;Blowfish&#39;,<br/> &#39;padding&#39; =&gt; &#39;standard&#39;,<br/> });<br/><br/>open (INF1, &quot;&lt; $0.crypt&quot;) || die;<br/>open (OUTF1, &quot;&gt;$0.decrypt&quot;) || die;<br/><br/>$cipher-&gt;start(&#39;decrypting&#39;);<br/><br/>while (read(INF1,my $buf, 1024 ) )<br/> {<br/> print OUTF1 $cipher-&gt;decrypt($buf);<br/> }<br/> <br/> print OUTF1 $cipher-&gt;finish;<br/> close(INF1);<br/> close(OUTF1);<br/> <br/>__END__<br/><br/><br/>##############################################################<br/><br/>In my decrypted output, the following corruption occurs.<br/>It should be:<br/> <br/> print OUTF1 $cipher-&gt;decrypt($buf);<br/> }<br/> <br/> print OUTF1 $cipher-&gt;finish;<br/> close(INF1);<br/> close(OUTF1);<br/><br/><br/>I get decrypted:<br/> <br/> print OUTF1 $cipher&#6;&ouml;&ograve;c&Ntilde;&#0;&#132;&#148;<br/> }<br/> <br/> print OUTF1 $cipher-&gt;finish;<br/> close(INF1);<br/> close(OUTF1);<br/> <br/><br/>############################################################<br/> <br/><br/><br/>-- <br/>I&#39;m not really a human, but I play one on earth.<br/>http://zentara.net/japh.html<br/> http://www.nntp.perl.org/group/perl.crypto/2006/01/msg79.html Fri, 06 Jan 2006 10:52:30 +0000 Re: seeming failure with a specific word by Marty Landman At 06:14 AM 1/6/2006, zentara wrote:<br/><br/>&gt;Hi, have you tested the encryption-decryption manually, using the same <br/>&gt;values, without the web or database part?<br/><br/>This took a while to nail down.<br/><br/>&gt;Because you may be thinking it&#39;s an encryption problem, but it may <br/>&gt;actually be something like the web transfer or database transaction is <br/>&gt;adding or stripping spaces(or newlines), or do some kind of encoding change.<br/><br/>Of course you&#39;re right. I now believe it is caused by what Mysql docs list <br/>as a known bug whereby trailing blanks are removed from varchar&#39;s before <br/>storing in the DB. At least it isn&#39;t a memory leak in my code. :)<br/><br/>I think the fix is going to be redefining all the encrypted varchar types <br/>in the table to tinytext.<br/><br/>Thanks for helping me focus on the right area. Makes me kind of miss the <br/>old mainframe days though where environment was self-contained and hex <br/>editors were in conspicuous supply.<br/><br/>Marty<br/><br/><br/>Marty Landman, Face 2 Interface Inc. 845-679-9387<br/>Webmaster&#39;s Bulletin Board: http://bbs.face2interface.com/<br/>Web Installed Formmail: http://face2interface.com/formINSTal <br/><br/> http://www.nntp.perl.org/group/perl.crypto/2006/01/msg78.html Fri, 06 Jan 2006 10:07:24 +0000 Re: seeming failure with a specific word by zentara On Thu, 05 Jan 2006 21:54:02 -0500, mlandman@face2interface.com (Marty<br/>Landman) wrote:<br/><br/>&gt;I&#39;m trying to fix a bug in my application which encrypts using the <br/>&gt;following -- only the $key and &#39;iv&#39; have been changed :<br/>&gt;<br/>&gt; use Crypt::CBC();<br/>&gt; my $key = pack(&#39;H16&#39;,&quot;0123456789ABCDEF&quot;);<br/>&gt; Crypt::CBC-&gt;new(<br/>&gt; {<br/>&gt; &#39;key&#39; =&gt; $key,<br/>&gt; &#39;cipher&#39; =&gt; &#39;Blowfish&#39;,<br/>&gt; &#39;iv&#39; =&gt; &#39;Gopher!!&#39;,<br/>&gt; &#39;regenerate_key&#39; =&gt; 0,<br/>&gt; &#39;padding&#39; =&gt; &#39;space&#39;,<br/>&gt; &#39;prepend_iv&#39; =&gt; 0<br/>&gt; })<br/>&gt;<br/>&gt;This seems to work properly with an exception just noted in the field and <br/>&gt;confirmed by me. Namely when a certain word, let&#39;s say it&#39;s &#39;Neil&#39; gets <br/>&gt;entered via the app the data gets mangled. I don&#39;t know if the problem is <br/>&gt;on the encrypt, decrypt or both. I do know that if I enter 100 form field <br/>&gt;values (it&#39;s a web app) and 10 of them are Neil those fields go into the DB <br/>&gt;with the same encrypted values, and then decrypt to the same new values. <br/>&gt;But the decrypted version still looks encrypted if that makes sense, so <br/>&gt;somewhere it went wrong. The other 90 &#39;non-Neil&#39; values all encrypt and <br/>&gt;decrypt fine.<br/>&gt;<br/>&gt;The problem only seems to crop up when the value Neil is used afaik. Is my <br/>&gt;initialization hosed, so that this kind of thing is likely to happen? I <br/>&gt;notice from the CPAN writeup<br/>&gt;<br/>&gt;http://search.cpan.org/dist/Crypt-CBC/CBC.pm<br/>&gt;<br/>&gt;that I&#39;m using ancient features and perhaps wrongly at that. Seems like I <br/>&gt;ought to decrypt the DB, and then re-encrypt with a new cipher instantiated <br/>&gt;something like this:<br/>&gt;<br/>&gt;<br/>&gt; Crypt::CBC-&gt;new(<br/>&gt; {<br/>&gt; -key =&gt; &#39;my secret key&#39;,<br/>&gt; -cipher =&gt; &#39;Blowfish&#39;,<br/>&gt; -salt =&gt; 1<br/>&gt; })<br/>&gt;<br/>&gt;Yuck, what a mess. This site&#39;s in production and my client&#39;s just thrilled <br/>&gt;to death by all this. Fortunately this was discovered before things got <br/>&gt;into full swing, unfortunately it was discovered by the client, not me. :(<br/>&gt;<br/>&gt;Marty<br/><br/>Hi, have you tested the encryption-decryption manually, using the same<br/>values, without the web or database part?<br/><br/>Because you may be thinking it&#39;s an encryption problem, but it may<br/>actually be something like the web transfer or database transaction<br/>is adding or stripping spaces(or newlines), or do some kind of encoding<br/>change.<br/><br/>Can you provide a complete example where it fails to decrypt?<br/><br/>You may have to debug exactly what is happening as you submit your<br/>form values, what goes into the database, and what comes out, and you<br/>should do it in hex, so you can see if newlines change, etc.<br/><br/>A new version of Crypt Blowfish was just announced today, with some<br/>bugfixes<br/>http://freshmeat.net/projects/crypt_blowfish/?branch_id=39337&amp;release_id=216234<br/><br/>maybe it would help.<br/><br/>A page to check out:<br/> http://perlmonks.org?node_id=502487<br/><br/><br/><br/><br/><br/><br/>-- <br/>I&#39;m not really a human, but I play one on earth.<br/>http://zentara.net/japh.html<br/> http://www.nntp.perl.org/group/perl.crypto/2006/01/msg77.html Fri, 06 Jan 2006 04:02:54 +0000 seeming failure with a specific word by Marty Landman I&#39;m trying to fix a bug in my application which encrypts using the <br/>following -- only the $key and &#39;iv&#39; have been changed :<br/><br/> use Crypt::CBC();<br/> my $key = pack(&#39;H16&#39;,&quot;0123456789ABCDEF&quot;);<br/> Crypt::CBC-&gt;new(<br/> {<br/> &#39;key&#39; =&gt; $key,<br/> &#39;cipher&#39; =&gt; &#39;Blowfish&#39;,<br/> &#39;iv&#39; =&gt; &#39;Gopher!!&#39;,<br/> &#39;regenerate_key&#39; =&gt; 0,<br/> &#39;padding&#39; =&gt; &#39;space&#39;,<br/> &#39;prepend_iv&#39; =&gt; 0<br/> })<br/><br/>This seems to work properly with an exception just noted in the field and <br/>confirmed by me. Namely when a certain word, let&#39;s say it&#39;s &#39;Neil&#39; gets <br/>entered via the app the data gets mangled. I don&#39;t know if the problem is <br/>on the encrypt, decrypt or both. I do know that if I enter 100 form field <br/>values (it&#39;s a web app) and 10 of them are Neil those fields go into the DB <br/>with the same encrypted values, and then decrypt to the same new values. <br/>But the decrypted version still looks encrypted if that makes sense, so <br/>somewhere it went wrong. The other 90 &#39;non-Neil&#39; values all encrypt and <br/>decrypt fine.<br/><br/>The problem only seems to crop up when the value Neil is used afaik. Is my <br/>initialization hosed, so that this kind of thing is likely to happen? I <br/>notice from the CPAN writeup<br/><br/>http://search.cpan.org/dist/Crypt-CBC/CBC.pm<br/><br/>that I&#39;m using ancient features and perhaps wrongly at that. Seems like I <br/>ought to decrypt the DB, and then re-encrypt with a new cipher instantiated <br/>something like this:<br/><br/><br/> Crypt::CBC-&gt;new(<br/> {<br/> -key =&gt; &#39;my secret key&#39;,<br/> -cipher =&gt; &#39;Blowfish&#39;,<br/> -salt =&gt; 1<br/> })<br/><br/>Yuck, what a mess. This site&#39;s in production and my client&#39;s just thrilled <br/>to death by all this. Fortunately this was discovered before things got <br/>into full swing, unfortunately it was discovered by the client, not me. :(<br/><br/>Marty<br/><br/><br/>Marty Landman, Face 2 Interface Inc. 845-679-9387<br/>Webmaster&#39;s Bulletin Board: http://bbs.face2interface.com/<br/>Web Installed Formmail: http://face2interface.com/formINSTal <br/><br/> http://www.nntp.perl.org/group/perl.crypto/2006/01/msg76.html Thu, 05 Jan 2006 18:54:18 +0000 Re: Cipher stream did not contain IV or salt by Dave Paris Looks like you&#39;re using the old calling convention for Crypt::CBC. <br/>Please install current and read perldoc Crypt::CBC<br/><br/>Best~<br/>-dsp<br/><br/>ketvin@silicon.com.my wrote:<br/>&gt; Hi List,<br/>&gt; <br/>&gt; <br/>&gt; I am getting this error when i calling a cryptcookie.pl script from my<br/>&gt; index.cgi that use Crypt::CBC and MD5.<br/>&gt; <br/>&gt; [Fri Jun 17 11:30:31 2005] [error] [client x.x.x.x] Premature end of<br/>&gt; script headers: index.cgi<br/>&gt; [Fri Jun 17 11:30:31 2005] [error] [client x.x.x.x] Cipher stream did not<br/>&gt; contain IV or salt, and you did not specify these values in new() at<br/>&gt; libs/cryptcookies.pl line 24<br/>&gt; <br/>&gt; --------------------------cryptcookies.pl---------------------------------<br/>&gt; use MD5 ();<br/>&gt; use Crypt::CBC;<br/>&gt; <br/>&gt; use strict;<br/>&gt; use vars &#39;$CIPHER&#39;;<br/>&gt; <br/>&gt; require &quot;libs/checksum.pl&quot;;<br/>&gt; <br/>&gt; $lib::crypt::cryptcookies::secret = &quot;polkka&quot;;<br/>&gt; <br/>&gt; $CIPHER ||= Crypt::CBC-&gt;new($lib::crypt::cryptcookies::secret, &#39;Blowfish&#39;);<br/>&gt; <br/>&gt; ## args: data to be encrypted and checksummed<br/>&gt; sub encryptcookie {<br/>&gt; <br/>&gt; my $checksum = &amp;newchecksum($lib::crypt::cryptcookies::secret, @_);<br/>&gt; <br/>&gt; return $CIPHER-&gt;encrypt_hex(join(&#39;:&#39;, $checksum, @_));<br/>&gt; }<br/>&gt; <br/>&gt; ## 0: encrypted cookie<br/>&gt; sub decryptcookie {<br/>&gt; <br/>&gt; ##24 my($checksum, @values) = split(/:/, $CIPHER-&gt;decrypt_hex($_[0]));<br/>&gt; <br/>&gt; if(&amp;verifychecksum($lib::crypt::cryptcookies::secret, $checksum,<br/>&gt; @values)) {<br/>&gt; return @values;<br/>&gt; }<br/>&gt; <br/>&gt; return undef;<br/>&gt; <br/>&gt; }<br/>&gt; <br/>&gt; <br/>&gt; 1;<br/>&gt; ---------------------------------------------------------------------------<br/>&gt; <br/>&gt; I did install MD5 and Crypt::CBC. What will be the problem ?<br/>&gt; <br/>&gt; Thanks,<br/>&gt; KetVin<br/>&gt; <br/>&gt; ********************* Confidentiality Notice ************************** <br/>&gt; This message contains confidential information and is intended only for <br/>&gt; the individual named. If you are not the named addressee you should <br/>&gt; not disseminate, distribute or copy this e-mail. Please notify the <br/>&gt; sender immediately by e-mail if you have received this e-mail by <br/>&gt; mistake and delete this e-mail from your system.<br/>&gt; *****************************************************************<br/>&gt; <br/>&gt; <br/> http://www.nntp.perl.org/group/perl.crypto/2005/06/msg75.html Fri, 17 Jun 2005 05:08:55 +0000 Cipher stream did not contain IV or salt by ketvin Hi List,<br/><br/><br/>I am getting this error when i calling a cryptcookie.pl script from my<br/>index.cgi that use Crypt::CBC and MD5.<br/><br/>[Fri Jun 17 11:30:31 2005] [error] [client x.x.x.x] Premature end of<br/>script headers: index.cgi<br/>[Fri Jun 17 11:30:31 2005] [error] [client x.x.x.x] Cipher stream did not<br/>contain IV or salt, and you did not specify these values in new() at<br/>libs/cryptcookies.pl line 24<br/><br/>--------------------------cryptcookies.pl---------------------------------<br/>use MD5 ();<br/>use Crypt::CBC;<br/><br/>use strict;<br/>use vars &#39;$CIPHER&#39;;<br/><br/>require &quot;libs/checksum.pl&quot;;<br/><br/>$lib::crypt::cryptcookies::secret = &quot;polkka&quot;;<br/><br/>$CIPHER ||= Crypt::CBC-&gt;new($lib::crypt::cryptcookies::secret, &#39;Blowfish&#39;);<br/><br/>## args: data to be encrypted and checksummed<br/>sub encryptcookie {<br/><br/> my $checksum = &amp;newchecksum($lib::crypt::cryptcookies::secret, @_);<br/><br/> return $CIPHER-&gt;encrypt_hex(join(&#39;:&#39;, $checksum, @_));<br/>}<br/><br/>## 0: encrypted cookie<br/>sub decryptcookie {<br/><br/>##24 my($checksum, @values) = split(/:/, $CIPHER-&gt;decrypt_hex($_[0]));<br/><br/> if(&amp;verifychecksum($lib::crypt::cryptcookies::secret, $checksum,<br/>@values)) {<br/> return @values;<br/> }<br/><br/> return undef;<br/><br/>}<br/><br/><br/>1;<br/>---------------------------------------------------------------------------<br/><br/>I did install MD5 and Crypt::CBC. What will be the problem ?<br/><br/>Thanks,<br/>KetVin<br/><br/>********************* Confidentiality Notice ************************** <br/>This message contains confidential information and is intended only for <br/>the individual named. If you are not the named addressee you should <br/>not disseminate, distribute or copy this e-mail. Please notify the <br/>sender immediately by e-mail if you have received this e-mail by <br/>mistake and delete this e-mail from your system.<br/>*****************************************************************<br/><br/> http://www.nntp.perl.org/group/perl.crypto/2005/06/msg74.html Thu, 16 Jun 2005 20:50:00 +0000 Re: GnuTLS by Robert Bihlmeyer eyck &lt;dariush.pietrzak@gmail.com&gt; writes:<br/><br/>&gt; Is anyone working on GnuTLS bindings for perl? <br/><br/>Don&#39;t know of any code, but the last time I took a deeper look is a<br/>few years past.<br/><br/>&gt; Is there any interest in such bindings, or maybe going with MatrixSSL<br/>&gt; would be preferred?<br/><br/>I&#39;d also rather use GnuTLS in my perl projects than OpenSSL. Though<br/>Artistic + 4-clause-BSD is probably an ok combination, GPL + GPL is a<br/>no-brainer.<br/><br/>-- <br/>Robbe<br/><br/> http://www.nntp.perl.org/group/perl.crypto/2005/05/msg73.html Mon, 09 May 2005 22:47:12 +0000 GnuTLS by eyck Is anyone working on GnuTLS bindings for perl? <br/> There is SSLeay for openssl, and MatrixSSL (which is excellent btw, I <br/>found it relatively recently and built firewall-piercing FTP client <br/>with it, which was rather hard with openssl). <br/> Is there any interest in such bindings, or maybe going with MatrixSSL <br/>would be preferred? <br/>(i&#39;m trying to get away from openssl, due to licencing problems, <br/>lftp+ssl had to be removed from debian lately because of that, and I <br/>don&#39;t like loosing functionality like that :( ) <br/>-- <br/>Key fingerprint = 40D0 9FFB 9939 7320 8294 05E0 BCC7 02C4 75CC 50D9 <br/>We&#39;re giving you a new chance in life, and an opportunity <br/>to screw it up in a new, original way. <br/> http://www.nntp.perl.org/group/perl.crypto/2005/05/msg72.html Sun, 08 May 2005 13:15:14 +0000 Re: PING? is this group alive? by =?iso-8859-1?Q?=C6_-_Adam_Eisley_?= There are probably a lot more of us than are willing to talk. Usually the<br/>way it goes. I think that&#39;s the fist post in at least several months...<br/><br/>//Atom[antic]<br/><br/>www.shadowpuppet.net<br/><br/>Get awesome webhosting with Dreamhost<br/>(Free domain registration with plenty of space and speed!)<br/>http://www.dreamhost.com/r.cgi?lendren/shared<br/><br/>--Use PGP if you don&#39;t want email on a postcard<br/>(http://web.mit.edu/network/pgp.html)--<br/>-----BEGIN PGP PUBLIC KEY BLOCK-----<br/>mQGiBD7hSQcRBADnyVp4+ofZiNqp38OdreJmq64ZuiGVcD0WpWoor3YDvlZ09Lbu<br/>dziPjVG3LJiVBgPGt+86Q6UQHci5u+HYLHK7iRCq41EH2Vd1JrexDU/XeBoYN1BF<br/>aTqa7ni2hy4oIttJ1EZ+MUkhC4IdgoChwj6yr6jI2pzQBq+e6t4b7zFgYwCg/7zs<br/>ij8E2MQumLXrlb5DgyNRhFED/0SL/qnZKz7W2qULLG/GEHrj4EXxQlaVAwxPuVhC<br/>XtrPP9CqwzJLUUGLuHuJudnwKDejinTT1EN8oD8cgiW367+Aa9CvV9rBdeEqsZp8<br/>5zbdTYI3afUcStBHivE1sO+fMbV2dcDuKBlsyAsgHk4UzS2GKbidXwK0GeteD4ig<br/>TAK7BAC08kqbDIKGlmKhHJfkVF4dHlDJ/euXlUaEc5wCVtBufg9EWW2vekvjCLJJ<br/>FxBELrNvu418ry7pMiDZW5gRAPFdIqIo9EDo4dVy7Oso2fFTvbMTEzTEI6rXccq6<br/>hVkxj7HaOXj3oY3gydungJnlgOc9BVlxb7c4IrF6gazZnSXlmLQkQWRhbSBFaXNs<br/>ZXkgPGFudGljQHNoYWRvd3B1cHBldC5uZXQ+iQBOBBARAgAOBQI+4UkHBAsDAgEC<br/>GQEACgkQYvJ8TvVoSn4HnwCgtpKxRB1qKcG2+4vWO5Ruz/ACylEAnRYs8TGynt94<br/>GpI27EnzhsVg+X+LiQBGBBARAgAGBQI/Ef6eAAoJEP7tS3yhlj1E7hQAn2jdKk0b<br/>0fD36CrnEtan0F8uZZjVAJ9X7x/P5hfWEGXidy4dUZ5QS4f18LkCDQQ+4UkHEAgA<br/>9kJXtwh/CBdyorrWqULzBej5UxE5T7bxbrlLOCDaAadWoxTpj0BV89AHxstDqZSt<br/>90xkhkn4DIO9ZekX1KHTUPj1WV/cdlJPPT2N286Z4VeSWc39uK50T8X8dryDxUcw<br/>Yc58yWb/Ffm7/ZFexwGq01uejaClcjrUGvC/RgBYK+X0iP1YTknbzSC0neSRBzZr<br/>M2w4DUUdD3yIsxx8Wy2O9vPJI8BD8KVbGI2Ou1WMuF040zT9fBdXQ6MdGGzeMyEs<br/>tSr/POGxKUAYEY18hKcKctaGxAMZyAcpesqVDNmWn6vQClCbAkbTCD1mpF1Bn5x8<br/>vYlLIhkmuquiXsNV6TILOwACAgf7BVNyVyYmhMCqYW98F5tGg5wNomc0c8zj3Zto<br/>wVBnBCoiFPV5dotareAw3hi6mUWkdE3gRebbqccP/63ChOmoBqrGuaoh0/M70Gmh<br/>DlF3i3RCYBOGVwZvNaHHRrKHYN3FaXBMQy+r//3GQ3/cLh3wRbKlyMrUjudADhJ9<br/>+w9M9RR1zReMF2Ikkyfcioah6LILLnv56XJr6XvtCb3LNpbrEPGxqdY7SjOVLIBS<br/>w7wVk/cgEGsAsjqklGujHl6fcZqtgKOTGl3nTyGbRLlJQND+xWm0N9WnK+MZ6WHT<br/>4IP5P9G+bGVPmQt70lSaxxrNz3cx5fnP3MkWquTthjMiLEHfEIkARgQYEQIABgUC<br/>PuFJBwAKCRBi8nxO9WhKfiyOAJ4/G+R0RW8aRJKQNtZknzp6uQsiQACgvrmYbUiZ<br/>7YwpNYXdWzj51TpZIXU=<br/>=wo6P<br/>-----END PGP PUBLIC KEY BLOCK-----<br/><br/><br/>&gt; PING? is this group alive?<br/>&gt; --<br/>&gt; Key fingerprint = 40D0 9FFB 9939 7320 8294 05E0 BCC7 02C4 75CC 50D9<br/>&gt; We&#39;re giving you a new chance in life, and an opportunity<br/>&gt; to screw it up in a new, original way.<br/>&gt;<br/><br/><br/> http://www.nntp.perl.org/group/perl.crypto/2005/05/msg71.html Mon, 02 May 2005 16:25:43 +0000 Re: PING? is this group alive? by dparis &gt; PING? is this group alive?<br/>&gt; --<br/>&gt; Key fingerprint = 40D0 9FFB 9939 7320 8294 05E0 BCC7 02C4 75CC 50D9<br/>&gt; We&#39;re giving you a new chance in life, and an opportunity<br/>&gt; to screw it up in a new, original way.<br/><br/>Not exactly the most chatty bunch on the planet, but some of us are paying<br/>attention. :-)<br/><br/>Best~<br/>-d<br/><br/> http://www.nntp.perl.org/group/perl.crypto/2005/05/msg70.html Sun, 01 May 2005 06:11:18 +0000 Re: PING? is this group alive? by zentara On Sun, 1 May 2005 11:26:19 +0200, dariush.pietrzak@gmail.com (Eyck)<br/>wrote:<br/><br/>&gt;PING? is this group alive?<br/><br/>There are a bunch of lurkers here. :-) <br/><br/><br/>-- <br/>I&#39;m not really a human, but I play one on earth.<br/>http://zentara.net/japh.html<br/> http://www.nntp.perl.org/group/perl.crypto/2005/05/msg69.html Sun, 01 May 2005 06:11:10 +0000 PING? is this group alive? by eyck PING? is this group alive? <br/>-- <br/>Key fingerprint = 40D0 9FFB 9939 7320 8294 05E0 BCC7 02C4 75CC 50D9 <br/>We&#39;re giving you a new chance in life, and an opportunity <br/>to screw it up in a new, original way. <br/> http://www.nntp.perl.org/group/perl.crypto/2005/05/msg68.html Sun, 01 May 2005 02:26:26 +0000 Re: initialization_vector what are they by zentara On Tue, 8 Feb 2005 07:53:23 EST, PGibbonsX@aol.com wrote:<br/><br/>&gt;hi there,<br/>&gt;i&#39;m using perl to encrypt data and Java using to decrypt:<br/>&gt; <br/>&gt;while i can get perl or Java to encrypt and decrypt successfully encryptions <br/>&gt;that each has encrypted i cannot get perl to unencrypt something that java <br/>&gt;encrypted.<br/>&gt; <br/>&gt;My focus has turned to the initialization_vector as to be a possible cause. <br/>&gt;what are they and what does the example below mean? Presumably java would <br/>&gt;need the same initialization_vector setting?<br/>&gt; <br/>&gt;any thoughts would be helpful..<br/>&gt;pg<br/>&gt;<br/>&gt;my $key = pack(&quot;H16&quot;, &quot;0123456789ABCDEF&quot;);<br/>&gt;use Crypt::CBC;<br/>&gt;my $cipher = Crypt::CBC-&gt;new( {&#39;key&#39; =&gt; $key,<br/>&gt;&#39;cipher&#39; =&gt; &#39;DES&#39;,<br/>&gt;&#39;iv&#39; =&gt; &#39;$KJh#(}q&#39;,<br/>&gt;&#39;regenerate_key&#39; =&gt; 0, # default true<br/>&gt;&#39;prepend_iv&#39; =&gt; 0,<br/>&gt;&#39;pcbc&#39; =&gt; 1 #default 0<br/>&gt;});<br/><br/>Did you read &quot;perldoc Crypt::CBC&quot; ? You can disable <br/>it by setting it to false. There is a 1 paragraph explanation<br/>of the details in the perldoc.<br/><br/> <br/><br/>-- <br/>I&#39;m not really a human, but I play one on earth.<br/>http://zentara.net/japh.html<br/> http://www.nntp.perl.org/group/perl.crypto/2005/02/msg67.html Wed, 09 Feb 2005 04:41:16 +0000 Re: initialization_vector what are they by zentara On Tue, 8 Feb 2005 07:53:23 EST, PGibbonsX@aol.com wrote:<br/><br/>&gt;hi there,<br/>&gt;i&#39;m using perl to encrypt data and Java using to decrypt:<br/>&gt; <br/>&gt;while i can get perl or Java to encrypt and decrypt successfully encryptions <br/>&gt;that each has encrypted i cannot get perl to unencrypt something that java <br/>&gt;encrypted.<br/>&gt; <br/>&gt;My focus has turned to the initialization_vector as to be a possible cause. <br/>&gt;what are they and what does the example below mean? Presumably java would <br/>&gt;need the same initialization_vector setting?<br/>&gt; <br/>&gt;any thoughts would be helpful..<br/>&gt;pg<br/>&gt;<br/>&gt;my $key = pack(&quot;H16&quot;, &quot;0123456789ABCDEF&quot;);<br/>&gt;use Crypt::CBC;<br/>&gt;my $cipher = Crypt::CBC-&gt;new( {&#39;key&#39; =&gt; $key,<br/>&gt;&#39;cipher&#39; =&gt; &#39;DES&#39;,<br/>&gt;&#39;iv&#39; =&gt; &#39;$KJh#(}q&#39;,<br/>&gt;&#39;regenerate_key&#39; =&gt; 0, # default true<br/>&gt;&#39;prepend_iv&#39; =&gt; 0,<br/>&gt;&#39;pcbc&#39; =&gt; 1 #default 0<br/>&gt;});<br/><br/>Did you read &quot;perldoc Crypt::CBC&quot; ? You can disable <br/>it by setting it to false. There is a 1 paragraph explanation<br/>of the details in the perldoc.<br/><br/> <br/><br/>-- <br/>I&#39;m not really a human, but I play one on earth.<br/>http://zentara.net/japh.html<br/> http://www.nntp.perl.org/group/perl.crypto/2005/02/msg66.html Wed, 09 Feb 2005 04:41:14 +0000 initialization_vector what are they by PGibbonsX hi there,<br/>i&#39;m using perl to encrypt data and Java using to decrypt:<br/> <br/>while i can get perl or Java to encrypt and decrypt successfully encryptions <br/>that each has encrypted i cannot get perl to unencrypt something that java <br/>encrypted.<br/> <br/>My focus has turned to the initialization_vector as to be a possible cause. <br/>what are they and what does the example below mean? Presumably java would <br/>need the same initialization_vector setting?<br/> <br/>any thoughts would be helpful..<br/>pg<br/><br/>my $key = pack(&quot;H16&quot;, &quot;0123456789ABCDEF&quot;);<br/>use Crypt::CBC;<br/>my $cipher = Crypt::CBC-&gt;new( {&#39;key&#39; =&gt; $key,<br/>&#39;cipher&#39; =&gt; &#39;DES&#39;,<br/>&#39;iv&#39; =&gt; &#39;$KJh#(}q&#39;,<br/>&#39;regenerate_key&#39; =&gt; 0, # default true<br/>&#39;prepend_iv&#39; =&gt; 0,<br/>&#39;pcbc&#39; =&gt; 1 #default 0<br/>});<br/><br/><br/> http://www.nntp.perl.org/group/perl.crypto/2005/02/msg65.html Tue, 08 Feb 2005 04:53:33 +0000