Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Weird error with Cryprt::Blowfish and Crypt::DES

by Anonymous Monk
on Sep 13, 2010 at 22:13 UTC ( [id://860042]=note: print w/replies, xml ) Need Help??


in reply to Weird error with Cryprt::Blowfish and Crypt::DES

I've run into this problem too in the past. If you ever parse text from an XML document and try to send it via Net::SSH::Perl, you will likely run into the "8 bytes" problem. I think it's because XML by default is encoded as UTF-16 or something like that. I used this method: Encode::from($text,'utf16','iso-8859-1'); where $text is the data/command I send using Net::SSH::Perl.
  • Comment on Re: Weird error with Cryprt::Blowfish and Crypt::DES

Replies are listed 'Best First'.
Re^2: Weird error with Cryprt::Blowfish and Crypt::DES
by Anonymous Monk on Sep 04, 2011 at 13:02 UTC
    Many thanks I had the same problem when using XML::Simple. Encode::from_to($remotePass,'utf8','iso-8859-1'); did the "magic"
      Thanks it works with the tips above :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://860042]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2024-04-20 12:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found