For example, just requiring a user name foo
and password bar
, or user name foo
, a开发者_高级运维nd the password is today's date, take day of month (such as the 16 in Oct 16), multiply by 2 and repeat twice, which is 3232
?
Pick a hard-to-guess password and just use that. Your web server probably has a method for providing password-protected access and it will almost certainly support as many users as you like.
Remember to think of passwords as simply a shared secret. Your complicated date arithmetic is also a shared secret, but it is fundamentally no more or less secure than a password. If you choose sensible passwords (i.e. not guessable, ideally random) then you don't need to muck around with convoluted schemes.
精彩评论