Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.electronics.design > #550437
| From | Paul <nospam@needed.invalid> |
|---|---|
| Newsgroups | sci.electronics.design, alt.computer |
| Subject | Re: OT: passwords |
| Date | 2019-07-10 09:22 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <qg4orj$1de$1@dont-email.me> (permalink) |
| References | <8kdVE.18949$KR4.17786@fx31.iad> |
Cross-posted to 2 groups.
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
I would write that code myself, to make
sure "the NSA hasn't compromised the randomness" :-)
Then I would pick up some extra tinfoil hats
at the TinFoil Hat store.
#include <stdio.h>
/* gcc -o mypassword.exe mypassword.c */
int main(int argc, char *argv[])
{
if (argc != 2) {
printf("Mypassword.exe RandomSeedString\n");
printf("Generate password based on random seed string\n");
return 1;
}
printf("\nYour new password is: %s\n", argv[1]);
return 0;
}
Your result is only limited by your own imagination.
mypassword.exe abcd1234
Your new password is: abcd1234
And, "I did it with a computer" (tip of the hat to the
Patent Department).
*******
Using stepwise refinement, we try again.
Still no rands, mersenne twisters, or the like.
#include <stdio.h>
#include <windows.h>
/* gcc -o mypassword2.exe mypassword2.c */
int main() {
/* Define your allowed alphabet here. String length prime ? */
char a[] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ012345678";
int len = strlen(a); /* modulo, but subtract one when used as index */
__int64 time1;
int i,j,k,m;
char c[2048]; /* OK, already, you can stop typing now... */
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-1];
j++;
printf("%c", m); /* tactile feedback saved for last */
}
printf("\n\nYour password is: ");
while (j > 0) {
printf("%c", c[k]);
j--;
k++;
}
printf("\n");
}
Paul (who is not a programmer and
never took Krypto in HighSkool)
Back to sci.electronics.design | Previous | Next — Previous in thread | Next 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