Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.electronics.design > #550595
| From | Paul <nospam@needed.invalid> |
|---|---|
| Newsgroups | sci.electronics.design, alt.computer |
| Subject | Re: OT: passwords |
| Date | 2019-07-11 00:49 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <qg6f4e$kqn$1@dont-email.me> (permalink) |
| References | <8kdVE.18949$KR4.17786@fx31.iad> <qg4orj$1de$1@dont-email.me> |
Cross-posted to 2 groups.
Paul wrote:
> Robert Baer wrote:
>> Start with the reasonably decent tester
>> https://www.cryptool.org/en/cto-highlights/passwordmeter
>>
>> As i mentioned before it does have at least one lame attribute, it
>> tends to give email addresses very high total rating (all green!).
>>
>> I know very little about those checkers/encoders/whatever.
>> Is there a password generator that will produce a randumb string
>> (given limits, say no special characters and not longer than specified
>> vale)?
>>
>> Thanks
(Corrected version)
#include <stdio.h>
#include <windows.h>
int main() {
/* Define your allowed alphabet here. */
char a[] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ012345678";
int len = strlen(a); /* modulo */
__int64 time1;
int i,j,k,m;
char c[2048];
if (!QueryPerformanceCounter((LARGE_INTEGER *)&time1)) {
printf("QueryPerformanceCounter failed\n");
return 1;
}
printf("Enter as many letters as the length of the desired\n");
printf("password, followed by Enter key. The time when each\n");
printf("letter is entered, is the random factor selecting\n");
printf("the letter used\n\n");
printf("Current alphabet has %d character choices\n\n", len);
j=k=0;
while ( (m = getch()) != 13 ) {
QueryPerformanceCounter((LARGE_INTEGER *)&time1);
/* Try to remove systematic bias in sample times using time scales */
i = ( (time1 >> 16) ^ (time1 >> 8) ^ time1 ) % len;
c[j] = a[i]; /* modulo has the right range, fixed */
j++;
printf("%d ", i); /* choice feedback */
}
printf("\n\nYour password is: ");
while (j > 0) {
printf("%c", c[k]);
j--;
k++;
}
printf("\n");
}
*******
Sample output:
L:\>mypassword2
Enter as many letters as the length of the desired
password, followed by Enter key. The time when each
letter is entered, is the random factor selecting
the letter used
Current alphabet has 61 character choices
57 51 24 45 2 18 50 15 0 1 42 39 24 36 22 23 13 32 8 13 6
Your password is: 5ZyTcsYpabQNyKwxnGing
L:\>
Back to sci.electronics.design | Previous | Next — Previous in thread | Find similar | Unroll thread
OT: passwords Robert Baer <robertbaer@localnet.com> - 2019-07-09 20:54 -0800
Re: OT: passwords #1 Robert Baer <robertbaer@localnet.com> - 2019-07-09 21:18 -0800
Re: OT: passwords #1 Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2019-07-10 10:18 -0400
Re: OT: passwords #1 tabbypurr@gmail.com - 2019-07-10 09:03 -0700
Re: OT: passwords #1 Robert Baer <robertbaer@localnet.com> - 2019-07-10 12:37 -0800
Re: OT: passwords Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2019-07-10 05:29 +0000
Re: OT: passwords Gerhard Hoffmann <dk4xp@arcor.de> - 2019-07-10 12:11 +0200
OT: passwords jack jack <jack4747@gmail.com> - 2019-07-10 03:31 -0700
Re: OT: passwords Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2019-07-10 13:15 +0000
Re: OT: passwords Don Kuenz <g@crcomp.net> - 2019-07-10 17:29 +0000
Re: OT: passwords DecadentLinuxUserNumeroUno@decadence.org - 2019-07-10 19:03 +0000
Re: OT: passwords Don Kuenz <g@crcomp.net> - 2019-07-10 20:49 +0000
Re: OT: passwords Robert Baer <robertbaer@localnet.com> - 2019-07-10 12:56 -0800
Re: OT: passwords Don Kuenz <g@crcomp.net> - 2019-07-10 20:36 +0000
Re: OT: passwords Robert Baer <robertbaer@localnet.com> - 2019-07-10 12:10 -0800
Re: OT: passwords Paul <nospam@needed.invalid> - 2019-07-10 09:22 -0400
Re: OT: passwords Paul <nospam@needed.invalid> - 2019-07-11 00:49 -0400
csiph-web