Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need advice, encryption

Status
Not open for further replies.

unholyangl

Programmer
Feb 14, 2006
10
US
I have some ideas for a custom encryption for the software I'm working on, and I'm trying to get some input if this would be efficient enough for a server environment possibly under a large work load at times (especially if some newb is attempting to flood it, allthough security procedures they probly wouldn't get far lol)....

Ok heres what I'm thinking! Use (Un)Pack and abviously arrays, and two or more keys. Basicly, looping through each character on an unpacked array from a string and applying a math equation to each then reconstructing it.

So back to my original question, would this be efficient or can I get some suggestions? I've always read to stay away from character by character looping codes, but I would think thats what I'd need in a case like this.

Thx for any possible help in advance!!
 
A lot of encryption modules already exist on implementing one of these in conjunction Crypt::CBC is probably as secure as you're going to get, but you could apply some "rules" of your own after the crypt is completed if you're not happy with the result.

I last used Crypt::Blowfish, and Crypt::CBC, but that's a while ago, when an ex-client was too tight to pay the credit card fees, and never heard of any problems, that code was live for about three years, though I wouldn't advise it now

CPAN Search for Crypt Modules
HTH

Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top