I wanted to learn a new programming language. So I took an old idea and reused it to help me on my way.
READ MORE »Posts in category Code
User Handling, part 1
Intro At the end of my last post, we had just finished authenticating that a user registering for your site was in fact, a human. Now we’re gonna go a step further and discuss registering them, and creating a simple login system that uses form-based authentication, or more specifically, a form-based authentication system that uses [...]
READ MORE »Regulating Real Registrations
It is not all that uncommon for various people to get users registering for whichever website they run. Sometimes it’s one every couple of days or weeks, or sometimes multiple registrations per minute. The one thing the entire spectrum has to deal with though, is making sure the user is a person, someone who types [...]
READ MORE »Star Wars offshoot as a programming concept?
Well if not before, it is now. Whoulda thunk the Dark Side of the Force had any good ideas about technology?
READ MORE »The ADFGVX Cipher
The first in a series of many blog posts I hope to be making as I go on an adventure of learning Cryptography through Programming. Today’s entry is about the ADFGVX cipher, used in World War 1, and first used by me because it was the first on the list.
READ MORE »ore-may ig-pay atenizing-lay
I got bored. So sue me. Redone in C++ (correctly this time, and probably more efficient than
READ MORE »Cryptologically Speaking
I’ve given myself a quest, a quest to find the most secure method to get a user to register, and login to a site, and make sure it’s still them as they explore. This is both surprisingly simple, just complicated because of the amount of steps involved, but depending on who you host with, could [...]
READ MORE »Rotating Bits
Under normal circumstances, you can only ask for a bit rotation using assembly code, however, it is possible to imitate rotation through code. First an explanation on rotating, and bits: Bits, make up bytes. When represented in binary, a bit can be either a 1, or a 0. Nothing more. A byte, is a bunch [...]
READ MORE »Goofy Sort
You know it’s an easy algorithm to program when you’re done writing it, before the teacher is done explaining it… #include "GSort.h" void GSort::sort( int numbers[], int size ) { int i = 0; int previous, current; while( true ) { if( i == 0 ) //No previous, step forward. { i++; continue; } [...]
READ MORE »DiceRoller v2
I decided my first version wasn’t exactly flexible, so I rewrote it to parse out strings of dice rolls and then roll them. /* * dice.c * * Created on: Apr 21, 2009 * Author: Mike Sherwood (coolhand2@gmail.com) * Modified on: Nov 18, 2009 * Author: Mike Sherwood (coolhand2@gmail.com) * Changes: Changed the if-series in [...]
READ MORE »