15,664,618 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.

 It is called a Doctorate of Philosophy because... Michael Breeden29-Nov-21 1:04 Michael Breeden 29-Nov-21 1:04
 Re: What the heck are they teaching philosophers in Florida? obermd29-Nov-21 6:39 obermd 29-Nov-21 6:39
 Re: What the heck are they teaching philosophers in Florida? Chris Maunder29-Nov-21 19:16 Chris Maunder 29-Nov-21 19:16
 Re: What the heck are they teaching philosophers in Florida? honey the codewitch29-Nov-21 20:53 honey the codewitch 29-Nov-21 20:53
 Message Closed 28-Feb-22 1:43 zaamindas 28-Feb-22 1:43
 Does anyone recognized this "decryption" algorithm? Gary Wheeler23-Nov-21 9:55 Gary Wheeler 23-Nov-21 9:55
 Re: Does anyone recognized this "decryption" algorithm? PIEBALDconsult23-Nov-21 10:10 PIEBALDconsult 23-Nov-21 10:10
 Re: Does anyone recognized this "decryption" algorithm? Peter_in_278023-Nov-21 12:58 Peter_in_2780 23-Nov-21 12: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++ 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 13:50 Gary R. Wheeler 23-Nov-21 13:50
 Re: Does anyone recognized this "decryption" algorithm? den2k8823-Nov-21 20:49 den2k88 23-Nov-21 20:49
 Re: Does anyone recognized this "decryption" algorithm? PIEBALDconsult24-Nov-21 1:53 PIEBALDconsult 24-Nov-21 1:53
 Re: Does anyone recognized this "decryption" algorithm? Eddy Vluggen26-Nov-21 10:26 Eddy Vluggen 26-Nov-21 10:26
 Re: Does anyone recognized this "decryption" algorithm? Philippe Verdy26-Nov-21 3:32 Philippe Verdy 26-Nov-21 3:32
 Re: Does anyone recognized this "decryption" algorithm? harold aptroot26-Nov-21 5:08 harold aptroot 26-Nov-21 5:08
 Re: Does anyone recognized this "decryption" algorithm? PIEBALDconsult26-Nov-21 10:00 PIEBALDconsult 26-Nov-21 10:00
 Re: Does anyone recognized this "decryption" algorithm? harold aptroot26-Nov-21 10:27 harold aptroot 26-Nov-21 10:27
 Re: Does anyone recognized this "decryption" algorithm? brian012528-Nov-21 16:53 brian0125 28-Nov-21 16:53
 Re: Does anyone recognized this "decryption" algorithm? Philippe Verdy8-Sep-22 20:14 Philippe Verdy 8-Sep-22 20:14
 Re: Does anyone recognized this "decryption" algorithm? harold aptroot9-Sep-22 1:01 harold aptroot 9-Sep-22 1:01
 Re: Does anyone recognized this "decryption" algorithm? Philippe Verdy9-Sep-22 1:31 Philippe Verdy 9-Sep-22 1:31
 Re: Does anyone recognized this "decryption" algorithm? brian012528-Nov-21 16:54 brian0125 28-Nov-21 16:54
 Re: Does anyone recognized this "decryption" algorithm? Philippe Verdy8-Sep-22 20:37 Philippe Verdy 8-Sep-22 20:37
 Re: Does anyone recognized this "decryption" algorithm? brian012528-Nov-21 16:31 brian0125 28-Nov-21 16:31
 RA8875 has ridiculous registers honey the codewitch16-Nov-21 1:31 honey the codewitch 16-Nov-21 1:31
 Re: RA8875 has ridiculous registers Greg Utas16-Nov-21 1:39 Greg Utas 16-Nov-21 1:39
 Last Visit: 31-Dec-99 18:00     Last Update: 30-May-23 18:53 Refresh ᐊ Prev1...14151617181920212223 Next ᐅ