|
Message-ID: <BLU118-W299D7FF5908E4738B845B4D0CE0@phx.gbl> Date: Thu, 22 Jan 2009 01:50:05 +0000 From: Ruben Lara <bermejator@...mail.com> To: <john-users@...ts.openwall.com> Subject: Programming External azAZ09-5 without filter Hi all, First, sorry about my newbie question. I'm trying to program an external mode of azAZ09 charsets of 5 length. I want generate words cleanly, so i won't need use filter function() and earn time. It's possible that? My try is next: [List.External:azAZ09-5] int length, i; void init() { length=i=5; while (i--) word[i]='0'; word[length]=0; } void generate() { i = length - 1; while (++word[i] > 'z') if (word[i]<':' || word[i]>'@') if (word[i]<'[' || word[i]>'\'') if (i) word[i--] = '0'; else { word = 0; return; } } void restore() { length = 0; while (word[length]) length++; }This produce 5 length words but can't avoid not alphanum characters... Where is my mistake? Thank you in advance... Rubén Lara _________________________________________________________________ Nuevo Windows Live, un mundo lleno de posibilidades. Descúbrelo. http://www.microsoft.com/windows/windowslive/default.aspx
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.