SkyD Posted December 25, 2005 Author Report Share Posted December 25, 2005 nu es domaaju no mysql!! ;D Link to comment Share on other sites More sharing options...
bubu Posted December 25, 2005 Report Share Posted December 25, 2005 Tak 100 reizes jau tas prasīts un rādīts. Vajag tik pameklēt. SELECT COUNT(*) FROM useri WHERE name='$name' Link to comment Share on other sites More sharing options...
nemec Posted December 29, 2005 Report Share Posted December 29, 2005 a navars izmantot md5(), ja ir mysqlaa password()???? Link to comment Share on other sites More sharing options...
bubu Posted December 29, 2005 Report Share Posted December 29, 2005 A kāpēc gan ne? Link to comment Share on other sites More sharing options...
Grey_Wolf Posted December 29, 2005 Report Share Posted December 29, 2005 (edited) man skjiet ka nav praata darbs izmantot iebuuveeto SQL pasword --> saistiibaa ar datu parnesanu no vienas SQL versijas uz citu piem 4.0 un 4.1 ir atskjiriigi Pasword skripteeshanas algoritmi... liidz ar to ja viis buus teiksim uz 4.0 versijas un gribeesi paariet uz 4.1 tad chau, paraksti PHP kodu :( Edited December 29, 2005 by Grey_Wolf Link to comment Share on other sites More sharing options...
nemec Posted December 29, 2005 Report Share Posted December 29, 2005 nu grey wolf tu gribi teikt, ka tie algoritmi taa mainaas? kaut ko taadu pirmo reizi dzirdu, nebuutu vieglaak tad mysqlam ietaisiit citu password_2() = piemeeram. stulbi kaut kaa. tad jau php arii var md5() algoritmu samainiit, taadam pasham priekam... bubu, man gan liekas, ka labaak querijaa visu salikt.. varbuut noskaitiisi plusus un miiinusu, gan tam gan otram, vai linku kaadu... Link to comment Share on other sites More sharing options...
Grey_Wolf Posted December 29, 2005 Report Share Posted December 29, 2005 (edited) nemec--> algoritmi tieshaam mainaas ... ne ja biezji ;) bet konkreeti starp 4.0 un 4.1 atskjiriiba ir... edit: savietojamiibai ja nekljuudos ir OLD PASWORD.... Edited December 29, 2005 by Grey_Wolf Link to comment Share on other sites More sharing options...
bubu Posted December 29, 2005 Report Share Posted December 29, 2005 md5 nekad nemainīs algortimu. Tad tas pārsauksies par citu. Tak kāda šķirba, ko kur likt. Ja pašu stringu kverijā liks, tad tas var būt ilgāk, jo tā jāpārsūta viss strings uz sql serveri, a citādi neliela hešsuma (md5/sha/whatever). Bet password fja gan mainījās mysqlim: http://dev.mysql.com/doc/refman/5.0/en/enc....html#id2957405 Link to comment Share on other sites More sharing options...
Recommended Posts