Jump to content

Kevin

Members
  • Content count

    31
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by Kevin

  1. Going to Monaco! Then cannes !

    im gay

  2. Hey everyone, it's been a long time. Today I implemented bcrypt in sweater and I decided i'd teach you how to do it without downloading my version of sweater directly, because who knows ? maybe you have your own version and don't want to replace the whole files. I'll show you how to update everyone's passwords too, so no worries about that. (thanks to @Ben who helped me fix a bug so-to-speak). Alright, let's begin with what's pretty obvious, the Hashing file (Cryptography.php). What you have to do is, replace everything in there with this: Yeah I know, it looks like kitsune's now :) Next, you probably want to set this in Client.php to public: private $strRandomKey; Change that to public. Now, since I don't think any of you have modified the login handler in sweater, or if you did then you're competent enough to see what I modified in the handleLogin and replace the stuff. If you didn't modify it, replace this whole function with yours in LoginHandler.php: Replace the handleRndK function too with this: function handleRndK($arrData, Client $objClient){ $objClient->strRandomKey = "e4a2dbcca10a7246817a83cd" . $objClient->strNickname; $objClient->sendData('<msg t="sys"><body action="rndK" r="-1"><k>' . $objClient->strRandomKey . '</k></body></msg>'); $objClient->setRandomKey($objClient->strRandomKey); } You will also want to change your password column so our new password hash can fit in the column, so just run this SQL command: ALTER TABLE `users` CHANGE `Password` `Password` VARCHAR(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL COMMENT 'Password hash'; Now you probably want to update everyone's md5 password to bcrypt, so you can simply run this PHP script: For the register, since you are using sweater you are probably using my 'old' register, so use this new one. Once you've completed all of these, you're done. Hope this helped you. Cya.
  3. Hi DrFlen, welcome back.
  4. Hi astro, welcome to solero.
  5. You forget that these people never use the search engine so we'll have to link this topic ourselves. Nice Lynx
  6. Mhm, like, it has working nameglow
  7. I haven't really experinced Visual Studio but it looks pretty cool My favourites are Github Desktop and Pycharm. They are awesome.
  8. This is, by far, one of the best introductions I've ever read on a CPPS forum. Welcome, Lake. Glad to see you joined us.
  9. You need to edit server.conf to conform to your database installation, you can just replace mine with yours (server.conf)
  10. My version has fully functional openglows. https://github.com/bluezedd/Sweater
  11. Hi Flippy, of course I know you. Welcome to solero.
  12. Topic locked, forum added. https://solero.me/forum/29-tutorials/
  13. I edited your topic to put your code inside the code tags, make sure you do so whenever you post code. Nice topic Zaseth, I am sure this will help a lot of users who want to make their own registration/login form.
  14. That turned out to be a rat
  15. Please take a look at this topic. If you want help, we need more details, follow what's listed in this topic.
  16. Hey Zaseth, hopefully you'll help many users ! Welcome to Solero !
  17. Hi Dev, welcome to Solero. I dunno, is it ?
  18. My favourite is either GTA V or League of Legends. I really can't decide, I love them both. Sometimes I want to uninstall League of Legends.
  19. I can easily win by locking the topic
  20. Probably cpps.pw
  21. Hey

    Hey Lynx, glad to see you're here !
×