|We don't bite newbies here... much|
So the internal strings of Net::SSH::Perl got "infected" with the UTF-8 bit. Seems some of the strings it gets are declared in a "use utf8" area (but are 7bit themselves).
Now, as what Net::SSH::Perl gives to Cypher::* are binary data (byte strings) regardless of the input strings (character strings), how would I best fix that?
I see three possibilities:
1) Fix Net::SHH::Perl to make a difference between character strings it gets and the byte strings it uses to build the SSH protocol in it.
2) Change our code to disable the UTF8 bit on every string that is given to Net::SSH::Perl.
3) Change Crypt::* to turn the UTF8 bit off on data that is 8 characters long.
I'd say #1 would be the cleanest way and #3 the fastest. As we have a deadline of this afternoon for a complete program run, I will implement #3 as a workaround fast. But, what should we do on the long run?
BTW: Thank you to all who helped, tried to help, or would have helped if they could.
Ok, I found that, too. utf8::downgrade($data);
Search, Ask, Know
In reply to Re^2: Weird error with Cryprt::Blowfish and Crypt::DES