Using Mysql UUID_SHORT() for Password Salt -
i'm looking @ adding salt number our user password table. saving user passwords hashed sha256.
my question using number generated mysql's uuid_short() function example '23154192415719433' sufficient password salt?
so in database password 'test123' stored 'd9b5f58f0b38198293971865a14074f59eba3e82595becbe86ae51f1d9f1f65e' calling
select sha2('test123', 256)
will stored 'e5e7b87ba899a6f9ad8f8e68e0b209b6923e546df70b8e4a47f996533827bce1'
select sha2('23154192415719433test123', 256)
seeing uuid_short() returns random 64-bit value, , sha256 uses 256-bit encryption, better off calling uuid_short() 4 times , concatenating binary value.
Comments
Post a Comment