Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Blowfish.pm

by mpd (Monk)
on Aug 23, 2003 at 18:03 UTC ( [id://286088]=note: print w/replies, xml ) Need Help??


in reply to Blowfish.pm: "input must be * bytes long"

Three problems that I found:

1) You forgot to use Crypt::Blowfish; ;)
2/3) In the line: while ($plaintext) { ...
$plaintext should be $text, and while should be changed to for.

After fixing those, I had success. Make sure the input is exactly 8 bytes long, or you will get the uncaught exception you wrote of.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2024-04-25 11:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found