Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 35
  1. #21
    Join Date
    Nov 2008
    Location
    Cambridge, UK
    Posts
    901
    Tokens
    100

    Default

    Whoever the other develop is must be pretty bad. The whole point of a salt is to render the password useless if your database is compromised. If you use something secure like SHA256 (not MD5) with a salt, the password would practically be impossible to crack. If your salt is known, it makes it easier.
    we're smiling but we're close to tears, even after all these years

  2. #22
    Join Date
    Jul 2007
    Location
    UK
    Posts
    2,470
    Tokens
    2,975

    Latest Awards:

    Default

    Quote Originally Posted by MattFr View Post
    Whoever the other develop is must be pretty bad. The whole point of a salt is to render the password useless if your database is compromised. If you use something secure like SHA256 (not MD5) with a salt, the password would practically be impossible to crack. If your salt is known, it makes it easier.
    Thats why ive not added salt yet, and if i do i would never add it into the database

  3. #23
    Join Date
    Oct 2007
    Posts
    824
    Tokens
    71

    Latest Awards:

    Default

    Don't store the ******* salt in the ******* database. Just don't. Doesn't matter if vB does it. Just generate the salt in the php code and keep it there. Like I said before, if your database gets hacked, at least the hacker doesn't have access to the salt. It's much easier to get access to a database than it is to get access to your hosting account/panel.
    Vouches
    [x][x]

  4. #24
    Join Date
    Jul 2007
    Location
    UK
    Posts
    2,470
    Tokens
    2,975

    Latest Awards:

    Default

    might release the code soon for everyone to go over, because it looks like i might be starting again with another developer to make it better

  5. #25
    Join Date
    Aug 2009
    Posts
    78
    Tokens
    100

    Latest Awards:

    Default

    To be honest you should just salt your password in the filesystem before inserting it into the database.
    Something I just had a quick think about, what about salting the username and password with the string length of the username?

    Simple salting method
    PHP Code:
    // grab length of username
    $usernameLen strlen($username);

    // concatonate username, password and username length then sha1 them.
    $passwordSalt sha1($username $password $usernameLen); 
    The algorithm is the same but no salt is effectively stored in the database, meaning nobody would know your algorithm without knowing your filesystem. The beauty of this is that the salt will differ depending on the length of the username.
    Last edited by Irrorate; 03-09-2010 at 01:06 AM.

  6. #26
    Join Date
    Jul 2004
    Location
    California
    Posts
    8,725
    Tokens
    3,789
    Habbo
    HotelUser

    Latest Awards:

    Default

    Quote Originally Posted by Irrorate View Post
    To be honest you should just salt your password in the filesystem before inserting it into the database.
    Something I just had a quick think about, what about salting the username and password with the string length of the username?

    Simple salting method
    PHP Code:
    // grab length of username
    $usernameLen strlen($username);

    // concatonate username, password and username length then sha1 them.
    $passwordSalt sha1($username $password $usernameLen); 
    The algorithm is the same but no salt is effectively stored in the database, meaning nobody would know your algorithm without knowing your filesystem. The beauty of this is that the salt will differ depending on the length of the username.
    Abit of extra security, sure, but then whenever you change a user's username you'd also be forced to update their password as well.
    I'm not crazy, ask my toaster.

  7. #27
    Join Date
    Aug 2009
    Posts
    78
    Tokens
    100

    Latest Awards:

    Default

    Quote Originally Posted by HotelUser View Post
    Abit of extra security, sure, but then whenever you change a user's username you'd also be forced to update their password as well.
    Yes indeed, I was just giving an example of a simple salting method that works better than storing the salt in the database

    It isn't ideal to use salt characters that can change, of course, but using a salt that doesn't require storing is much preferred

  8. #28
    Join Date
    Apr 2009
    Location
    United Kingdom
    Posts
    1,111
    Tokens
    100

    Latest Awards:

    Default

    Your names *REMOVED*? No way?

    Edited by Nicola (Forum Super Moderator): Please do not post private information without consent of the other forum member.
    Last edited by Nicola; 03-09-2010 at 08:15 PM.

  9. #29
    Join Date
    Jul 2007
    Location
    UK
    Posts
    2,470
    Tokens
    2,975

    Latest Awards:

    Default

    Quote Originally Posted by BoyBetterKnow View Post
    Your names *REMOVED*? No way?
    eh, yes how you find that out? im guessing i put it in the usersystem somewhere them

    Why?

    EDIT: Found it, one of the screenshots
    Last edited by Nicola; 03-09-2010 at 08:16 PM.

  10. #30
    Join Date
    Apr 2009
    Location
    United Kingdom
    Posts
    1,111
    Tokens
    100

    Latest Awards:

    Default

    *Removed* admins . super mod w/e had a go at me, its in the screenie ye

    Edited by Recursion (Forum Moderator): Please do not be rude to other forum members, staff included. Thanks.
    Last edited by Recursion; 07-09-2010 at 03:32 PM.

Page 3 of 4 FirstFirst 1234 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •