Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: Reversible per-line "encryption"

by Masem (Monsignor)
on Jan 25, 2002 at 20:23 UTC ( #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 - || "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.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://141525]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2018-06-18 12:17 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (109 votes). Check out past polls.