Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

(ichimunki) Re x 3: Crypt::TripleDES decrypting problem

by ichimunki (Priest)
on Jan 10, 2002 at 21:19 UTC ( #137770=note: print w/replies, xml ) Need Help??

in reply to Re: (ichimunki) Re: Crypt::TripleDES decrypting problem
in thread Crypt::TripleDES decrypting problem

I think that's odd. It should be able to accept those \n-delimited records as unique bits, and you appeared to be storing them again as \n delimited records. Which means that maybe \n is not a reliable separator for whatever reason. Have you tried concatenating all of the records in the plaintext file before encrypting (i.e. keep the \n in there, just simply slurp the file into a scalar) and then decrypting that ciphertext as a single blob as well?
  • Comment on (ichimunki) Re x 3: Crypt::TripleDES decrypting problem

Replies are listed 'Best First'.
Re: (ichimunki) Re x 3: Crypt::TripleDES decrypting problem
by sparkyichi (Deacon) on Jan 10, 2002 at 21:40 UTC
    I took chomp out completely and removed the \n from the print statements. I even cleaned up the source file some, making sure that there was no extra long lines or anything like that. Still the same thing, although it is not dying in the same place after I make a change. This is looking more and more like a buffering problem in the module. It works fine on one liners.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://137770]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2018-06-24 13:42 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (126 votes). Check out past polls.