forked from root/threadr.lostcave.ddnss.de
began implementation
parent
bb54dda5f9
commit
39cd603a21
|
@ -13,15 +13,17 @@
|
||||||
return $random_string;
|
return $random_string;
|
||||||
}
|
}
|
||||||
|
|
||||||
//for password hashing
|
|
||||||
$password_salt = generate_salt($permitted_chars);
|
|
||||||
$password_hash_method = "sha256";
|
|
||||||
|
|
||||||
//for token generation
|
//for token generation
|
||||||
$token_salt = generate_salt($permitted_chars);
|
$token_salt = generate_salt($permitted_chars);
|
||||||
$token_hashes = hash("crc32", $_POST['email']) . hash("crc32", $_POST['username']);
|
$token_hashes = hash("crc32", $_POST['email']) . hash("crc32", $_POST['username']);
|
||||||
$token = str_shuffle($token_hashes . $token_salt);
|
$token = str_shuffle($token_hashes . $token_salt);
|
||||||
|
|
||||||
|
//for password hashing
|
||||||
|
$password_salt = generate_salt($permitted_chars);
|
||||||
|
$password_hash_method = "sha256";
|
||||||
|
|
||||||
|
$pdo = new PDO('mysql:host=localhost;dbname=web', 'webstuff', 'Schei// auf Pa$$w0rter!');
|
||||||
|
//$statement = $pdo->prepare('');
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|
Loading…
Reference in New Issue