15,167,809 members

# The Weird and The Wonderful

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 Re: What the heck are they teaching philosophers in Florida? Marc Clifton28-Nov-21 8:01 Marc Clifton 28-Nov-21 8:01
 It is called a Doctorate of Philosophy because... Michael Breeden29-Nov-21 2:04 Michael Breeden 29-Nov-21 2:04
 Re: What the heck are they teaching philosophers in Florida? obermd29-Nov-21 7:39 obermd 29-Nov-21 7:39
 Re: What the heck are they teaching philosophers in Florida? Chris Maunder29-Nov-21 20:16 Chris Maunder 29-Nov-21 20:16
 Re: What the heck are they teaching philosophers in Florida? honey the codewitch29-Nov-21 21:53 honey the codewitch 29-Nov-21 21:53
 Does anyone recognized this "decryption" algorithm? Gary Wheeler23-Nov-21 10:55 Gary Wheeler 23-Nov-21 10:55
 Re: Does anyone recognized this "decryption" algorithm? PIEBALDconsult23-Nov-21 11:10 PIEBALDconsult 23-Nov-21 11:10
 Re: Does anyone recognized this "decryption" algorithm? Peter_in_278023-Nov-21 13:58 Peter_in_2780 23-Nov-21 13:58
 I don't know its name, but I recognise the algorithm. It's big-endian 32bit, with the encryption and decryption keys being multiplicative inverses mod 2^32. On a big-endian machine, the loop becomes something like C++Copy Code ```for (int_32 i = 0; i < sizeof(array); i++) { array[i] *= magic; }```where `(encrypt_magic * decrypt_magic) % (1<<32) == 1` As an encryption algorithm, it's nuisance value only. But I have used it a few times just to discourage tampering. Cheers, Peter Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
 Re: Does anyone recognized this "decryption" algorithm? Gary R. Wheeler23-Nov-21 14:50 Gary R. Wheeler 23-Nov-21 14:50
 Re: Does anyone recognized this "decryption" algorithm? den2k8823-Nov-21 21:49 den2k88 23-Nov-21 21:49
 Re: Does anyone recognized this "decryption" algorithm? PIEBALDconsult24-Nov-21 2:53 PIEBALDconsult 24-Nov-21 2:53
 Re: Does anyone recognized this "decryption" algorithm? Eddy Vluggen26-Nov-21 11:26 Eddy Vluggen 26-Nov-21 11:26
 Re: Does anyone recognized this "decryption" algorithm? Philippe Verdy26-Nov-21 4:32 Philippe Verdy 26-Nov-21 4:32
 Re: Does anyone recognized this "decryption" algorithm? harold aptroot26-Nov-21 6:08 harold aptroot 26-Nov-21 6:08
 Re: Does anyone recognized this "decryption" algorithm? PIEBALDconsult26-Nov-21 11:00 PIEBALDconsult 26-Nov-21 11:00
 Re: Does anyone recognized this "decryption" algorithm? harold aptroot26-Nov-21 11:27 harold aptroot 26-Nov-21 11:27
 Re: Does anyone recognized this "decryption" algorithm? brian012528-Nov-21 17:53 brian0125 28-Nov-21 17:53
 Re: Does anyone recognized this "decryption" algorithm? brian012528-Nov-21 17:54 brian0125 28-Nov-21 17:54
 Re: Does anyone recognized this "decryption" algorithm? brian012528-Nov-21 17:31 brian0125 28-Nov-21 17:31
 RA8875 has ridiculous registers honey the codewitch16-Nov-21 2:31 honey the codewitch 16-Nov-21 2:31
 Re: RA8875 has ridiculous registers Greg Utas16-Nov-21 2:39 Greg Utas 16-Nov-21 2:39
 Re: RA8875 has ridiculous registers honey the codewitch16-Nov-21 2:42 honey the codewitch 16-Nov-21 2:42
 Re: RA8875 has ridiculous registers Jörgen Andersson23-Nov-21 4:00 Jörgen Andersson 23-Nov-21 4:00
 Re: RA8875 has ridiculous registers den2k8816-Nov-21 2:45 den2k88 16-Nov-21 2:45
 Re: RA8875 has ridiculous registers honey the codewitch16-Nov-21 5:13 honey the codewitch 16-Nov-21 5:13
 Last Visit: 31-Dec-99 19:00     Last Update: 17-Jan-22 13:35 Refresh ᐊ Prev1234567891011 Next ᐅ