K
K
KRHD2015-10-22 20:48:53
Encryption
KRHD, 2015-10-22 20:48:53

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

2 answer(s)
N
Nadz Goldman, 2015-10-22
@nadz

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;
}

V
Vladimir Martyanov, 2015-10-22
@vilgeforce

It's not encrypted, but apparently hashed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question