Jonathan -- ...and then Jonathan E. Paton said... % % --- LoneWolf <[EMAIL PROTECTED]> wrote: % > I am wanting to write a script to handle a few things % > % > 1. decrypt an encrypted password % % Easy, as long as we may assume you've got several hundred % years of CPU time!
Now, now, that's not entirely fair... It would be fairly simple to encrypt the password using something like an asymmetric public/private key pair so that it *is* decryptable; I think that we may, indeed, assume that he controls the form submission and scripting process from end to end (and we also hope that he doesn't send the form in the clear to the script that would encrypt!). He said nothing in his requirements about decrypting a password from /etc/passwd format... % % Jonathan Paton % % ===== % $_=q|.,&@$$. ,.@$&@$. .&$$@. ,,$ ....!$_=$p.'&$@.',y'&$@' .,';for(/\S+/g){ % !|.q| .$ .,@, ,$, .,.. @, ,$ ,,@ .,,.!++$.<22?${'y'.$_}=chr$.+64:[$$=${'y' % !|.q| ,@$@&.,. $$$&, ..@&&$,,, $., ..!.$_},$y.=($.=~/22\|26\|3(3\|7)/x?' ' % !|.q|. @ ., ,.&,,, , .$..&. .,$ .,,!.$$:"\l$$")]};$y=~/ (.*)/;warn"$1\n" % !|.q|. $ .,. .,$$&&$...&., @.,.&@$@ .|,map{-$|--?$r:$p.=$_}split'!';eval$r I love these. Where do you guys find the time to dream them up?!? HTH & HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
msg24566/pgp00000.pgp
Description: PGP signature