Author |
Message |
Defcon
Regular


Joined: Mar 10, 2005
Posts: 90
|
Posted:
Sun Apr 29, 2007 6:14 am |
|
Hye all! I got some question here about security code login. How to change alphabet to number in security code image on login block?
thanxs
 |
|
|
|
 |
Guardian2003
Site Admin

Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Mon Apr 30, 2007 2:54 am |
|
Open includes/class.php-captcha.php
Around line 59 you will see Code: define('CAPTCHA_CHAR_SET', ''); // defaults to A-Z
|
Change that toCode: define('CAPTCHA_CHAR_SET', '1,2,3,4,5,6,7,8,9,0'); // defaults to A-Z
|
I would not recommend using double digits as this may force some number off the page and the user wouldnt be able to see them. Also, when using numerical captcha you are limited to 1 in 10 characters per digit as against using alphabetical characters where there is a 1 in 26 possibility per character - in simple terms, the alpha sequence offers more permuations ans is therefore more secure than using numerics. |
|
|
|
 |
Defcon

|
Posted:
Mon Apr 30, 2007 3:42 am |
|
Guardian2003 wrote: | Open includes/class.php-captcha.php
Around line 59 you will see Code: define('CAPTCHA_CHAR_SET', ''); // defaults to A-Z
|
Change that toCode: define('CAPTCHA_CHAR_SET', '1,2,3,4,5,6,7,8,9,0'); // defaults to A-Z
|
I would not recommend using double digits as this may force some number off the page and the user wouldnt be able to see them. Also, when using numerical captcha you are limited to 1 in 10 characters per digit as against using alphabetical characters where there is a 1 in 26 possibility per character - in simple terms, the alpha sequence offers more permuations ans is therefore more secure than using numerics. |
Ahaaa... thanxs Guardian2003 hhuhuhuhu |
|
|
|
 |
Guardian2003

|
Posted:
Mon Apr 30, 2007 8:07 am |
|
No problem, happy to help. |
|
|
|
 |
jlajax
Ardent RavenCMS Supporter

Joined: Oct 12, 2006
Posts: 244
Location: Jacksonville, Florida
|
Posted:
Wed Dec 17, 2008 6:06 pm |
|
Guardian2003 wrote: | Open includes/class.php-captcha.php
Around line 59 you will see Code: define('CAPTCHA_CHAR_SET', ''); // defaults to A-Z
|
Change that toCode: define('CAPTCHA_CHAR_SET', '1,2,3,4,5,6,7,8,9,0'); // defaults to A-Z
| |
Quote: | CAPTCHA_CHAR_SET', '1,2,3,4,5,6,7,8,9,0,A,B,C,D,E,F,G,H,I.J.K.L.M.N.O.P.Q.R.S.T.U.V.W.X.Y.Z'); // defaults to A-Z |
Before I try this Will it work? The goal being to display a combination of letters and numbers in the security code. Seems to me this increases options increasing security.
Thanks guys
 |
|
|
|
 |
Guardian2003

|
Posted:
Thu Dec 18, 2008 1:43 am |
|
Yes if you seperate them with a 'comma' not a 'stop' but I would leave out the zero and letter 'o' to avoid confusion. |
|
|
|
 |
jlajax

|
Posted:
Thu Dec 18, 2008 2:39 am |
|
Many Thanks!
 |
|
|
|
 |
|