hash - Password + Salt + SecretSauce? Helpful, or just a little obscurity? -
standard password security involves generating random salt each user, somehow combining salt password , hashing them together, , storing both hash , salt in database.
what if, instead of hash($salt . $password)
, added in passphrase well, stored in source code or in server config file:
$secret_sauce = 'tehb%l1yg*@t$g2uff'; // perhaps imported config file $hash = hash($salt . $secret_sauce . $password);
does add added benefit, or thin layer of security obscurity applied top?
for password files little obscurity added on top.
however, scheme called "keyed hash" , can used symmetric (shared-secret) signatures: if have such hash, , input data, can sure signature created knows secret bit. of course, unlike public-key signature, cannot verify without knowing secret key.
Comments
Post a Comment