Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Crypt Blowfish

by ikegami (Patriarch)
on Jul 16, 2008 at 05:48 UTC ( [id://697860]=note: print w/replies, xml ) Need Help??


in reply to Re: Crypt Blowfish
in thread Crypt Blowfish

Very bad recommendation. You added padding, but you're neither salting nor chaining. You are seriously undermining the encryption by using it directly instead of using Crypt::CBC.

By avoiding Crypt::CBC, you're actually making the code longer and much more complex, risking the addition of errors and making it harder to maintain.

It's not just speculative either. You added a bug. Any input matching /\x00\n?\z/ cannot be encoded.

Blowfish is a secure algorithm, but like all algorithms, they're only secure when used properly.

Log In?
Username:
Password:

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

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

    No recent polls found