Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Reversible per-line "encryption"

by Masem (Monsignor)
on Jan 25, 2002 at 20:23 UTC ( [id://141525]=note: print w/replies, xml ) Need Help??


in reply to Reversible per-line "encryption"

A better solution, but probably not possible for you given what you've said, is to use authenicating client/server architecture. Otherwise, your encryption schema sounds reasonable. There's more than a fair share of encryption modules for perl, for example, you could use Crypt::OpenPGP which can easily encrypt and decrypt text strings. The program on the call center end should encrypt each line with the key id of the intended recipient, and then you can simply grep through the lines that start with your key, then decrypt them.

-----------------------------------------------------
Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain
"I can see my house from here!"
It's not what you know, but knowing how to find it if you don't know that's important

Replies are listed 'Best First'.
Re: Re: Reversible per-line "encryption"
by bmcatt (Friar) on Jan 25, 2002 at 21:22 UTC
    Unfortunately, the call center is a different organization and they have their own systems. We won't be able to provide them a client/server setup (yet - maybe in the future, but that's a ways down the road).

    The tentative plan is to provide them with a script that they can run against the source file to encrypt it and then we process it on our side. That's why I'm hoping for the lightest-weight approach. I'm also puzzling around with some simple reversible ciphers that can be used to do the encoding.

      I sympathize with your problem, to wit, getting a data feed from a third party over which you have little or no control.

      "The tentative plan is to provide them with a script that they can run against the source file to encrypt it and then we process it on our side."

      You'd be asking for trouble if your script presumed any particular version of Perl or the presence of any non-standard (i.e., don't come with Perl) modules. You'll probably have enough trouble just getting them to run a script at all.

      Good Luck!

      Update: Oops! Forgot to mention, if you're planning to use crypt, you should be on the lookout for architecture- or OS-dependencies in its output.

      dmm

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-03-29 04:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found