Skip to main content
Tweeted twitter.com/#!/StackCodeReview/status/644304684233162752
Rollback to Revision 2
Source Link
Quill
  • 11.9k
  • 5
  • 40
  • 93

Hashing passwords in phpPHP

When hashing a password, I understand it is best not to use functions such as sha1SHA1 or md5, thisMD5.

This function is whyworking fine and I came up with this:want to know if it can be improved to increase site security.

class safePassword
{
    public static function makeSafe($password)
    {
        $salt = "mySalt";
        $hash = hash("sha256", $salt.".".$password);
        return $hash;
    }
}

And what I wanted to know, is this okay, or could it bet better?

This function is working fine, I want to know it can be improved to increase site security

Hashing passwords in php

When hashing a password, I understand it is best not to use functions such as sha1 or md5, this is why I came up with this:

class safePassword
{
    public static function makeSafe($password)
    {
        $salt = "mySalt";
        $hash = hash("sha256", $salt.".".$password);
        return $hash;
    }
}

And what I wanted to know, is this okay, or could it bet better?

This function is working fine, I want to know it can be improved to increase site security

Hashing passwords in PHP

When hashing a password, I understand it is best not to use functions such as SHA1 or MD5.

This function is working fine and I want to know if it can be improved to increase site security.

class safePassword
{
    public static function makeSafe($password)
    {
        $salt = "mySalt";
        $hash = hash("sha256", $salt.".".$password);
        return $hash;
    }
}
Rollback to Revision 1
Source Link
anon
anon

Hashing passwords in PHPphp

When hashing a password, I understand it is best not to use functions such as SHA1sha1 or MD5.

This functionmd5, this is working fine andwhy I want to know if it can be improved to increase site security.came up with this:

class safePassword
{
    public static function makeSafe($password)
    {
        $salt = "mySalt";
        $hash = hash("sha256", $salt.".".$password);
        return $hash;
    }
}

And what I wanted to know, is this okay, or could it bet better?

This function is working fine, I want to know it can be improved to increase site security

Hashing passwords in PHP

When hashing a password, I understand it is best not to use functions such as SHA1 or MD5.

This function is working fine and I want to know if it can be improved to increase site security.

class safePassword
{
    public static function makeSafe($password)
    {
        $salt = "mySalt";
        $hash = hash("sha256", $salt.".".$password);
        return $hash;
    }
}

Hashing passwords in php

When hashing a password, I understand it is best not to use functions such as sha1 or md5, this is why I came up with this:

class safePassword
{
    public static function makeSafe($password)
    {
        $salt = "mySalt";
        $hash = hash("sha256", $salt.".".$password);
        return $hash;
    }
}

And what I wanted to know, is this okay, or could it bet better?

This function is working fine, I want to know it can be improved to increase site security

deleted 107 characters in body; edited title
Source Link
Jamal
  • 34.9k
  • 13
  • 133
  • 237

Hashing passwords in phpPHP

When hashing a password, I understand it is best not to use functions such as sha1SHA1 or md5, thisMD5.

This function is whyworking fine and I came up with this:want to know if it can be improved to increase site security.

class safePassword
{
    public static function makeSafe($password)
    {
        $salt = "mySalt";
        $hash = hash("sha256", $salt.".".$password);
        return $hash;
    }
}

And what I wanted to know, is this okay, or could it bet better?

This function is working fine, I want to know it can be improved to increase site security

Hashing passwords in php

When hashing a password, I understand it is best not to use functions such as sha1 or md5, this is why I came up with this:

class safePassword
{
    public static function makeSafe($password)
    {
        $salt = "mySalt";
        $hash = hash("sha256", $salt.".".$password);
        return $hash;
    }
}

And what I wanted to know, is this okay, or could it bet better?

This function is working fine, I want to know it can be improved to increase site security

Hashing passwords in PHP

When hashing a password, I understand it is best not to use functions such as SHA1 or MD5.

This function is working fine and I want to know if it can be improved to increase site security.

class safePassword
{
    public static function makeSafe($password)
    {
        $salt = "mySalt";
        $hash = hash("sha256", $salt.".".$password);
        return $hash;
    }
}
Source Link
anon
anon
Loading