-
Content count
31 -
Joined
-
Last visited
-
Days Won
11
Posts posted by Kevin
-
-
Hi DrFlen, welcome back.
-
Hi astro, welcome to solero.
-
-
2 hours ago, Ben said:Nice, hopefully we wont get too many "password incorrect" support requests now
You forget that these people never use the search engine so we'll have to link this topic ourselves.
Nice Lynx
- 2
-
This looks amazing, nice contribution Jamie !
- 1
-
59 minutes ago, Ben said:CPPS.me is the best Club Penguin Private Server
Mhm, like, it has working nameglow
- 1
-
I haven't really experinced Visual Studio but it looks pretty cool
My favourites are Github Desktop and Pycharm. They are awesome.
- 1
-
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.
-
-
-
Hi Flippy, of course I know you. Welcome to solero.
-
-
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.
-
That turned out to be a rat
-
Please take a look at this topic.
If you want help, we need more details, follow what's listed in this topic.
- 2
-
Hey Zaseth, hopefully you'll help many users ! Welcome to Solero !
-
Hi Dev, welcome to Solero.
4 hours ago, Dev said:is solero back yet?
I dunno, is it ?
-
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.
-
I can easily win by locking the topic
-
Probably cpps.pw
- 1
-
Hey Lynx, glad to see you're here !
-
I definetly remember you Joee. Welcome back !
-
-
Hey Leo, welcome !
[AS2] Sweater - Implement bcrypt
in Tutorials
Posted · Report reply
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:
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:
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:
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.