Skip to content
This repository has been archived by the owner on May 31, 2020. It is now read-only.

Commit

Permalink
Sha-256
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2605 authored Apr 13, 2017
1 parent 0ac1197 commit 733ad6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addStaff.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
$username = mysqli_real_escape_string($dbconL, $_POST['username']);
$password = mysqli_real_escape_string($dbconL, $_POST['password']);

$encPass = sha1($password);
$encPass = hash('sha256', $password);

$UpdateQ = "INSERT INTO users (username, password, permissions) VALUES ('$username', '$encPass', '$perms')";
mysqli_query($dbconL, $UpdateQ);
Expand Down

0 comments on commit 733ad6a

Please sign in to comment.