![]() |
|
Don't ask to ask, just ask | |
PerlMonks |
Re: Reversible per-line "encryption"by xtype (Deacon) |
on Jan 26, 2002 at 00:46 UTC ( #141639=note: print w/replies, xml ) | Need Help?? |
Hrmmmm… Seems to me that it should be the datacenter who is encrypting the file and then providing you with the means to decrypt ONLY what you should see. Right? In which case the other answers are good. However, since you have to trust them to be able to run and install whatever you hand them, better keep it real simple. The following might be really lame but at least it will run on most versions of perl without any effort. After all, you did say "we must not be able to easily (plain-text) read any records which do not belong to us." Depends on what you consider to be "easy" and "plain-text" I guess. To encrypt and decrypt strings in an super low-security fashion: Of course you/they would have to create different translations for each different group (perhaps trade digits with chars and uc with lc, etc.), and then provide the reverse translation to that group. No, do not laugh… I know, I know, if someone really wanted to... They would just sit down and stare at the file for a few minutes. Therefore, I am making the assumption that if "the datacenter" really cared they would come up with something better. -xtype
In Section
Seekers of Perl Wisdom
|
|