Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^2: Crypt Blowfishby ikegami (Patriarch) |
on Jul 16, 2008 at 05:48 UTC ( [id://697860]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|