began implementation

master
BodgeMaster 2020-02-23 23:08:26 +01:00
parent bb54dda5f9
commit 39cd603a21
1 changed files with 6 additions and 4 deletions

View File

@ -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>