Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- signUp()
- username = 'towel'
- password = 'southPark'
- hashedPw = string(40) "28814b583b880d2f9401025efca028f16f52f100"
- genSalt => '4e035858b81a81.45491357'
- All are in the database like that.
- signIn()
- username = 'towel'
- password = 'southPark'
- hashedPw = "4ecbce56e159fc5ca24974e0b2f102ab670a8771"
- saltFromDb = "4e035858b81a81.45491357" (the same as genSalt)
- Hashed aren't equal!
Add Comment
Please, Sign In to add comment