encriptar todas las contraseсas phpmyadmin
#6

pawn Код:
CMD:actualizar(playerid, params[])
{
    mysql_tquery(Conecction, "SELECT `nombre`, `password` FROM `players`", "Transformar");
    return 1;
}

public Transformar()
{
    for(new i = 0, j = cache_get_row_count(); i < j; i ++)
    {
        new name[MAX_PLAYER_NAME], password[21], hash[129];
        cache_get_field_content(i, "nombre", name, Conecction, MAX_PLAYER_NAME);
        cache_get_field_content(i, "password", password, Conecction, 21);

        WP_Hash(hash, sizeof(hash), password);

        new Query[400];
        format(Query, sizeof(Query), "UPDATE `players` SET `password` = '%q' WHERE `nombre` = '%q'", hash, name);
        mysql_query(Conecction, Query, false);
    }
    return 1;
}
Reply


Messages In This Thread
encriptar todas las contraseсas phpmyadmin - by pep_25 - 21.01.2016, 01:03
Respuesta: encriptar todas las contraseсas phpmyadmin - by bm0z - 21.01.2016, 01:49
Re: encriptar todas las contraseсas phpmyadmin - by SickAttack - 21.01.2016, 01:49
Respuesta: encriptar todas las contraseсas phpmyadmin - by FelipeAndres - 21.01.2016, 01:54
Respuesta: encriptar todas las contraseсas phpmyadmin - by pep_25 - 21.01.2016, 02:46
Re: encriptar todas las contraseсas phpmyadmin - by SickAttack - 21.01.2016, 03:49

Forum Jump:


Users browsing this thread: 1 Guest(s)