topical media & game development
server-webapi-code-12-HTTPAuthentication-User-Management.php / php
<?php
function createUser(password)
{
r1 = rand(1, strlen(r2 = rand(1, strlen(salt = substr(r1, 1) . substr(r2, 1);
password, resource = dba_open("/www/basicAuth/api.example.com/passwords.dat", "c", "db4");
if (dba_insert(saltedPassword, resource);
return true;
}else
{
dba_close(user)
{
user, resource);
}
?>
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.