Answer the question
In order to leave comments, you need to log in
How is it encrypted?
In general, I do authorization on the site. Registration via authme (Plugin in minecraft).
So, I want to know what encryption method is there?
Here is what was written to the database:
$SHA$a4e922231b027350$56a919d1e1445f19e7da5fa10facba24583a4e1d21cce99e1353d99526988024
Answer the question
In order to leave comments, you need to log in
From google:
function checkPassword($trypass,$realpass){
$parts = explode('$',$realpass);
$salt = $parts[2];
$hashed = hash('sha256',hash('sha256', $trypass).$salt);
$hashed = '$SHA$'.$salt.'$'.$hashed;
return $hashed == $realpass ? true : false;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question