![]() |
|
|
#1 |
|
"James Heinrich"
May 2004
ex-Northern Ontario
24×3×71 Posts |
I just needed to sign up for a website account and encountered these password restrictions, and while I know these attempts at "secure" passwords are ill-chosen, I'm struggling with calculating how much smaller the search space is compared to an unrestricted password of the same maximum length.
|
|
|
|
|
|
#2 | |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
Quote:
|
|
|
|
|
|
|
#3 |
|
"Forget I exist"
Jul 2009
Dumbassville
203008 Posts |
here's a PARI code for a "random" password generator:
Code:
for(x=1,5,print1(Strchr(random(256)))) |
|
|
|
|
|
#4 |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
|
|
|
|
|
|
#5 | |
|
Oct 2011
7×97 Posts |
Quote:
Assuming ! - / referrs to the ASCII table and only uses those between them (ASCII 33 to ASCII 47) limiting your choices to 15 'other' you have only 20,037,322,905,600 (77*76^4*52*15*10) |
|
|
|
|
|
|
#6 | |
|
"James Heinrich"
May 2004
ex-Northern Ontario
1101010100002 Posts |
Quote:
The problem doesn't state it, but due to limitations of the web form used for signing up, the unspecified characters can be any of 0x20-0xFF (224 values) since there is no practical way to enter low-ASCII characters into the form, even though they're not excluded by the rules. |
|
|
|
|
|
|
#7 | |
|
"Forget I exist"
Jul 2009
Dumbassville
838410 Posts |
Quote:
Code:
for(x=1,8,until(a>12,a=random(256));print1(Strchr(a))) |
|
|
|
|
|
|
#8 | |
|
"James Heinrich"
May 2004
ex-Northern Ontario
24×3×71 Posts |
Quote:
a) do nothing b) tab to the next field c) enter a tab character depending on both the browser used and the coding of the page. |
|
|
|
|
|
|
#9 | |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
Quote:
so outside of a check for the must have at least one part I have a code working for characters able to be typed outside of control characters but it'll only be able to be typed on certain keyboard types. Code:
randompass(n)=a=Vec("~`1!2@3#4$5%6^7&8*9(0)_-+=\|]}{[PpOoIiUuYyTtRrEeWwQqAaSsDdFfGgHhJjKkLl;:'/?.>,<mMnNbBvVcCxXzZ");a=concat(Vec(a),[34]);for(x=1,n,until(b!=0,b=random(#a));if(x==1&&(b==4||b==74),until(b!=4&&b!=74,b=random(#a)));print1(a[b]))
Last fiddled with by science_man_88 on 2011-11-14 at 01:43 |
|
|
|
|
|
|
#10 |
|
Oct 2007
Manchester, UK
101010010112 Posts |
|
|
|
|
|
|
#11 |
|
Jun 2003
116758 Posts |
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Search restrictions | fivemack | Forum Feedback | 17 | 2017-04-27 15:18 |
| Modular restrictions on factors of Mersenne numbers | siegert81 | Math | 23 | 2014-03-18 11:50 |
| Different B1 & B2 values chosen on P-1 resume | azhad | Software | 0 | 2006-12-30 06:36 |
| Odd OPN coincidence concerning restrictions | jasong | Miscellaneous Math | 2 | 2006-02-26 19:30 |
| I've chosen primality test task, but info shows P-1 factoring! Why ? | Unregistered | Software | 3 | 2004-02-23 16:45 |