Quote:
Originally Posted by SnickQ
Yes everything is depend what kind admin is.
But in this case i was mean to protect server aganst admins from other servers who can use users password to harm ours server. I was see that few times.
|
the problem is always what an admin ask...
Quote:
Originally Posted by perlisson
do you find it difficult to create a registration page generating cryptography? if you think this is difficult, you can forget it, because it is simpler than you think, for example I give it a well-used way today, after the insert command coming from a '' prepare ''
use this:
$sql = $pdo->prepare("INSERT INTO Users_Master (Pw) VALUES (:md5) ");
$sql->bindValue(":md5",md5($password));
$sql->execute();
get a simple pdo registry that a former epvp user posted, or do yours, after creating password encryption, you have to get your PS_lOGIN to recognize and convert the md5 hash and make it a normal character, and make you join the game,
has a post here, which explains better about '' pslogin recognize the hash '', but it's not difficult at all, you just have to search and run back.
I particularly do not think it safe to use a hash md5, but a password_hash would be better
-- my English is bad
|
okay, for you i wanna show something that can help you a bit more in "programming"
Code:
$sql = $pdo->prepare("INSERT INTO Users_Master (Pw) VALUES (:md5) ");
$sql->bindValue(":md5",md5($password));
$sql->execute();
write like it, is right but wrong....
$sql = $pdo->prepare("INSERT INTO Users_Master (Pw) VALUES (?)");
$sql->bindValue(1, md5($psw), PDO::PARAM_STR);
-- you define the type, and instead of bindValue you can use bindParam
$sql->bindParam(1, md5($psw), PDO::PARAM_STR, 10); -- where 10 is the length of value
$sql->execute();
after this.... you not asnwer on problem, because him ask to generate a psw, so "player" not need insert it.
and if i not wrong the "read" of psw is written in procedure, and into it you can insert the crypt and decrypt, but we not find anyway the right solution for it.
Quote:
Originally Posted by SnickQ
@ [Only registered and activated users can see links. Click Here To Register...] You did not read my post at all. xD
ok to explain in another way.
Playes using same logins and password in every servers.
So for example:
We have 2 (or more) server
1: Shaiya Earth - and here i have Login: Shaiya Password: Shaiya123 okey?
Then i go to another server let me call it:
2: Shaiya Moon - and here i have Login: Shaiya Password: Shaiya123.
So now for some reason admin from 1 (Server Earth) going to serer 2 Moon) and he use My login and pw (Shaiya, Shaiya123 is same in both server) and now admin from Shaiya Earth have access for account in Shaiya Moon.
So i just give you idea to not allow users to make own password but insted create it for them to make sure that admins from others server not use this data aganst you. :D
|
i don't think is possible to find a solution about it, the databases work only with Pw and ignore EnPassword, register script use the input for psw... this was a solution to use before, many years ago.