Hacker News new | ask | show | jobs
by udoprog 5490 days ago
Just had to have a look, love the following tidbit from FILE.C

    char cryptkey[]={'M'-4,'i'-8,'n'-12,'d'-16,'y'-20,0};

    LONG Encrypt(char far *data,char *key)
    {
      LONG i=0,keypos=0;

      while(data[i]!=0){
        data[i++]^=key[keypos++];
        if(key[keypos]==0) keypos=0;
      }
      return i;
    }
Coupled with the following quote from the preface of Bruce Schneier's Applied Cryptography

"The simple-XOR algorithm is really an embarrassment; it’s nothing more than a Vigenère polyalphabetic cipher. It’s here only because of its prevalence in commercial software packages, at least those in the MS-DOS and Macintosh worlds [1502,1387]."

3 comments

But if I switched "Mindy" to some other girl's name, would you know how to break it? :)
I wonder who Mindy is :-)
>because of its prevalence in commercial software packages, at least those in the MS-DOS and Macintosh worlds

Wonder why.