Encrypting more than 8 bytes with Crypt::DES for Oracle decryption

I'm trying to encrypt data using Crypt::DES in perl which will then be inserted to an Oracle8i database using the DBMS_OBFUSCATION_TOOLKIT to decrypt it.  Some of this data is more than 8 bytes long, so my first instinct was to break the string up into 8 byte segments and concatenate the results together, and then do the same in a PL/SQL function calling the obfuscation tooolkit.  Unfortunately, this returns gibberish.  Any suggestions?
rotor89Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

TintinCommented:
How much data do you want to encrypt?

Does DBMS_OBFUSCATION_TOOLKIT only support DES?
0
ozoCommented:
Could you use Crypt::CBC to cypher block chain the DES blocks for an arbitrary size string?
0
Kim RyanIT ConsultantCommented:
This module will do all the blocking for you. If you install it, it will require the Crypt::CBC and Crypt::DES modules to also be installed. You can encrypt data from either a string or file. but can only decrypt from a file.

 use Crypt::CBCeasy;

 DES::encipher($my_key, "plain-file", "crypted-file");
 $plain_text = DES::decipher($my_key, \*CRYPTED_FILE_HANDLE);
0
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

rotor89Author Commented:
The version of DBMS_OBFUSCATION_TOOLKIT that comes with Oracle 8i does seem to only support DES.  The data I'm encrypting ranges up to 30 or so characters.

After posting this yesterday I stumbled across Crypt::CBC, but that didn't work either.  It seems to use a different method to chain the blocks than Oracle does.
0
ozoCommented:
What method does Oracle use?
0
rotor89Author Commented:
"What method does Oracle use?"

And there's the real issue - it's a binary package and I can't find any documentation that explains this.  Since 8 byte strings work fine on their own, I figured that breaking it down into separate 8 byte strings and concatenating would do the trick, but it doesn't.

Thanks
0
rotor89Author Commented:
Well, I had to find an interim method to please people for now, so this isn't such a hot topic for me at the moment, but I'll leave this open as I will have to come back to it later.  My hope is that we'll be moving to Oracle 9i or 10g where newer encryption methods are available.  Still, if anyone has a suggestion - I know I wouldn't get complaints if I were able to impliment this.
Thanks.
0
rotor89Author Commented:
jmcg - sounds good to me.

Thanks.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Perl

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.